(self)
| 148 | |
| 149 | @property |
| 150 | def fit(self): |
| 151 | # self.fit is usually set during fit calculations when the item is registered with the fit. However, |
| 152 | # under certain circumstances, an effect will not work as it will try to modify an item which has NOT |
| 153 | # yet been registered and thus has not had self.fit set. In this case, use the modules owner attribute |
| 154 | # to point to the correct fit. See GH Issue #434 |
| 155 | if self.__fit is not None: |
| 156 | return self.__fit |
| 157 | if hasattr(self.parent, 'owner'): |
| 158 | return self.parent.owner |
| 159 | return None |
| 160 | |
| 161 | @fit.setter |
| 162 | def fit(self, fit): |
nothing calls this directly
no outgoing calls
no test coverage detected