You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The recent refactor of SpaceCraftFile to support orientation files with orbital information makes the default orientation file in 511keV-DC2-ScAtt-DataReduction.ipynb un-parsable. This is because this line in the new SpaceCraftFile.parse_from_file() implies the source file has orbital info.
Potential fixes
Change the suggested orientation file to be 20280301_3_month_with_orbital_info.ori instead of 20280301_3_month.ori in the Jupyter Notebook.
Continue to support parsing files that do not have orbital information.
Trace of Error
File/project/cassini/cosi/cosipy/cosipy/spacecraftfile/SpacecraftFile.py:134, inSpacecraftFile.parse_from_file(cls, file)
117 @classmethod118defparse_from_file(cls, file):
120""" 121 Parses timestamps, axis positions from file and returns to __init__. 122 (...) 131 The SpacecraftFile object. 132 """-->134orientation_file=np.loadtxt(file, usecols=(1, 2, 3, 4, 5, 6, 7, 8),delimiter=' ', skiprows=1, comments=("#", "EN"))
135time_stamps=orientation_file[:, 0]
136axis_1=orientation_file[:, [2, 1]]
File/project/cassini/miniconda3/envs/cosipy/lib/python3.10/site-packages/numpy/lib/npyio.py:1373, inloadtxt(fname, dtype, comments, delimiter, converters, skiprows, usecols, unpack, ndmin, encoding, max_rows, quotechar, like)
1370ifisinstance(delimiter, bytes):
1371delimiter=delimiter.decode('latin1')
->1373arr=_read(fname, dtype=dtype, comment=comment, delimiter=delimiter,
1374converters=converters, skiplines=skiprows, usecols=usecols,
1375unpack=unpack, ndmin=ndmin, encoding=encoding,
1376max_rows=max_rows, quote=quotechar)
1378returnarrFile/project/cassini/miniconda3/envs/cosipy/lib/python3.10/site-packages/numpy/lib/npyio.py:1016, in_read(fname, delimiter, comment, quote, imaginary_unit, usecols, skiplines, max_rows, converters, ndmin, unpack, dtype, encoding)
1013data=_preprocess_comments(data, comments, encoding)
1015ifread_dtype_via_object_chunksisNone:
->1016arr=_load_from_filelike(
1017data, delimiter=delimiter, comment=comment, quote=quote,
1018imaginary_unit=imaginary_unit,
1019usecols=usecols, skiplines=skiplines, max_rows=max_rows,
1020converters=converters, dtype=dtype,
1021encoding=encoding, filelike=filelike,
1022byte_converters=byte_converters)
1024else:
1025# This branch reads the file into chunks of object arrays and then1026# casts them to the desired actual dtype. This ensures correct1027# string-length and datetime-unit discovery (like `arr.astype()`).1028# Due to chunking, certain error reports are less clear, currently.1029iffilelike:
ValueError: invalidcolumnindex6atrow1with6columns
The text was updated successfully, but these errors were encountered:
The recent refactor of SpaceCraftFile to support orientation files with orbital information makes the default orientation file in 511keV-DC2-ScAtt-DataReduction.ipynb un-parsable. This is because this line in the new
SpaceCraftFile.parse_from_file()
implies the source file has orbital info.Potential fixes
20280301_3_month_with_orbital_info.ori
instead of20280301_3_month.ori
in the Jupyter Notebook.Trace of Error
The text was updated successfully, but these errors were encountered: