echemdata / galvani

Read proprietary file formats from electrochemical test stations
GNU General Public License v3.0
47 stars 30 forks source link

Similar problem as #27 #48

Open ZeliangSu opened 4 years ago

ZeliangSu commented 4 years ago

I ran into a similar bug as #27, while doing Biologic.MPRfile('path/to/mpr.mpr')

ValueError: Invalid magic for .mpr file: b'<?xml version="1.0" encoding="UTF-8"?>\r\n<Configurati'

from

File "/Users/suweiguo/anaconda3/envs/eclab2/lib/python3.6/site-packages/galvani-0.1.0-py3.6.egg/galvani/BioLogic.py", line 314, in init

which is probably due to the very old Biologic VMP

ZeliangSu commented 4 years ago

There is a small work around which is to open the .mpr with the latest version of EC-Lab or version supported by galvani, then save the data to another .mpr file

chatcannon commented 4 years ago

@ZeliangSu Could you send me a copy of the file which triggers this bug? Ideally together with the other file that has the same data but does not cause the bug.

ZeliangSu commented 3 years ago

Sorry for this late reply. May I have your email? @chatcannon

chatcannon commented 3 years ago

@ZeliangSu You can email me at chris.kerr@mykolab.ch