Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@danovaro
Copy link
Member

Description

extracted all the mars request modifiers from the language file
added Python script to generate reportype modifiers
simplified context syntax

Contributor Declaration

By opening this pull request, I affirm the following:

  • All authors agree to the Contributor License Agreement.
  • The code follows the project's coding standards.
  • I have performed self-review and added comments where needed.
  • I have added or updated tests to verify that my changes are effective and functional.
  • I have run all existing tests and confirmed they pass.

@codecov-commenter
Copy link

codecov-commenter commented Oct 22, 2025

Codecov Report

❌ Patch coverage is 95.65217% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.21%. Comparing base (17e4fca) to head (235c744).

Files with missing lines Patch % Lines
src/metkit/mars/MarsLanguage.cc 94.64% 3 Missing ⚠️
src/metkit/mars/Type.cc 96.29% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #125      +/-   ##
===========================================
+ Coverage    70.12%   70.21%   +0.09%     
===========================================
  Files          135      135              
  Lines         8143     8131      -12     
  Branches       780      781       +1     
===========================================
- Hits          5710     5709       -1     
+ Misses        2433     2422      -11     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@danovaro danovaro requested a review from tbkr October 22, 2025 14:55
Copy link
Contributor

@tbkr tbkr left a comment

Choose a reason for hiding this comment

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

I'm a huge fan of separating the definition of the language and the actual rules. I left some minor remarks.


T = """- context:\n type: [ofb,mfb,oai,sfb,fsoifb,fcdfb,ofa]\n obsgroup: [%(OBSGROUP)s]\n defaults:\n reportype: [%(REPORTYPE_LIST)s]\n"""

connectionDetails = dict(host = "webapps-db-prod", user = "ecmwf_ro", passwd = "ecmwf_ro")
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess this shouldn't be in the public part of the repo?

unset: [levtype, levelist, param, grid, rotation]

# new default for levtype=ml, to be enabled later
# - context:
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we activate this already? I just recently stumbled across this behavior.

connection.close()
return r

def getGroups(cursor):
Copy link
Contributor

Choose a reason for hiding this comment

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

There is a redefinition of the same method in line 34. Could we rename one of them, as they have different purposes.

@danovaro danovaro marked this pull request as ready for review October 30, 2025 09:45
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.

4 participants