ParsObj#

class ParsObj(pars, **kwargs)[source]#

Bases: FlexPretty

A class based around performing operations on a self.pars dict.

Methods

update_pars(pars=None, create=False, **kwargs)[source]#

Update internal dict with new pars.

Parameters:
  • pars (dict) – the parameters to update (if None, do nothing)

  • create (bool) – if create is False, then raise a KeyNotFoundError if the key does not already exist

  • kwargs (dict) – additional parameters