You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method `GenEvent.from_hepevt` now has an additional argument
`fortran` which allows one to define whether the input uses 1-based
indices or 0-based indices.
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: src/pyhepmc/_doc.py
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,11 @@
54
54
status: array-like
55
55
Status codes of particles.
56
56
parents: array-like or None, optional
57
-
Array of int with shape (N, 2). Start and stop index (inclusive) in the record for the parents of each particle in Fortran numbering (starting with 1). No parents for a particle are indicated by the pair (0, 0) or (-1, -1). Single parents are indicated either by (N, 0) or (N, N) with N > 0.
57
+
Array of int with shape (N, 2). Start and stop index (inclusive) in the record
58
+
for the parents of each particle. Indices must be zero-based (C) or one-based
59
+
(Fortran). In the latter case, keyword `subtract_one` must be set to true. No
60
+
parents for a particle are indicated by the pair (-1, -1). Single parents are
61
+
indicated either by (N, -1) or (N, N) with N > 0.
58
62
children: array-like or None, optional
59
63
Like parents but for the children of this particle.
60
64
vx : array-like or None, optional
@@ -65,6 +69,9 @@
65
69
Z-component of location of production vertex of particles in mm.
66
70
vt : array-like or None, optional
67
71
Time (ct) of production vertex of particles in mm.
72
+
fortran : bool, optional
73
+
If True (default), the source indices are 1-based (Fortran, Pythia8). Set this
74
+
to False, if the indices are 0-based (C-style).
68
75
""",
69
76
"GenEvent.weight": """Get event weight accessed by index (or the canonical/first one if there is no argument) or name.
0 commit comments