jjhelmus / nmrglue

A module for working with NMR data in Python
BSD 3-Clause "New" or "Revised" License
209 stars 86 forks source link

Allow text values in JCAMP files without brackets #100

Closed andreasdoll closed 5 years ago

andreasdoll commented 5 years ago

Allow text values in JCAMP files which aren't surrounded by angle brackets. Remove angle brackets only if they indeed surround the value. Try parsing the value to numerical types, and return a string if parsing fails.

Although I didn't read the JCAMP specification, a quick look at JCAMP for NMR (1993), Example 4 makes me believe that the angle brackets are not required for text values.

jjhelmus commented 5 years ago

LGTM