From cb4ff822c92c056b2cd898bd57984fcfa750d624 Mon Sep 17 00:00:00 2001 From: Christopher Mayes <31023527+ChristopherMayes@users.noreply.github.com> Date: Mon, 16 Dec 2024 09:58:49 -0800 Subject: [PATCH] forgot `_` in `cov_` --- pmd_beamphysics/particles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmd_beamphysics/particles.py b/pmd_beamphysics/particles.py index 8a5f850..d990378 100644 --- a/pmd_beamphysics/particles.py +++ b/pmd_beamphysics/particles.py @@ -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}"