• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

scikit-hep / pyhepmc / 33772771424
97%

Build:
DEFAULT BRANCH: main
Ran 03 Sep 2026 03:52PM UTC
Jobs 1
Files 10
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Sep 2026 03:28PM UTC coverage: 96.781% (-0.04%) from 96.825%
33772771424

push

github

web-flow
feat: update vendored HepMC3 to 3.3.1 (#121)

Fixes #110, which bumps from 3.2.5(+38) to the 3.3.1 tag. `pdf_info` on
events read from LHE files needs upstream commit dbef899, which landed
in 3.3.0. After the bump, reading `tests/pp.lhe` gives an event with
`GenPdfInfo(parton_id1=3, parton_id2=22, ..., scale=91.1876)`.

Two things needed adjusting:

1. **`GenCrossSection::set_cross_section` is now an overload set**, so
the bare member pointer in `core.cpp` will no longer be compiled. The
binding now uses `py::overload_cast` and exposes both variants.

2. **The LHEF read-inversion patch in `io.py` had to go.** In 3.2.5,
`ReaderLHEF::read_event` returned false on success (upstream issue
[#46](https://gitlab.cern.ch/hepmc/HepMC3/-/issues/46)), and `io.py`
carried `_read_event_lhef_patch` to invert the return value. Upstream
fixed the semantics, so the patch was now inverting a correct value and
every LHE read came back empty. With the fix, `ReaderLHEF` goes through
the same `ReaderMixin` path: **94 passed**.

### Regression test

Added `test_open_5_pdf_info`, which asserts the `pdf_info` fields and
the vertex count on `tests/pp.lhe`. Against the old `io.py` it fails
with `StopIteration`, so it does guard the fix.

---------

Co-authored-by: Eduardo Rodrigues <eduardo.rodrigues@cern.ch>

0 of 3 new or added lines in 1 file covered. (0.0%)

481 of 497 relevant lines covered (96.78%)

0.97 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
93.79
-0.24% src/pyhepmc/io.py
Jobs
ID Job ID Ran Files Coverage
1 33772771424.1 03 Sep 2026 03:52PM UTC 10
96.78
GitHub Action Run
Source Files on build 33772771424
  • Tree
  • List 10
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e0882469 on github
  • Prev Build on main (#33731923169)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc