Closed miguelcarcamov closed 2 years ago
@miguelcarcamov can you check that you have the latest astropy & casa-formats-io? I tried the same code and instead got this:
In [5]: table = Table.read('HD163296_continuum.ms')
read (None, None, 'HD163296_continuum.ms') {}
/blue/adamginsburg/adamginsburg/repos/casa-formats-io/casa_formats_io/casa_low_level_io/data_managers/tiled.py:163: RuntimeWarning: divide by zero encountered in long_scalars
factors = [f for f in range(stacks[dim] + 1) if stacks[dim] % f == 0]
Traceback (most recent call last):
File "<ipython-input-5-b128b0d2433e>", line 1, in <module>
table = Table.read('HD163296_continuum.ms')
File "/home/adamginsburg/.local/lib/python3.9/site-packages/astropy/table/connect.py", line 61, in __call__
out = registry.read(cls, *args, **kwargs)
File "/home/adamginsburg/.local/lib/python3.9/site-packages/astropy/io/registry.py", line 527, in read
data = reader(*args, **kwargs)
File "/blue/adamginsburg/adamginsburg/repos/casa-formats-io/casa_formats_io/table_reader.py", line 19, in read_casa_table
return table.as_astropy_table(data_desc_id=data_desc_id)
File "/blue/adamginsburg/adamginsburg/repos/casa-formats-io/casa_formats_io/casa_low_level_io/table.py", line 380, in as_astropy_table
raise ValueError("There are multiple DATA_DESC_ID values present "
ValueError: There are multiple DATA_DESC_ID values present in the table, select the one you need with data_desc_id=<value>. Valid options are 0/1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23
and here's the successful version, plus my astropy/casaformatsio versions:
In [6]: table = Table.read('HD163296_continuum.ms', data_desc_id=0)
read (None, None, 'HD163296_continuum.ms') {'data_desc_id': 0}
/blue/adamginsburg/adamginsburg/repos/casa-formats-io/casa_formats_io/casa_low_level_io/data_managers/tiled.py:163: RuntimeWarning: divide by zero encountered in long_scalars
factors = [f for f in range(stacks[dim] + 1) if stacks[dim] % f == 0]
In [7]: import astropy, casa_formats_io
In [8]: print(astropy.__version__, casa_formats_io.__version__)
4.3.1 0.2.dev79+gf3fcc08
Yes, it was the version! I needed to install the last version from the main branch. Thanks!
Hello everyone, I am testing casa-formats-io because I am interested on reading and writing data bypassing python-casacore.
I am currently testing with this DSHARP dataset:
https://almascience.nrao.edu/almadata/lp/DSHARP/MSfiles/HD163296_continuum.ms.tgz
When I do
I get this error:
What can I do to fix this? Cheers,