Skip to content

Commit 4a7111d

Browse files
committed
Somehow left qmin out of the parser. Fixed now.
1 parent 358821c commit 4a7111d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎diffpy/srfit/pdf/pdfparser.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class PDFParser(ProfileParser):
5151
5252
stype -- The scattering type ("X", "N")
5353
qmax -- Maximum scattering vector (float)
54+
qmin -- Minimum scattering vector (float)
5455
qdamp -- Resolution damping factor (float)
5556
qbroad -- Resolution broadening factor (float)
5657
spdiameter -- Nanoparticle diameter (float)
@@ -107,6 +108,11 @@ def parseString(self, patstring):
107108
meta["stype"] = 'X'
108109
elif re.search('(neutron|PDFgetN)', header, re.I):
109110
meta["stype"] = 'N'
111+
# qmin
112+
regexp = r"\bqmin *= *(%(f)s)\b" % rx
113+
res = re.search(regexp, header, re.I)
114+
if res:
115+
meta["qmin"] = float(res.groups()[0])
110116
# qmax
111117
regexp = r"\bqmax *= *(%(f)s)\b" % rx
112118
res = re.search(regexp, header, re.I)

0 commit comments

Comments
 (0)