schrodinger.utils.sea.common module
Copyright Schrodinger, LLC. All rights reserved.
-
schrodinger.utils.sea.common.debug_print(s, nl=True)[source]
Prints out some information for debugging purposes.
- Parameters
-
-
schrodinger.utils.sea.common.is_equal(a, b, epsilon=1e-06)[source]
Compares two floating numbers and returns True if the absolute
difference is within epsilon (defaults to 1E-6), False if not.
-
schrodinger.utils.sea.common.boolean(s)[source]
Returns True if the string ‘s’ is one of the following: ‘true’, ‘yes’, and ‘on’, or False if it is one of the following:
‘false’, ‘no’, and ‘off’.
Case difference will be ignored.
Raises a ValueError exception if ‘s’ is none of the above strings.