Hi, I tried to load my own EIS but failed horribly. Am I missing something?
I suspected the negative -Im(Z)/Ohm values, but I got the same error after I deleted them.
TypeError Traceback (most recent call last)
~\miniconda3\lib\site-packages\pandas\core\ops\array_ops.py in na_arithmetic_op(left, right, op, str_rep)
148 try:
--> 149 result = expressions.evaluate(op, str_rep, left, right)
150 except TypeError:
~\miniconda3\lib\site-packages\pandas\core\computation\expressions.py in evaluate(op, op_str, a, b, use_numexpr)
207 if use_numexpr:
--> 208 return _evaluate(op, op_str, a, b)
209 return _evaluate_standard(op, op_str, a, b)
~\miniconda3\lib\site-packages\pandas\core\computation\expressions.py in _evaluate_standard(op, op_str, a, b)
69 with np.errstate(all="ignore"):
---> 70 return op(a, b)
71
~\miniconda3\lib\site-packages\pandas\core\ops\roperator.py in rmul(left, right)
16 def rmul(left, right):
---> 17 return right * left
18
TypeError: can't multiply sequence by non-int of type 'float'
During handling of the above exception, another exception occurred:
TypeError Traceback (most recent call last)
in
1 from PyEIS import *
2
----> 3 ex1 = EIS_exp(path='EIS/', data=['My_EIS.mpt'])
~\miniconda3\lib\site-packages\PyEIS\PyEIS.py in init(self, path, data, cycle, mask)
2283 else:
2284 print("Too many data files || 15 allowed")
-> 2285 self.df_raw = self.df_raw.assign(w = 2np.piself.df_raw.f) #creats a new coloumn with the angular frequency
2286
2287 #Masking data to each cycle
~\miniconda3\lib\site-packages\pandas\core\ops\common.py in new_method(self, other)
62 other = item_from_zerodim(other)
63
---> 64 return method(self, other)
65
66 return new_method
~\miniconda3\lib\site-packages\pandas\core\ops_init_.py in wrapper(left, right)
501 lvalues = extract_array(left, extract_numpy=True)
502 rvalues = extract_array(right, extract_numpy=True)
--> 503 result = arithmetic_op(lvalues, rvalues, op, str_rep)
504
505 return _construct_result(left, result, index=left.index, name=res_name)
~\miniconda3\lib\site-packages\pandas\core\ops\array_ops.py in arithmetic_op(left, right, op, str_rep)
195 else:
196 with np.errstate(all="ignore"):
--> 197 res_values = na_arithmetic_op(lvalues, rvalues, op, str_rep)
198
199 return res_values
~\miniconda3\lib\site-packages\pandas\core\ops\array_ops.py in na_arithmetic_op(left, right, op, str_rep)
149 result = expressions.evaluate(op, str_rep, left, right)
150 except TypeError:
--> 151 result = masked_arith_op(left, right, op)
152
153 return missing.dispatch_fill_zeros(op, left, right, result)
~\miniconda3\lib\site-packages\pandas\core\ops\array_ops.py in masked_arith_op(x, y, op)
110 if mask.any():
111 with np.errstate(all="ignore"):
--> 112 result[mask] = op(xrav[mask], y)
113
114 result, _ = maybe_upcast_putmask(result, ~mask, np.nan)
~\miniconda3\lib\site-packages\pandas\core\ops\roperator.py in rmul(left, right)
15
16 def rmul(left, right):
---> 17 return right * left
18
19
TypeError: can't multiply sequence by non-int of type 'float'
Hi, I tried to load my own EIS but failed horribly. Am I missing something?
I suspected the negative -Im(Z)/Ohm values, but I got the same error after I deleted them.
This is EIS file My_EIS.txt