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

Method isInvalid

eos/saveddata/module.py:176–194  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

174
175 @property
176 def isInvalid(self):
177 # todo: validate baseItem as well if it's set.
178 if self.isEmpty:
179 return False
180 if self._item is None:
181 return True
182 if (
183 self._item.category.name not in ("Module", "Subsystem", "Structure Module")
184 and self._item.group.name not in self.SYSTEM_GROUPS
185 ):
186 return True
187 if (
188 self._item.category.name == "Structure Module"
189 and self._item.group.name == "Quantum Cores"
190 ):
191 return True
192 if self._mutaIsInvalid:
193 return True
194 return False
195
196 @property
197 def numCharges(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected