0
\$\begingroup\$

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
\$\endgroup\$
1
  • \$\begingroup\$ Best ask the creators of that package. This has very little to do with electronics. \$\endgroup\$ Commented Oct 21, 2020 at 15:07

1 Answer 1

1
\$\begingroup\$

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
\$\endgroup\$

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.