jjhelmus / nmrglue

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

:bug: Fix bug in parse_spinsolve_par_line() #155

Closed dcambie closed 2 years ago

dcambie commented 2 years ago

If the an attribute contains an equal sign, then line.split("=") returns more than 2 values and causes a "ValueError: too many values to unpack (expected 2)"

Sorry for this, I should have tested #151 more

This is particularly annoying since the SpinSolve userData stores custom data on a format that includes equals, so this bug will happen every time the user specify custom userData via the acquisition software.

userData = "some_key=Some value;some_other_key=Other value"

kaustubhmote commented 2 years ago

Ah, Ok, merging this in. Thanks for the fix!