Skip to content

Commit

Permalink
Fix docker build and runtime error (#71)
Browse files Browse the repository at this point in the history
Scantools / Docker version works again. 
Verified through local ci.

---------

Co-authored-by: Lukas Gruber <[email protected]>
Co-authored-by: Pablo Speciale <[email protected]>
  • Loading branch information
3 people authored Jun 21, 2024
1 parent f4d83cb commit 4a3b2d8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ RUN python3 -m pip install --no-deps \
pytijo==0.0.2 \
pyzbar-upright==0.1.8 \
rawpy==0.19.1 \
scipy==1.11.4
scipy==1.11.4 \
numpy==1.26.4 \
pillow==10.3.0

RUN cd lamar && python3 -m pip install -e .[scantools] --no-deps
WORKDIR /lamar

Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ scantools = [
"pyzbar-upright==0.1.8",
"rawpy==0.19.1",
"scipy==1.11.4",
"numpy==1.26.4",
"pillow==10.3.0",
]
dev = [
"pytest",
Expand Down
4 changes: 2 additions & 2 deletions scantools/scanners/navvis/iwconfig_parser.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import collections

from pytijo import parser
import re

IWConfigData = collections.namedtuple('IWConfigData',
['mac_address',
Expand Down Expand Up @@ -80,7 +79,8 @@ def parse_iwconfig(data):
assert -127 <= float(wifi_sample['signal_level']) <= 127
assert wifi_sample['frequency'] is not None
assert wifi_sample['time_offset'] is not None
assert wifi_sample['ssid'] is not None
if wifi_sample['ssid'] is None:
continue

wifi_sample = IWConfigData(
wifi_sample['mac_address'],
Expand Down
3 changes: 2 additions & 1 deletion scantools/scanners/navvis/navvis.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,8 @@ def read_wifi(self):
sample.mac_address,
sample.signal_strength_dbm,
sample.frequency_khz,
sample.time_offset_ms)
sample.time_offset_ms,
sample.ssid)

wifi_measurements.append(wifi_measurement)

Expand Down

0 comments on commit 4a3b2d8

Please sign in to comment.