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

Method stringToImplants

service/precalcImplantSet.py:48–60  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

46
47 @staticmethod
48 def stringToImplants(string):
49 sMkt = Market.getInstance()
50 implants = []
51 for typeID in (int(tid) for tid in string.split(',')):
52 item = sMkt.getItem(typeID)
53 if item is None:
54 continue
55 try:
56 implant = Implant(item)
57 except ValueError:
58 continue
59 implants.append(implant)
60 return implants
61
62

Callers 1

handleSelectionMethod · 0.80

Calls 4

ImplantClass · 0.90
getItemMethod · 0.80
getInstanceMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected