NTParameterSet¶
-
class single_cell_parser.parameters.NTParameterSet(data=
None)¶ NeuroTools Parameter Set format.
Parameters as nested dictionaries, with support for attribute access.
Example:
>>> from single_cell_parser.parameters import NTParameterSet >>> params = NTParameterSet({'param1': 42, 'nested': {'param2': 3.14}}) >>> print(params.param1) # Access via attribute 42 >>> print(params['nested.param2']) # Access via dotted path 3.14_wrap(value)-
_unwrap(value)-
as_dict()Convert the NTParameterSet to a regular dictionary.
save(filename)Save the NTParameterSet to a file in JSON format.
keys()D.keys() -> a set-like object providing a view on D’s keys
Return a copy of the ParameterSet tree structure.
_resolve_path(dotted)-
update(other, **kwargs)Update the NTParameterSet with another dictionary or keyword arguments.
Documentation unclear, incomplete, broken or wrong? Let us know