Skip to content

Usage update from 3.1 -> 3.2 #1604

@telegraphic

Description

@telegraphic

Is it still possible/reasonable to create an empty UVData object, then populate the attributes?

Previously (up until 3.1.3), I was able to create a blank UVData() object, and update parameters line by line, e.g.

uv = pyuvdata.UVData()
uv.Nbls            = md['n_baselines']
uv.Nblts           = md['n_baselines'] * md['n_integrations']

As of 3.2.0, this doesn't work:

uv = pyuvdata.UVData()
uv.Nants_telescope = 256
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[6], line 1
----> 1 uv.Nants_telescope = 256

AttributeError: property 'Nants_telescope' of 'UVData' object has no setter

It looks like this is due to using a Telescope() class at uv.telescope, but I'm not sure how this should be set up (the pyuvdata.Telescope.from_params() mentioned in the docs does not seem to exist). Is it still reasonable to create this as an empty Telescope() object and update the attributes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsdocumentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions