Skip to content

Commit

Permalink
forgot _ in cov_
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherMayes committed Dec 16, 2024
1 parent 15e20fc commit cb4ff82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pmd_beamphysics/particles.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ def __getitem__(self, key):
return self["z"] / (c_light)

if key.startswith("cov_"):
subkeys = key.removeprefix("cov").split("__")
subkeys = key.removeprefix("cov_").split("__")
assert (
len(subkeys) == 2
), f"Too many properties in covariance request: {key}"
Expand Down

0 comments on commit cb4ff82

Please sign in to comment.