\$\begingroup\$
\$\endgroup\$
1
I am using the ltspice python package to extract the data from the .raw file as seen in this link. However, when I try to apply it to my raw file I get the following error:
*Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python37\lib\site-packages\ltspice\ltspice.py", line 98, in parse
self.data_raw = np.reshape(np.array(self.data_raw), (self._point_num, self._variable_num + 1))
File "<__array_function__ internals>", line 6, in reshape
File "C:\Python37\lib\site-packages\numpy\core\fromnumeric.py", line 301, in reshape
return _wrapfunc(a, 'reshape', newshape, order=order)
File "C:\Python37\lib\site-packages\numpy\core\fromnumeric.py", line 61, in _wrapfunc
return bound(*args, **kwds)
ValueError: cannot reshape array of size 0 into shape (1746,33)*
Any suggestions on how to solve the problem?
a concerned citizen
22.1k1 gold badge26 silver badges43 bronze badges
asked Oct 21, 2020 at 13:00
-
\$\begingroup\$ Best ask the creators of that package. This has very little to do with electronics. \$\endgroup\$a concerned citizen– a concerned citizen2020年10月21日 15:07:10 +00:00Commented Oct 21, 2020 at 15:07
1 Answer 1
\$\begingroup\$
\$\endgroup\$
After some research I ended up finding the solution. The ltspice package for python should be updated. To anyone dealing with the same problem, better change the ltspice.py file with the one found here
answered Nov 11, 2020 at 14:15
lang-py