Skip to content

Commit ab606f3

Browse files
fix: Molecular Devices SoftMax Pro - update blocks regex to handle trailing whitespace (#1048)
1 parent 77f55e4 commit ab606f3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/allotropy/parsers/moldev_softmax_pro/softmax_pro_structure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
try_non_nan_float_or_none,
3535
)
3636

37-
BLOCKS_LINE_REGEX = r"^##BLOCKS=\s*(\d+)$"
37+
BLOCKS_LINE_REGEX = r"^##BLOCKS=\s*(\d+)\s*$"
3838
END_LINE_REGEX = "~End"
3939
EXPORT_VERSION = "1.3"
4040
VALID_NAN_VALUES = ("Masked", "Range?", "Error")

tests/parsers/moldev_softmax_pro/testdata/partial_plate.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##BLOCKS= 1
1+
##BLOCKS= 1
22
Plate: Plate1 1.3 PlateFormat Spectrum Absorbance Raw FALSE 21 525 565 2 1 16 384 1 16
33
Temperature(¡C) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
44
525 26.2 0.0994 0.0964 0.0967 0.0972 0.095 0.0947 0.0932 0.0936 0.0958 0.0969 0.099 0.1037 0.1302 0.1248 0.1008 0.1006

0 commit comments

Comments
 (0)