Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-43334: Add dmL1AstroErr/dmL2AstroErr metric #222

Merged
merged 1 commit into from Mar 21, 2024
Merged

Conversation

cmsaunders
Copy link
Contributor

No description provided.

@jeffcarlin jeffcarlin self-requested a review March 18, 2024 18:30
Copy link
Collaborator

@jeffcarlin jeffcarlin left a comment

Choose a reason for hiding this comment

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

I agree with your choice of implementation. I confirmed that the code runs fine and produces reasonable results (though note that you'll need to change "RA" to "Dec" in the matchedVisitCore pipeline). Just a few small comments, and I think this is good to go!

self.process.buildActions.perGroupStd.outUnit = "marcsec"
self.process.buildActions.perGroupStd.buildAction = PerGroupStatistic()
self.process.buildActions.perGroupStd.buildAction.func = "std"
self.process.buildActions.perGroupStd.buildAction.buildAction.vectorKey = "coord_dec"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure I understand the use of "coord_dec" here -- is it just that it doesn't matter at this stage whether you give it RA or Dec because it gets overridden in .finalize()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Something has to be set, or the configuration validation fails. However, if I have this, I don't actually need the else part of the if self.coordinate == "RA":.. statement in finalize(), so I took that out.

"""Calculate the median position RMS of point sources."""

fluxType = Field[str](doc="Flux type to calculate repeatability with", default="psfFlux")
level = Field[int](doc="Level 1 or 2 data product (1 or 2)", default=1)
Copy link
Collaborator

Choose a reason for hiding this comment

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

May be worth documenting the fact that this config param doesn't actually set which level the task is run on, but just provides text for the metric name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, good point! That should be more clear.

atools.stellarAstrometricSelfRepeatabilityRA.coordinate: 'RA'
atools.stellarAstrometricSelfRepeatabilityDec: AstrometricRepeatability
atools.stellarAstrometricSelfRepeatabilityDec.level: 2
atools.stellarAstrometricSelfRepeatabilityDec.coordinate: 'RA'
Copy link
Collaborator

Choose a reason for hiding this comment

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

'RA' --> 'Dec'

@cmsaunders cmsaunders force-pushed the tickets/DM-43334 branch 2 times, most recently from 954bab0 to 50819ea Compare March 20, 2024 19:47
Copy link
Collaborator

@jeffcarlin jeffcarlin left a comment

Choose a reason for hiding this comment

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

Looks good!

@cmsaunders cmsaunders merged commit 23d0b43 into main Mar 21, 2024
8 checks passed
@cmsaunders cmsaunders deleted the tickets/DM-43334 branch March 21, 2024 15:05
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.

None yet

2 participants