From 64b2b4ba8f762a9572811f9648fa2d7353ac3254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Cant=C3=B9?= Date: Fri, 14 Jun 2024 09:23:32 +0200 Subject: [PATCH] fix #26 --- wizard/parsers/tdr/__init__.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/wizard/parsers/tdr/__init__.py b/wizard/parsers/tdr/__init__.py index 0c97b2c..b7f184c 100644 --- a/wizard/parsers/tdr/__init__.py +++ b/wizard/parsers/tdr/__init__.py @@ -73,7 +73,7 @@ class TDR2Parser(TDRParser): class PathtrackPressParser(Parser): DATATYPE = "tdr" DIVIDER = "*" * 85 + "\n" - HEAD = DIVIDER + "PathTrack Raw Pressure Data File Downloaded from Base Station 50854 (NanoFix Pressure Format)" + HEAD = DIVIDER + "PathTrack Raw Pressure Data File Downloaded from Base Station" FIELDS = ( "year", "month", @@ -127,9 +127,19 @@ class SimpleTDR(CSVParser): ] +class SimpleTDRVariantDate(CSVParser): + DATATYPE = "tdr" + FIELDS = [ + "Date/Time Stamp", + "Pressure", + "Temp", + ] + + PARSERS = [ TDRParser, TDR2Parser, PathtrackPressParser, SimpleTDR, + SimpleTDRVariantDate, ] \ No newline at end of file