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-47730: fix various incorrect NoWorkFound conditions #337

Merged
merged 4 commits into from
Jan 21, 2025

Conversation

TallJimbo
Copy link
Member

No description provided.

@jrmullaney jrmullaney self-requested a review January 17, 2025 16:10
Copy link
Contributor

@jrmullaney jrmullaney left a comment

Choose a reason for hiding this comment

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

Looks fine. I've tested _task.py with my metric histogram plotting analysis tool (which is what instigated the need for band removal from filenames where desired), and matadataAnalysis.py works as I'd expect with calexpMetrics.yaml#calexpSummary.

I've just made one query about the ValueError message, but I'm approving this (analysis tools) PR,

Thanks for this!

def validate(self):
super().validate()
if self.raiseNoWorkFoundOnEmptyMetadata and self.raiseNoWorkFoundOnIncompleteMetadata:
raise ValueError("At most 'raiseNoWorkFound' options may be set at one time.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this say:
"At most one 'raiseNoWorkFound' option may be set at one time"
?

I'm bothered by the fact that this makes TaskMetadataAnalysisTask
assume it has a TaskMetadataAnalysisTool, but this sort of assumption
seems to be intrinsic to how analysis_tools is designed, and I don't
think we can fix that now.
When an analysis task does not have band in its dimensions, but one of
its output connections does, this avoids predicting outputs for all
bands consistent with --data-query by using config.bands instead.
@TallJimbo TallJimbo merged commit b511f2d into main Jan 21, 2025
8 checks passed
@TallJimbo TallJimbo deleted the tickets/DM-47730 branch January 21, 2025 20:33
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