playmolecule.utils module#
- playmolecule.utils.ensurelist(tocheck, tomod=None)#
Convert np.ndarray and scalars to lists.
Lists and tuples are left as is. If a second argument is given, the type check is performed on the first argument, and the second argument is converted.
- playmolecule.utils.format_filesize(num, suffix='B')#
- playmolecule.utils.get_destination_folder(path, force=False, skip=False)#
- playmolecule.utils.parse_timestamp_utc(timestamp)#
- playmolecule.utils.tempname(suffix='', tmpdir=None, create=False)#
- playmolecule.utils.utc_timestamp_to_local(utc_timestamp)#