Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
alirezade authored and alirezade committed Jan 10, 2024
1 parent 0cb738d commit 962a683
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ics_sim/Device.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ def add_sensor(self, tag, fault):
def read(self, tag):
if tag in self._sensors.keys():
value = self._get(tag)
print("reading value" + tag)
print(f"readed value {tag} is {value}")
value += random.uniform(value, -1 * value) * self._sensors[tag]


return value
else:
raise LookupError()
Expand Down

0 comments on commit 962a683

Please sign in to comment.