Skip to content

Commit

Permalink
pyg4units: update supported length units for Geant4 11.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelHu committed Sep 17, 2023
1 parent 484ffcb commit 6b2b7b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/legendoptics/pyg4utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def _val_pint_to_gdml(v):
v = v.m_as(base_unit)
return unit, v

length_u = ["m", "cm", "mm", "um"]
# Only as of Geant4 11.1.0, `um` and `nm` are supported.
length_u = ["km", "m", "cm", "mm", "um", "nm"]
dimless_props = [
"RINDEX",
"WLSCOMPONENT",
Expand Down

0 comments on commit 6b2b7b4

Please sign in to comment.