Set the value of an attribute in all modules containing that attribute. Does nothing in modules not already containing the attribute. You may either pass attr_dict, a dict of attributes, or pass attributes as keyword arguments. Parameters ----------
(self, attr_dict=None, **attrs)
| 631 | return horizons[0] |
| 632 | |
| 633 | def set_module_attrs(self, attr_dict=None, **attrs): |
| 634 | """ |
| 635 | Set the value of an attribute in all modules containing that attribute. |
| 636 | |
| 637 | Does nothing in modules not already containing the attribute. |
| 638 | |
| 639 | You may either pass attr_dict, a dict of attributes, or pass attributes as keyword arguments. |
| 640 | |
| 641 | Parameters |
| 642 | ---------- |
| 643 | attr_dict : dict |
| 644 | Key-value pairs or attributes to set. Keys are attribute names values are the values |
| 645 | to set attribute to. |
| 646 | attrs : dict |
| 647 | Key-value pairs or attributes to set. Keys are attribute names values are the values |
| 648 | to set attribute to. |
| 649 | |
| 650 | Raises |
| 651 | ------ |
| 652 | AttributeError |
| 653 | If no module has the attribute. |
| 654 | |
| 655 | """ |
| 656 | self._modules.set_attrs(attr_dict, **attrs) |
| 657 | |
| 658 | @property |
| 659 | def current_step(self): |