Package schrodinger :: Package infra :: Module mmkv
[hide private]
[frames] | no frames]

Module mmkv

Wrapper classes and functions for dealing with the MMKV library, which is used to read & write Epik, LigPrep, and ConfGen input files.

See MMKVSettings documentation for more details.

Copyright Schrodinger, LLC. All rights reserved.

Classes [hide private]
  MMKVArgList
A class to provide list-like access to MMKV/MMIM array properties.
  MMKVSettings
A class for setting and getting MMKV keyword values.
Functions [hide private]
 
_convert_to_float_array(value)
 
_convert_to_string_array(value)
 
_convert_to_int_array(value)
 
_convert_to_bool_array(value)
 
_convert_to_bool(value)
This function will convert a boolean represented as string to Python "boolean" type.
 
get_handlers_for_key(key, arg_handlers)
Find the data for the specified key in the given argument handlers dictionary.
Variables [hide private]
  _initializer = mminit.Initializer([mm.mmkv_initialize], [mm.mm...
  _mmkv_arg_handlers = {27: (0, 'boolean', <function _convert_to...
  __package__ = 'schrodinger.infra'
Function Details [hide private]

get_handlers_for_key(key, arg_handlers)

 

Find the data for the specified key in the given argument handlers dictionary. Returns a tuple of the converter, getter, and setter functions.

Will raise a KeyError if the wrong key value (or type) is specified, because the exception is passed onto the getter/setter methods.

NOTE: Also used in mmim.py


Variables Details [hide private]

_initializer

Value:
mminit.Initializer([mm.mmkv_initialize], [mm.mmkv_terminate])

_mmkv_arg_handlers

Value:
{mm.MMKV_ARG_BOOL_END:(mm.MMKV_ARG_BOOL_BEGIN, "boolean", _convert_to_\
bool, mm.mmkv_handle_get_arg_bool, mm.mmkv_handle_set_arg_bool, None, \
None,), mm.MMKV_ARG_BOOL_ARRAY_END:(mm.MMKV_ARG_BOOL_ARRAY_BEGIN, "boo\
lean array", _convert_to_bool_array, mm.mmkv_handle_get_indexed_arg_bo\
ol, mm.mmkv_handle_set_indexed_arg_bool, mm.mmkv_handle_get_indexed_ar\
g_bool_count, mm.mmkv_handle_set_indexed_arg_bool_count,), mm.MMKV_ARG\
_FLOAT_END:(mm.MMKV_ARG_FLOAT_BEGIN, "float", float, mm.mmkv_handle_ge\
t_arg_float, mm.mmkv_handle_set_arg_float, None, None,), mm.MMKV_ARG_F\
...