diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-09-12 09:56:31 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-09-12 09:56:31 +0200 |
commit | d93f448352e2ba131b4ea594be791b3277395878 (patch) | |
tree | 19c80c97dc83fa1d3f9bf4e9d5f112d5d8138d8f /lib | |
parent | d109a57c8d461b9b094cc84cb2753865f04e42b1 (diff) |
PTA: Always use integer energy data
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/automata.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/automata.py b/lib/automata.py index 3bb7878..664d750 100755 --- a/lib/automata.py +++ b/lib/automata.py @@ -53,7 +53,7 @@ class State: return self.power * duration def set_random_energy_model(self, static_model = True): - self.power = np.random.sample() * 50000 + self.power = int(np.random.sample() * 50000) def get_transition(self, transition_name: str) -> object: """Return Transition object for outgoing transtion transition_name.""" @@ -238,7 +238,7 @@ class Transition: return self.energy def set_random_energy_model(self, static_model = True): - self.energy = np.random.sample() * 50000 + self.energy = int(np.random.sample() * 50000) def get_timeout(self, param_dict: dict = {}) -> float: u""" |