MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / fit

Method fit

eos/modifiedAttributeDict.py:150–159  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected