From e59aa2d0349b2324b8aa85011547fb43e016d59a Mon Sep 17 00:00:00 2001 From: Cal Wing <20716204+calw20@users.noreply.github.com> Date: Wed, 23 Oct 2024 08:32:53 +1000 Subject: [PATCH] Fix ordering --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 6376fd2..231203a 100644 --- a/main.py +++ b/main.py @@ -499,8 +499,6 @@ def load_ref_data(x2_shot: str, data_path: str, data={}) -> dict: "shock-speed": {} # Note all in us } - data[x2_shot]["time"]["x2_uncert"] = max(UNCERTS["time"]["x2-daq"], data[x2_shot]["time"]["x2-dt"]) - # === Process the data === # Generate X2 time arrays time_data = x2_channels[0] @@ -533,6 +531,8 @@ def load_ref_data(x2_shot: str, data_path: str, data={}) -> dict: "x2-dt": x2_time_dt } + data[x2_shot]["time"]["x2_uncert"] = max(UNCERTS["time"]["x2-daq"], data[x2_shot]["time"]["x2-dt"]) + # Find Shock Times # X2 - Canning Edge