Skip to content

Conversation

@haileyajohnson
Copy link
Contributor

changed and cleaned up the logic of the EnhancementProvider a bit

  • each provider now needs to know it's own attribute name
  • the logic of whether to apply an enhancement is made by VariableDS
    This is meant to partition things such that it's a bit safer to execute runtime-loaded Enhancements.

I'm also looking into making a Vectorize Enhancement, as mentioned in this issue, since that's something we want at CDIP as well. If/when I get it working I'll add it as an example in the docs, similar to the lighting IOSP.

@haileyajohnson haileyajohnson marked this pull request as ready for review October 14, 2024 21:55
Copy link
Contributor

@tdrwenski tdrwenski left a comment

Choose a reason for hiding this comment

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

This looks great, thanks! Definitely makes more sense to move the enhancement name to each provider.

* Classify doubles or floats based on positive/negative into 1 or 0 {@code}
* x<0 --> 0 x>0 --> 1
*/
ApplyClassifier,
Copy link
Contributor

Choose a reason for hiding this comment

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

should we remove ApplyClassifier, ApplyNormalizer, ApplyStandardizer and instead use ApplyRuntimeLoadedEnhancements for those classes since those are being runtime loaded?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I kinda think so too, it seems like if anyone has those attributes in their catalogs they specifically would want them to be on, can't see a reason to leave that fine-level control in.

@tdrwenski tdrwenski merged commit c46f966 into Unidata:maint-5.x Oct 15, 2024
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