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 a11f6e8 commit 0cb738d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ics_sim/Device.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def add_sensor(self, tag, fault):
def read(self, tag):
if tag in self._sensors.keys():
value = self._get(tag)
print("reading value" + tag)
value += random.uniform(value, -1 * value) * self._sensors[tag]

return value
else:
raise LookupError()
Expand Down

0 comments on commit 0cb738d

Please sign in to comment.