Skip to content

Commit ccff821

Browse files
committed
Updated requirements to support FW 01.07.01 MF4 log files
1 parent 04f3ac5 commit ccff821

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ For some use cases the below examples may be useful:
2121

2222
## Installation
2323

24-
- Install Python 3.8.10 for Windows ([32 bit](https://www.python.org/ftp/python/3.8.10/python-3.8.10.exe)/[64 bit](https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe)) or [Linux](https://www.python.org/downloads/release/python-3810/) (_enable 'Add to PATH'_)
24+
- Install Python 3.9.13 for Windows ([32 bit](https://www.python.org/ftp/python/3.9.13/python-3.9.13.exe)/[64 bit](https://www.python.org/ftp/python/3.9.13/python-3.9.13-amd64.exe)) or [Linux](https://www.python.org/downloads/release/python-3913/) (_enable 'Add to PATH'_)
2525
- Download this project as a zip via the green button and unzip it
2626
- Open the folder with the `requirements.txt` file and enter below in your [command prompt](https://www.youtube.com/watch?v=bgSSJQolR0E&t=47s):
2727

examples/data-processing/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ idna==3.2
1717
importlib-metadata==4.5.0
1818
J1939-PGN==0.4
1919
jmespath==0.10.0
20-
mdf-iter>=0.0.7
20+
mdf-iter>=2.0.4
2121
multidict==5.1.0
2222
numpy==1.23.2
2323
pandas==1.4.3

examples/data-processing/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def add_signal_prefix(df_phys, can_id_prefix=False, pgn_prefix=False):
8888

8989
return df_phys
9090

91-
def restructure_data(df_phys, res):
91+
def restructure_data(df_phys, res, ffill=False):
9292
"""Restructure the decoded data to a resampled
9393
format where each column reflects a Signal
9494
"""
@@ -97,6 +97,9 @@ def restructure_data(df_phys, res):
9797
if not df_phys.empty and res != "":
9898
df_phys = df_phys.pivot_table(values="Physical Value", index=pd.Grouper(freq=res), columns="Signal")
9999

100+
if ffill:
101+
df_phys = df_phys.ffill()
102+
100103
return df_phys
101104

102105

examples/other/concatenate-mf4-by-period/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ future==0.18.2
99
isal==1.1.0
1010
lxml==4.9.2
1111
lz4==4.0.2
12-
mdf-iter==0.0.7
12+
mdf-iter>=2.0.4
1313
numexpr==2.8.4
1414
numpy==1.23.5
1515
pandas==1.5.2

0 commit comments

Comments
 (0)