alias_child
- PlasmaCalcs.tools.properties.alias_child(child_name, attribute_name, doc=None, *, if_no_child=NO_VALUE, if_special_child=UNSET)
returns a property which is an alias to obj.child_name.attribute_name.
if doc is None, use doc=f’alias to self.{child_name}.{attribute_name}’.includes getter AND setter methods.- if_no_child: NO_VALUE or any object
- if provided (not NO_VALUE), return this instead if child is None or doesn’t exist.
- if_special_child: UNSET or dict
- if provided, dict of {special key: value to return if child == special key}