Releases: PainterQubits/paramdb
Releases · PainterQubits/paramdb
v0.9.1
v0.9.0
v0.8.0
v0.7.0
v0.6.0
Added
ParamDB.dispose()
function for cases where it is required to fully clean up the
database before the program ends, such as in testing suites.
Changed
- Commits get the current time in a way that can be mocked in tests where we
want to control the time.
v0.5.0
v0.4.0
Added
- ParamDB load_classes parameter can be set to False to load parameter data classes as
dictionaries (created to allow ParamView to access data) - Keys for special properties in dictionary representations of parameter data can be
imported - ParamDict returns keys in
__dir__()
so that they are suggested by interactive prompts
like IPython.
Changed
- ParamDict uses dict_keys, dict_values, and dict_items instead of default KeysView,
ValuesView, and ItemsView since they print nicely
v0.3.0
Added
- Ability to specify start and end indices in
ParamDB.commit_history()
- Support for scalar
astropy.units.Quantity
objects - Parameter dataclass bases (
Param
andStruct
) automatically convert subclasses into
dataclasseskw_only
as True by default
Changed
ParamDict
can be initialized from keyword arguments in addition to dictionaries
v0.2.0
Added
- Ability to specify commit ID in
ParamDB.load()
ParamData.parent
andParamData.root
properties- Mixins
ParentType[PT]
andRootType[PT]
to type cast parent and root - Parameter collection classes
ParamList
andParamDict
- Database now ignores dataclass fields where
init
isFalse
Removed
CommitNotFoundError
(replaced with built-inIndexError
)- Private
_last_updated
dataclass field in parameter dataclasses