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

Class YDef

graphs/data/base/defs.py:27–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26
27class YDef:
28
29 def __init__(self, handle, unit, label, selectorLabel=None, hidden=False):
30 self.handle = handle
31 self.unit = unit
32 self.label = label
33 self._selectorLabel = selectorLabel
34 self.hidden = hidden
35
36 @property
37 def selectorLabel(self):
38 if self._selectorLabel is not None:
39 return self._selectorLabel
40 return self.label
41
42 def __hash__(self):
43 return hash((self.handle, self.unit, self.label, self._selectorLabel))
44
45 def __eq__(self, other):
46 if not isinstance(other, YDef):
47 return False
48 return all((
49 self.handle == other.handle,
50 self.unit == other.unit,
51 self.label == other.label,
52 self._selectorLabel == other._selectorLabel))
53
54
55class XDef:

Callers 10

yDefsMethod · 0.90
FitWarpTimeGraphClass · 0.90
yDefsMethod · 0.90
FitCapacitorGraphClass · 0.90
FitEwarStatsGraphClass · 0.90
yDefsMethod · 0.90
FitRemoteRepsGraphClass · 0.90
FitLockTimeGraphClass · 0.90
FitMobilityGraphClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected