Skip to content

Commit

Permalink
feat: handle xypoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Lan Le committed Mar 19, 2024
1 parent 0c2c3a3 commit 6a3bb5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nmrglue/fileio/jcampdx.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ def getdataarray(dic, show_all_data=False):

if data is None: # XYDATA
try:
valuelist = dic["XYDATA"]
valuelist = valuelist = dic["XYDATA"] if "XYDATA" in dic.keys() else dic["XYPOINTS"]
if len(valuelist) > 1:
warn("Multiple XYDATA arrays in JCAMP-DX file, \
returning first one only")
Expand Down

0 comments on commit 6a3bb5e

Please sign in to comment.