From 5a9c378d9e1da540b1f0cebb2a188ccdaba09c7d Mon Sep 17 00:00:00 2001 From: Cal Wing <20716204+calw20@users.noreply.github.com> Date: Tue, 15 Oct 2024 21:48:11 +1000 Subject: [PATCH] Change to lossless --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index e2f079f..8b0a8f5 100644 --- a/main.py +++ b/main.py @@ -43,7 +43,7 @@ for dp in data_to_load: dataInfo = yaml.safe_load(file) x2_shot = dataInfo["shot-info"]["name"] - x2_tdms_data = TdmsFile.read(data_path + dataInfo["shot-info"]['tdms']) + x2_tdms_data = TdmsFile.read(data_path + dataInfo["shot-info"]['tdms'], raw_timestamps=False) x2_channels = x2_tdms_data.groups()[0].channels() if dataInfo["probe-info"]["data-record"]["type"] == "scope": @@ -165,7 +165,7 @@ def genGraph(gData): gData = data[loaded_data[0]] x2_time, scope_time, x2_timestamps = process_data(gData) -time = (gData["x2"][0][:] - gData["x2"][0][0]).astype('float64') +time = (gData["x2"][0][:] - gData["x2"][0][0]) x2_out = canny_shock_finder(time, (gData["x2"][4][:] - gData["x2"][4][0]) * 0.0148)