Closed APN-Pucky closed 2 months ago
Attention: Patch coverage is 90.00000%
with 8 lines
in your changes missing coverage. Please review.
Project coverage is 91.17%. Comparing base (
584c03f
) to head (ef0376f
). Report is 2 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
src/pylhe/__init__.py | 90.00% | 1 Missing and 7 partials :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@APN-Pucky can you please add a summary commit message to the PR body that can be copy-pasted in for the squash and merge?
Done.
Done.
Thanks @APN-Pucky! Can you now rebase this off of main
now that PR #232 is in (and fixup the merge conflict there)? After that I think this is good to go.
Thanks @APN-Pucky! Can you now rebase this off of
main
now that PR #232 is in (and fixup the merge conflict there)? After that I think this is good to go.
:heavy_check_mark:
Thanks @APN-Pucky. I'll leave this open for @eduardo-rodrigues to look at, but if he hasn't reviewed it by Friday 2024-08-22 I'll merge this.
We can then get a minor release out to PyPI as @agbuckley asked about in Discussion https://github.com/scikit-hep/pylhe/discussions/238.
Thanks!!
Hi everyone. As you could guess I had been away and offline.
This is a really nice addition :+1!
My only comment to you @APN-Pucky is that the functionality should be visible as an example notebook for sure, probably in a dedicated new notebook (otherwise many will not realise writing is now available). Likewise I would add a little paragraph/sentence in the README.
I decided to add a
tolhe()
function to every class (since it is neither xml nor a simple string). The format strings can maybe still be improved?read_lhe_init()
now returns aLHEInit
object combining weights, procinfo and initinfo. For backwards compatibility I added the get/set there so thatLHEInit
will still behave as previousLHEInit
, what is nowLHEInitInfo
.The tests can probably still be extended, but for the first draft I just hardcoded them for one file.
Already includes https://github.com/scikit-hep/pylhe/pull/232 and https://github.com/scikit-hep/pylhe/pull/231 Closes: #229
Squash Commit summary:
feat: Add LHE writing functionality