Skip to content

Unable to load .mpt file (EIS imported) #4

@KamilBUT

Description

@KamilBUT

I am unable to load .mpt file which was previously imported to EC-Lab from .txt hence has no cycle_number column:


AttributeError Traceback (most recent call last)
in
1 from PyEIS import *
2
----> 3 ex1 = EIS_exp(path='EIS/', data=['Imported_EIS.mpt'])

~\miniconda3\lib\site-packages\PyEIS\PyEIS.py in init(self, path, data, cycle, mask)
2241 print('Data file(s) could not be identified')
2242
-> 2243 self.cycleno.append(self.df_raw0[j].cycle_number)
2244 if np.min(self.cycleno[j]) <= np.max(self.cycleno[j-1]):
2245 if j > 0: #corrects cycle_number except for the first data file

~\miniconda3\lib\site-packages\pandas\core\generic.py in getattr(self, name)
5272 if self._info_axis._can_hold_identifiers_and_holds_name(name):
5273 return self[name]
-> 5274 return object.getattribute(self, name)
5275
5276 def setattr(self, name: str, value) -> None:

AttributeError: 'DataFrame' object has no attribute 'cycle_number'

Imported_EIS.txt

If I manually add this column, I am greeted with another error, similar to the error I will discuss in next issue topic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions