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

Method recalc

service/fit.py:531–540  ·  view source on GitHub ↗
(self, fit)

Source from the content-addressed store, hash-verified

529 self.fill(fit)
530
531 def recalc(self, fit):
532 if isinstance(fit, int):
533 fit = self.getFit(fit)
534 start_time = time()
535 pyfalog.info("=" * 10 + "recalc: {0}" + "=" * 10, fit.name)
536
537 fit.factorReload = self.serviceFittingOptions["useGlobalForceReload"]
538 fit.clear()
539 fit.calculateModifiedAttributes()
540 pyfalog.info("=" * 10 + "recalc time: " + str(time() - start_time) + "=" * 10)
541
542 def fill(self, fit):
543 if isinstance(fit, int):

Callers 15

newFitMethod · 0.95
processOverrideToggleMethod · 0.95
switchFitMethod · 0.95
getFitMethod · 0.95
changeCharMethod · 0.95
setTargetProfileMethod · 0.95
setDamagePatternMethod · 0.95
setAsPatternMethod · 0.95
setRahPatternMethod · 0.95
refreshFitMethod · 0.95
__exit__Method · 0.80

Calls 3

getFitMethod · 0.95
clearMethod · 0.45

Tested by

no test coverage detected