Skip to content

DM-54146: Add IntrinsicZernikes IsrCalib#441

Open
jmeyers314 wants to merge 3 commits intomainfrom
tickets/DM-54146
Open

DM-54146: Add IntrinsicZernikes IsrCalib#441
jmeyers314 wants to merge 3 commits intomainfrom
tickets/DM-54146

Conversation

@jmeyers314
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Contributor

@erykoff erykoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few questions/comments; looks good overall.

Comment thread python/lsst/ip/isr/intrinsicZernikes.py Outdated


class IntrinsicZernikes(IsrCalib):
"""
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a docstring


super().__init__(**kwargs)

if table is not None:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This table seems to be different from the calib table? A docstring might help explain what this is.

newCalib = IntrinsicZernikes.fromTable(self.calib.toTable())
self.assertEqual(newCalib, self.calib)

def test_yaml_roundtrip(self):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't usually save in yaml (I didn't know this would work?) we save in ecsv which should be the text-based approach (I think?).

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yaml is listed here!

But happy to add an ecsv test too. In fact, adding that let me discover that .yaml and .fits files are apparently silently overwritten by writeText and writeFits, but attempting to overwrite an ecsv is an error. Not sure if you care to symmetrize that or not (i.e., add overwrite=True here ).

@jmeyers314
Copy link
Copy Markdown
Author

Addressed comments. But looking at this again fresh, I'm wondering if I need to worry more about details like "field angle but in what coordinate system" and should it be field angle or focal plane position...

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

Successfully merging this pull request may close these issues.

2 participants