- changed status to resolved
test_gs2_diagnostics_new has errors but reports as passing
Issue #233
resolved
The test has some errors:
Running : test_gs2_diagnostics_new
Running : test_gs2_diagnostics_new
ValueError: could not convert string to float: 't='
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/builds/gyrokinetics/gs2/tests/unit_tests/gs2_diagnostics_new/./compare_ascii.py", line 12, in <module>
var1 = np.loadtxt(args.file1)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib64/python3.11/site-packages/numpy/lib/npyio.py", line 1356, in loadtxt
arr = _read(fname, dtype=dtype, comment=comment, delimiter=delimiter,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib64/python3.11/site-packages/numpy/lib/npyio.py", line 999, in _read
arr = _load_from_filelike(
^^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string 't=' to float64 at row 0, column 1.
/builds/gyrokinetics/gs2/tests/unit_tests/gs2_diagnostics_new/./compare_ascii.py:12: UserWarning: loadtxt: input contained no data: "old_diagnostics/test_gs2_diagnostics_new.jext"
var1 = np.loadtxt(args.file1)
Traceback (most recent call last):
File "/builds/gyrokinetics/gs2/tests/unit_tests/gs2_diagnostics_new/./compare_ascii.py", line 13, in <module>
var2 = np.loadtxt(args.file2)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib64/python3.11/site-packages/numpy/lib/npyio.py", line 1356, in loadtxt
arr = _read(fname, dtype=dtype, comment=comment, delimiter=delimiter,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib64/python3.11/site-packages/numpy/lib/npyio.py", line 975, in _read
fh = np.lib._datasource.open(fname, 'rt', encoding=encoding)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib64/python3.11/site-packages/numpy/lib/_datasource.py", line 193, in open
return ds.open(path, mode, encoding=encoding, newline=newline)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib64/python3.11/site-packages/numpy/lib/_datasource.py", line 533, in open
raise FileNotFoundError(f"{path} not found.")
FileNotFoundError: test_gs2_diagnostics_new.jext not found.
Traceback (most recent call last):
File "/builds/gyrokinetics/gs2/tests/unit_tests/gs2_diagnostics_new/./compare_ascii.py", line 12, in <module>
var1 = np.loadtxt(args.file1)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib64/python3.11/site-packages/numpy/lib/npyio.py", line 1356, in loadtxt
arr = _read(fname, dtype=dtype, comment=comment, delimiter=delimiter,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib64/python3.11/site-packages/numpy/lib/npyio.py", line 999, in _read
arr = _load_from_filelike(
^^^^^^^^^^^^^^^^^^^^
ValueError: the number of columns changed from 19 to 18 at row 2; use `usecols` to select a subset and avoid this error
but reports as passing
Comments (1)
-
- Log in to comment
Fixed by PR #720