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-43045: Stand-up per-camera cpSky configurations #236

Merged
merged 3 commits into from Mar 14, 2024
Merged

Conversation

leeskelvin
Copy link
Contributor

No description provided.

self.largeScaleBackground.xSize = 122.88 # in mm
self.largeScaleBackground.ySize = 122.88 # in mm
self.largeScaleBackground.pixelSize = 0.015 # in mm per pixel
# These values correspond to the HSC recommendation.
self.largeScaleBackground.minFrac = 0.1
self.largeScaleBackground.mask = ['BAD', 'SAT', 'INTRP', 'DETECTED', 'DETECTED_NEGATIVE',
Copy link
Contributor Author

@leeskelvin leeskelvin Mar 6, 2024

Choose a reason for hiding this comment

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

If preferred, the minFrac and mask configs could also be moved out of the task and into a pipelines _ingredients YAML, which would allow us to retire the setDefaults method here entirely. I haven't done that at this time, but I'm happy to do so if that reads better and would be better for long-term maintainability.

Copy link
Contributor

Choose a reason for hiding this comment

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

As these remaining fields are the same as the original config values, we can drop them here, as well as this method.

Copy link
Contributor

@czwa czwa 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 suggestions in comments.

self.largeScaleBackground.xSize = 122.88 # in mm
self.largeScaleBackground.ySize = 122.88 # in mm
self.largeScaleBackground.pixelSize = 0.015 # in mm per pixel
# These values correspond to the HSC recommendation.
self.largeScaleBackground.minFrac = 0.1
self.largeScaleBackground.mask = ['BAD', 'SAT', 'INTRP', 'DETECTED', 'DETECTED_NEGATIVE',
Copy link
Contributor

Choose a reason for hiding this comment

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

As these remaining fields are the same as the original config values, we can drop them here, as well as this method.

# These values roughly split a single raft into 4x4 superpixels.
# As noted below, the sizes are in millimeters, and correspond to a
# background image of 6144*6144 pixels (6144*0.01=61.44).
largeScaleBackground.xSize: 61.44 # in mm
Copy link
Contributor

Choose a reason for hiding this comment

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

If these are known not to work (as shown by the figures on the ticket), then we should file a ticket to figure out correct values, and reference that ticket here and below (for just the cameras that need more development work).

Copy link
Contributor

Choose a reason for hiding this comment

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

But this one shouldn't be larger than the available pixels, probably.

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've filed ticket DM-43321 to capture future effort on this, and left a note in each non-HSC YAML referencing this ticket.

All 6k superpixel configs have been reverted to their prior 4k dimensions on this ticket.

These configs are the primary task defaults, so are not required to be
overridden here.
@leeskelvin leeskelvin merged commit 1c9b6dc into main Mar 14, 2024
2 checks passed
@leeskelvin leeskelvin deleted the tickets/DM-43045 branch March 14, 2024 22:16
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