dgbowl / yadg

yadg: yet another datagram
https://dgbowl.github.io/yadg
GNU General Public License v3.0
36 stars 13 forks source link

Error in parsing `.mpr` files with `CA` technique: #134

Closed PeterKraus closed 4 months ago

PeterKraus commented 10 months ago

https://github.com/vetschn/eclabfiles/issues/14

From @ScottSoren:

I am the main author of an open source project "ixdat" which also includes many python parsers for experimental data formats, including Biologic's .mpt. I'm trying to add a .mpr parser which makes use of eclabfiles for parsing the binary file.

eclabfiles works for some files but not others. For details, see this PR: ixdat/ixdat#134

Briefly, it seems to work for LSV measurements, but not CA or CVA. It's a different error message, so I'll put CA here and CVA in a separate issue.

The error I get is "Error: field '(Q-Qo)' occurs more than once". I get this same error whether using data, meta = eclabfiles.process("05_O2dose_COox_04_CA_C01.mpr") or df = eclabfiles.to_df("05_O2dose_COox_04_CA_C01.mpr")

The file is here, along with plots of the data (made with ixdat.Measurement.read("05_O2dose_COox_04_CA_C01.mpt").plot() as demo'd in "plot_data.py"): https://www.dropbox.com/scl/fo/cl0cnovmik7pjgcls2l9h/h?rlkey=v93snkrt2rq3uf95au26qdi0o&dl=0

Happy for any help or

I have downloaded a copy of the .mpt and .mpr files from the above link:

05_O2dose_COox_04_CA_C01.zip suggestions!

fionnf commented 8 months ago

I seem to get this error and think it is related: technique, params_dtypes = technique_params_dtypes[data[0x0000]]


KeyError: 48