MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / register

Method register

eos/saveddata/fit.py:580–588  ·  view source on GitHub ↗
(self, currModifier, origin=None)

Source from the content-addressed store, hash-verified

578 # Methods to register and get the thing currently affecting the fit,
579 # so we can correctly map "Affected By"
580 def register(self, currModifier, origin=None):
581 self.__modifier = currModifier
582 self.__origin = origin
583 if hasattr(currModifier, "itemModifiedAttributes"):
584 if hasattr(currModifier.itemModifiedAttributes, "fit"):
585 currModifier.itemModifiedAttributes.fit = origin or self
586 if hasattr(currModifier, "chargeModifiedAttributes"):
587 if hasattr(currModifier.chargeModifiedAttributes, "fit"):
588 currModifier.chargeModifiedAttributes.fit = origin or self
589
590 def getModifier(self):
591 return self.__modifier

Calls

no outgoing calls

Tested by

no test coverage detected