Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Roy027 opened this issue Feb 29, 2024 · 2 comments
Open

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

Roy027 opened this issue Feb 29, 2024 · 2 comments

Comments

@Roy027
Copy link

Roy027 commented Feb 29, 2024

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
Copy link
Collaborator

ml-evs commented Feb 29, 2024

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
Copy link

I am getting a similar error with galvani 0.4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants