-
Notifications
You must be signed in to change notification settings - Fork 61
Description
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'
If I manually add this column, I am greeted with another error, similar to the error I will discuss in next issue topic.