MCycle Abstract Base Classes¶
-
class
mcycle.bases.mcabstractbase.
MCAB
¶ Bases:
object
Abstract base class for all MCycle classes.
Attributes
_inputs
_inputs: dict _properties
_properties: dict name
name: unicode Methods
copy
(self, dict kwargs={})Return a new copy of a class object. update
(self, dict kwargs)Update (multiple) class variables from a dictionary of keyword arguments. -
_copy
(self, dict kwargs) → MCAB¶ Return a new copy of a class object. Kwargs (as dict) are passed to update() as a shortcut of simultaneously copying and updating.
Parameters: kwargs : dict
Dictionary of attributes and their updated value.
-
_inputKeys
(self) → list¶
-
_inputValues
(self) → list¶
-
_inputs
¶ _inputs: dict
-
_properties
¶ _properties: dict
-
_propertyKeys
(self) → list¶
-
_propertyValues
(self) → list¶
-
copy
(self, dict kwargs={})¶ Return a new copy of a class object. Kwargs (as dict) are passed to update() as a shortcut of simultaneously copying and updating.
Parameters: kwargs : dict, optional
Dictionary of attributes and their updated value.
-
name
¶ name: unicode
-
update
(self, dict kwargs) → void¶ Update (multiple) class variables from a dictionary of keyword arguments.
Parameters: kwargs : dict
Dictionary of attributes and their updated value; kwargs={‘key’: value}.
-
-
class
mcycle.bases.mcabstractbase.
MCAttr
¶ Bases:
object
Class for storing information about MCycle attributes, currently for use with summary() methods, but could have more future use. Only accessible by Cython code.
Attributes
cls
cls: object dimension
dimension: unicode -
cls
¶ cls: object
-
dimension
¶ dimension: unicode
-
-
mcycle.bases.mcabstractbase.
__pyx_unpickle_MCAB
(__pyx_type, long __pyx_checksum, __pyx_state)¶