Skip to content

METK-153: Set python/pybind11 as required packages for pymars2grib#154

Open
tweska wants to merge 1 commit intodevelopfrom
fix/METK-153
Open

METK-153: Set python/pybind11 as required packages for pymars2grib#154
tweska wants to merge 1 commit intodevelopfrom
fix/METK-153

Conversation

@tweska
Copy link
Member

@tweska tweska commented Feb 4, 2026

Sets Python3 and Pybind11 as required packages to build the pymars2grib bindings.
Also disables building pymars2grib by default.
Also fixed order of arguments, which we changed at the end of the push last week, and got undetected because this was silently not being build...

Additionally fix function argument order, previously undetected

py::bytes encode(Mars2Grib& encoder, const std::vector<double>& values, const py::dict& mars, const py::dict& misc) {
const auto message = encoder.encode(dictToLocalConfig(mars), dictToLocalConfig(misc), values);
const auto message = encoder.encode(values, dictToLocalConfig(mars), dictToLocalConfig(misc));
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a peculiar change to have in this commit. It changes the use of the API, and has nothing to do with pybind11/defaults/etc.

Copy link
Member Author

Choose a reason for hiding this comment

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

We can take it out and put it in a commit before. Would that be better?

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.18%. Comparing base (87209a0) to head (33ad44e).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #154   +/-   ##
========================================
  Coverage    54.18%   54.18%           
========================================
  Files          300      300           
  Lines        11564    11564           
  Branches      1025     1025           
========================================
  Hits          6266     6266           
  Misses        5298     5298           

☔ 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.

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.

3 participants