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

Transformations: Internalise IdemTransformation #360

Merged
merged 5 commits into from
Aug 23, 2024

Conversation

mlange05
Copy link
Collaborator

This change move the IdemTransformation that we often use for testing to the loki.transformations sub-package and fixes a configure bug when omitting the options entry in TOML(!)-based configuration entries. This is in preparation for the full move to config-file transformation configuration in CLOUDSC.

Copy link

Documentation for this branch can be viewed at https://sites.ecmwf.int/docs/loki/360/index.html

Copy link

codecov bot commented Aug 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.39%. Comparing base (49795ea) to head (d2b1e59).
Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #360   +/-   ##
=======================================
  Coverage   95.38%   95.39%           
=======================================
  Files         175      177    +2     
  Lines       37065    37094   +29     
=======================================
+ Hits        35356    35385   +29     
  Misses       1709     1709           
Flag Coverage Δ
lint_rules 96.39% <ø> (ø)
loki 95.37% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mlange05
Copy link
Collaborator Author

@reuterbal FYI, I piggy-backed another small MacOS timeout disable-fix in this one, as these keep failing sporadically.

@mlange05
Copy link
Collaborator Author

@reuterbal Ok, I added two more small tweaks that were needed for the CLOUDSC loki generalisation. With this, I can recover most of the standards behaviour, so should be ok now.

Copy link
Collaborator

@reuterbal reuterbal left a comment

Choose a reason for hiding this comment

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

Thanks, this looks great. Looking forward to the end result of this...

Coverage reports that the call to normalize_range_indexing from the SanitiseTransformation is not invoked by any tests. Maybe it would be easy to amend one of the existing tests to apply this?


class IdemTransformation(Transformation):
"""
A custom transformation pipeline that primarily does nothing,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Even secondarily it does nothing, I think ;-P

@mlange05
Copy link
Collaborator Author

Ok, apologies, this last piggy-backed change has turned this into a bit of a mess. I've now stripped the change regarding normalize_range_indexing and will solve this another way - and in another PR. @reuterbal Please double-check that this is sane again.

@reuterbal
Copy link
Collaborator

Yes, looks all good. Thanks for this!

@reuterbal reuterbal merged commit 538a744 into main Aug 23, 2024
13 checks passed
@reuterbal reuterbal deleted the naml-internalize-idem branch August 23, 2024 11:23
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