From c7b9db5ae1df1e86c180f3da71085a9ae38a37eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Belellou?= Date: Mon, 18 Nov 2024 16:22:20 +0100 Subject: [PATCH] Reading values from .ch files v179 use yOffset --- .../allotropeconverters/gc/chemstation/chfile/ChFile179.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/ifpen/allotropeconverters/gc/chemstation/chfile/ChFile179.java b/src/main/java/fr/ifpen/allotropeconverters/gc/chemstation/chfile/ChFile179.java index 23525cf..a253091 100644 --- a/src/main/java/fr/ifpen/allotropeconverters/gc/chemstation/chfile/ChFile179.java +++ b/src/main/java/fr/ifpen/allotropeconverters/gc/chemstation/chfile/ChFile179.java @@ -34,7 +34,7 @@ protected void parseData(RandomAccessFile input) throws IOException { input.seek(DATA_START); for (int i = 0; i < numberOfPoints; i++) { - values.add(unitConverter.convert(readLittleEndianDouble(input) * yScaling)); + values.add(unitConverter.convert(readLittleEndianDouble(input) * yScaling + yOffset)); } } }