single_cell_parserparametersNTParameterSet

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
Attributes:

_data

The underlying dictionary storing parameters.

Type:

dict

Methods:

_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

tree_copy()

Return a copy of the ParameterSet tree structure.

_resolve_path(dotted)

-

update(other, **kwargs)

Update the NTParameterSet with another dictionary or keyword arguments.