*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 981a3e79 authored by Schabbauer, Johannes's avatar Schabbauer, Johannes
Browse files

Fixed AIN gain conversion

parent e299e69a
No related branches found
No related tags found
No related merge requests found
......@@ -139,7 +139,7 @@ def get_ain_traces(h5file, raw_data_name="ADwinAnalogIn_DATA", convert_data=True
if not acquisition.size:
continue
if convert_data:
acquisition = acquisition * (2**f[f"devices/{device_name}/ANALOG_IN/TIMES"][i]["gain_mode"])
acquisition = acquisition / (2**f[f"devices/{device_name}/ANALOG_IN/TIMES"][i]["gain_mode"])
label = f[f"devices/{device_name}/ANALOG_IN"].attrs[str(i+1)]
if label in group:
print(f"Dataset with name '{label}' already exists, skipping channel.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment