Skip to content

Commit

Permalink
removed numpy dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
tpulatha committed May 18, 2022
1 parent 6ea5f3a commit cb7060d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion docs/CodeExplaination/WRtoBLEANT.MD
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ The script start with the import of the needed modules and also with the Waterro
import time
import datetime
import logging
import numpy

import WaterrowerInterface

Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
pyserial == 3.5
PyGObject == 3.38.0
dbus-python == 1.2.18
numpy == 1.20.1
pyusb == 1.2.0
gatt == 0.2.7
supervisor == 4.2.1
Expand Down
3 changes: 1 addition & 2 deletions src/adapters/s4/wrtobleant.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import time
import datetime
import logging
import numpy
from copy import deepcopy

from . import waterrowerinterface
Expand Down Expand Up @@ -186,7 +185,7 @@ def avgInstaPowercalc(self,watts):
while len(self._InstaPowerStroke) > POWER_AVG_STROKES:
self._InstaPowerStroke.pop(0)
if len(self._InstaPowerStroke) == POWER_AVG_STROKES:
self.AvgInstaPower = int(numpy.average(self._InstaPowerStroke))
self.AvgInstaPower = int(sum(self._InstaPowerStroke) / len(self._InstaPowerStroke))
self.WRValues.update({'watts': self.AvgInstaPower})


Expand Down
1 change: 0 additions & 1 deletion src/testing/fakerower.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import itertools
import time
import binascii
import numpy as np

result = []

Expand Down

0 comments on commit cb7060d

Please sign in to comment.