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-21739: Enable and test fringe/strayLight in gen3 #116

Merged
merged 4 commits into from Dec 11, 2019
Merged

Conversation

czwa
Copy link
Contributor

@czwa czwa commented Nov 8, 2019

No description provided.

Copy link
Contributor

@natelust natelust left a comment

Choose a reason for hiding this comment

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

Approve conditioned on addressing the small comments

# straylightRef = inputs['strayLightData']
# diskUri = straylightRef.getUri()
# inputs['strayLightData'] = diskUri
print("Recieved straylightData: ", inputs['strayLightData'])
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably remove this debug print and put back in the comments?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm rewriting this, as butler now handles StrayLightData objects. This mitigates the need for the getUri, as inputs['strayLightData'] now contains the object itself.

fringe = assembler.assembleCcd(fringe)
fringeExp = assembler.assembleCcd(fringeExp)

seed = self.config.stats.rngSeedOffset + 12345678
Copy link
Contributor

Choose a reason for hiding this comment

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

why this magic number, if no reason add a comment. If there is a reason, add a comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to try to use the exposureId as in gen2 instead of a magic number.

# straylightRef = inputs['strayLightData']
# diskUri = straylightRef.getUri()
# inputs['strayLightData'] = diskUri
print("Recieved straylightData: ", inputs['strayLightData'])
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you dont want to print here, but add it to inputs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As above, rewritten. inputs['strayLightData'] should get what it says from the butler, and if not, rely on the straylight task to raise if it can't handle things.

self.assertFloatsAlmostEqual(medianAfter, 3002.233, atol=1e-4)
self.assertFloatsAlmostEqual(stdAfter, 3549.9375, atol=1e-4)
self.assertFloatsAlmostEqual(medianAfter, 3001.312, atol=1e-4)
self.assertFloatsAlmostEqual(stdAfter, 3549.949, atol=1e-4)
Copy link
Contributor

Choose a reason for hiding this comment

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

What did these values change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These values are related to how the fringe seed value is set. The tolerance likely should be smaller to more accurately represent the error in this measurement due to changes in seed, but I'm not going to worry about it on this ticket.

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