ValueError: the number of columns changed from 2 to 1 at row 54; use usecols
to select a subset and avoid this error
#298
Unanswered
SakuraWutk
asked this question in
Q&A Usage
Replies: 1 comment
-
Is it possible your problem is the same as this one? antmicro/gerber2ems#12 From the error messages, it seems that one or more of the output files are getting truncated after outputting time and aren't outputting a current or voltage value. Not sure if this is something that is more likely to happen when using gerber2ems. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Time for 109252 iterations with 2386800.00 cells : 474.39 sec
Speed: 549.68 MCells/s
[11:29:30][INFO] Postprocessing
[11:29:30][INFO] Adding virtual ports
Traceback (most recent call last):
File "/home/codespace/.python/current/bin/gerber2ems", line 8, in
sys.exit(main())
^^^^^^
File "/home/codespace/.python/current/lib/python3.12/site-packages/gerber2ems/main.py", line 57, in main
postprocess(sim)
File "/home/codespace/.python/current/lib/python3.12/site-packages/gerber2ems/main.py", line 126, in postprocess
reflected, incident = sim.get_port_parameters(index, frequencies)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/codespace/.python/current/lib/python3.12/site-packages/gerber2ems/simulation.py", line 450, in get_port_parameters
port.CalcPort(result_path, frequencies)
File "/home/codespace/.local/lib/python3.12/site-packages/openEMS-0.0.36-py3.12-linux-x86_64.egg/openEMS/ports.py", line 116, in CalcPort
self.ReadUIData(sim_path, freq, signal_type)
File "/home/codespace/.local/lib/python3.12/site-packages/openEMS-0.0.36-py3.12-linux-x86_64.egg/openEMS/ports.py", line 320, in ReadUIData
self.u_data = UI_data(self.U_filenames, sim_path, freq, signal_type )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/codespace/.local/lib/python3.12/site-packages/openEMS-0.0.36-py3.12-linux-x86_64.egg/openEMS/ports.py", line 43, in init
tmp = np.loadtxt(os.path.join(path, fn),comments='%')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/codespace/.local/lib/python3.12/site-packages/numpy/lib/_npyio_impl.py", line 1395, in loadtxt
arr = _read(fname, dtype=dtype, comment=comment, delimiter=delimiter,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/codespace/.local/lib/python3.12/site-packages/numpy/lib/_npyio_impl.py", line 1046, in _read
arr = _load_from_filelike(
^^^^^^^^^^^^^^^^^^^^
ValueError: the number of columns changed from 2 to 1 at row 54; use
usecols
to select a subset and avoid this errorAfter I configured the files, there was a error.
Beta Was this translation helpful? Give feedback.
All reactions