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

Method exportPatterns

eos/saveddata/targetProfile.py:422–438  ·  view source on GitHub ↗
(cls, *patterns)

Source from the content-addressed store, hash-verified

420
421 @classmethod
422 def exportPatterns(cls, *patterns):
423 out = "# Exported from pyfa\n#\n"
424 out += "# Values are in following format:\n"
425 out += "# TargetProfile = [name],[EM %],[Thermal %],[Kinetic %],[Explosive %],[Max velocity m/s],[Signature radius m],[Radius m]\n\n"
426 for dp in patterns:
427 out += cls.EXPORT_FORMAT % (
428 dp.rawName,
429 dp.emAmount * 100,
430 dp.thermalAmount * 100,
431 dp.kineticAmount * 100,
432 dp.explosiveAmount * 100,
433 dp.maxVelocity,
434 dp.signatureRadius,
435 dp.radius
436 )
437
438 return out.strip()
439
440 @property
441 def name(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected