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