Fix ordering

This commit is contained in:
Cal Wing 2024-10-23 08:32:53 +10:00
parent 5ffbf17ac6
commit e59aa2d034

View File

@ -499,8 +499,6 @@ def load_ref_data(x2_shot: str, data_path: str, data={}) -> dict:
"shock-speed": {} # Note all in us "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 === # === Process the data ===
# Generate X2 time arrays # Generate X2 time arrays
time_data = x2_channels[0] 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 "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 # Find Shock Times
# X2 - Canning Edge # X2 - Canning Edge