Despite the JCAMP-DX NMR format states that data units should be in Hz, at least one manufacturer writes JCAMP-DX files in PPM units. This PR fixes the udic sweep calculation in those cases, recognized by the XUNITS record (or corresponding UNITS line in NTUPLES format) being "PPM". Unfortunately, I do not have a freely licensed test case to provide.
In addition, code was cleaned up by removing one unnecessary if-block.
Despite the JCAMP-DX NMR format states that data units should be in Hz, at least one manufacturer writes JCAMP-DX files in PPM units. This PR fixes the udic sweep calculation in those cases, recognized by the XUNITS record (or corresponding UNITS line in NTUPLES format) being "PPM". Unfortunately, I do not have a freely licensed test case to provide.
In addition, code was cleaned up by removing one unnecessary if-block.