TimePar#
- class TimePar(v=None, *args, **kwargs)[source]#
Bases:
BaseArr
Base class for time-aware parameters, durations and rates
NB, because the factor needs to be recalculated, do not set values directly.
Attributes
Check if the value is an array
Methods
- init(parent=None, parent_unit=None, parent_dt=None, update_values=True, die=True)[source]#
Link to the sim and/or module units
- property isarray#
Check if the value is an array
- set(v=None, unit=None, parent_unit=None, parent_dt=None, self_dt=None, force=False)[source]#
Set the specified parameter values (ignoring None values) and update stored values
- update_values()[source]#
Convert from self.v to self.values based on self.factor – must be implemented by derived classes