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

Method __init__

eos/capSim.py:19–51  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17 """Entity's EVE Capacitor Simulator"""
18
19 def __init__(self):
20 # simulator defaults (change in instance, not here)
21
22 self.capacitorCapacity = 100
23 self.capacitorRecharge = 1000
24 self.startingCapacity = 1000
25
26 # max simulated time.
27 self.t_max = DAY
28
29 # take reloads into account?
30 self.reload = False
31
32 # stagger activations of identical modules?
33 self.stagger = False
34
35 # scale activation duration and capNeed to values that ease the
36 # calculation at the cost of accuracy?
37 self.scale = False
38
39 # millisecond resolutions for scaling
40 self.scale_resolutions = (100, 50, 25, 10)
41
42 # relevant decimal digits of capacitor for LCM period optimization
43 self.stability_precision = 1
44
45 # Stores how cap sim changed cap values outside of cap regen time
46 self.saved_changes = ()
47 self.saved_changes_internal = None
48
49 # Reports if sim was stopped due to detecting stability early
50 self.optimize_repeats = True
51 self.result_optimized_repeats = None
52
53 def scale_activation(self, duration, capNeed):
54 for res in self.scale_resolutions:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected