radio-astro-tools / casa-formats-io

Code to handle I/O from/to data in CASA format
Other
10 stars 7 forks source link

Possible bug when merging https://github.com/radio-astro-tools/casa-formats-io/issues/36 #45

Closed miguelcarcamov closed 2 years ago

miguelcarcamov commented 2 years ago

Hello, I've come back to test this package again. I have tried to read a whole measurement table with

from casa_formats_io.casa_low_level_io.table import CASATable
rslt = CASATable.read('/home/miguel/Documents/datasets/ALMA/HD163296/HD163296_continuum.ms')
tables = rslt.as_astropy_table(all_ddids=True)

And I'm getting this error:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Input In [7], in <cell line: 2>()
      1 rslt = CASATable.read('/home/miguel/Documents/datasets/ALMA/HD163296/HD163296_continuum.ms')
----> 2 tables = rslt.as_astropy_table(all_ddids=True)

TypeError: as_astropy_table() got an unexpected keyword argument 'all_ddids'

Could it be an error after merging with the main branch?

Cheers,

miguelcarcamov commented 2 years ago

My bad, the option is data_desc_id="all" now :)