echemdata / galvani

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

NotImplementedError: Column ID 174 after column time/s is unknown #109

Open Roy027 opened 7 months ago

Roy027 commented 7 months ago

Here is the error msg

NotImplementedError: Column ID 174 after column time/s is unknown
File c:\Users\XXX\Python39\EnvGeneral\lib\site-packages\galvani\BioLogic.py:413, in MPRfile.__init__(self, file_or_path)
    408     raise ValueError("Unrecognised version for data module: %d" %
    409                      data_module['version'])
    411 assert(not any(remaining_headers))
--> 413 self.dtype, self.flags_dict = VMPdata_dtype_from_colIDs(column_types)
    414 self.data = np.frombuffer(main_data, dtype=self.dtype)
    415 assert(self.data.shape[0] == n_data_points)

File c:\Users\XXX\Python39\EnvGeneral\lib\site-packages\galvani\BioLogic.py:310, in VMPdata_dtype_from_colIDs(colIDs)
    308         type_list.append((unique_field_name, field_type))
    309     else:
--> 310         raise NotImplementedError("Column ID {cid} after column {prev} "
    311                                   "is unknown"
    312                                   .format(cid=colID,
    313                                           prev=type_list[-1][0]))
    314 return np.dtype(type_list), flags_dict

Seems VMPdata_dtype_from_colIDs didnt include all the type. Please help look into this issue thanks.

ml-evs commented 7 months ago

Can you confirm that you are running the latest version (i.e., installed from the master branch of this repository) of galvani please? Line 413 as reported in the error message has changed compared to what is written above. Please also tell us what version of ECLab generated this file, as there was a big change recently which took some effort here to support (see #87).

EDIT: you can install from this repo with:

GIT_LFS_SKIP_SMUDGE=1 pip install git+https://github.com/echemdata/galvani

fg-personal commented 4 months ago

I am getting a similar error with galvani 0.4.1