Closed keflavich closed 3 years ago
I've got a PR ready with the first suggestion, but I like the second one a lot more. Both @preshanth and I can work on implementing that for the Stokes cubes.
I agree that we should implement something along the second style of
cube_I = cube['I']
.
This will allow for internal conversion functions between the different stokes say. You have a cube that contains ['I','Q','U','V'] then when a user asks for
cube_P=cube['P']
we can perform the stokes conversion internally.
closed by #751
To access the components of a
StokesSpectralCube
, you presently need to access a private attribute, for example:That's not good! We should probably implement at least a public access like:
and better still,
@Kitchi, what do you think?
A PR would be welcome!