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

Overwrite frontend options on a per-file basis in Scheduler config #233

Merged
merged 5 commits into from
Mar 4, 2024

Conversation

reuterbal
Copy link
Collaborator

This adds the ability to overwrite frontend options on a per-file basis in the Scheduler config. This allows for example to switch on preprocessing for individual files only (e.g., for those that are not valid Fortran without preprocessing), or to overwrite the frontend parser. The latter was the missing piece to successfully run CLOUDSC regression with OMNI.

Copy link

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

Copy link

codecov bot commented Feb 28, 2024

Codecov Report

Attention: Patch coverage is 87.09677% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 92.71%. Comparing base (cdf3441) to head (31c6eec).

Files Patch % Lines
loki/program_unit.py 50.00% 2 Missing ⚠️
loki/sourcefile.py 66.66% 2 Missing ⚠️
Additional details and impacted files
@@                    Coverage Diff                     @@
##           nabr-the-new-scheduler     #233      +/-   ##
==========================================================
- Coverage                   92.72%   92.71%   -0.02%     
==========================================================
  Files                          95       95              
  Lines                       17800    17825      +25     
==========================================================
+ Hits                        16505    16526      +21     
- Misses                       1295     1299       +4     
Flag Coverage Δ
lint_rules 96.22% <ø> (ø)
loki 92.71% <87.09%> (-0.02%) ⬇️
transformations 91.94% <ø> (ø)

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.


The resulting `dict` contains overwrites that have been provided
in the :attr:`frontend_args` of the config.
"""
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might be useful to list arguments here. Was briefly wondering here what path pertained to.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks, good point. I've commited an updated docstring

Copy link
Collaborator

@mlange05 mlange05 left a comment

Choose a reason for hiding this comment

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

Only small nitpick I have is the docstring, otherwise this looks great! Very happy to have some regression testing back with this. 😉

As the target branch is WIP, this is GTG for me.

@reuterbal reuterbal merged commit 2520c10 into nabr-the-new-scheduler Mar 4, 2024
12 checks passed
@reuterbal reuterbal deleted the nabr-new-scheduler-build-options branch March 4, 2024 23:03
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