Source code for flatland.utils.misc

# https://stackoverflow.com/questions/715417/converting-from-a-string-to-boolean-in-python
[docs]def str2bool(v): return v.lower() in ("yes", "true", "t", "1")