Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing data_managers[0] #29

Open
keflavich opened this issue Nov 13, 2021 · 0 comments
Open

Missing data_managers[0] #29

keflavich opened this issue Nov 13, 2021 · 0 comments

Comments

@keflavich
Copy link
Contributor

In [9]: getdminfo('/orange/adamginsburg/ALMA_IMF/2017.1.01355.L/G353.41_B6_uid___A001_X1296_X1c9_continuum_merged_12M_selfcal.ms')
/blue/adamginsburg/adamginsburg/repos/casa-formats-io/casa_formats_io/casa_low_level_io/core.py:95: UserWarning: Endianness of IncrementalStMan did not match endianness of filehandle, correcting
  warnings.warn(f'Endianness of {name} did not match endianness of file'
/blue/adamginsburg/adamginsburg/repos/casa-formats-io/casa_formats_io/casa_low_level_io/core.py:95: UserWarning: Endianness of StandardStMan did not match endianness of filehandle, correcting
  warnings.warn(f'Endianness of {name} did not match endianness of file'
Traceback (most recent call last):
  File "<ipython-input-9-46e18ecad44f>", line 1, in <module>
    getdminfo('/orange/adamginsburg/ALMA_IMF/2017.1.01355.L/G353.41_B6_uid___A001_X1296_X1c9_continuum_merged_12M_selfcal.ms')
  File "/blue/adamginsburg/adamginsburg/repos/casa-formats-io/casa_formats_io/casa_low_level_io/casa_functions.py", line 18, in getdminfo
    dm = colset.data_managers[0]
KeyError: 0

MS file is here:
https://data.rc.ufl.edu/pub/adamginsburg/ALMA-IMF/debug/debug_ms.tar.gz

Possible fix:

    keys = list(colset.data_managers.keys())
    dm = colset.data_managers[keys[0]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant