On Thu, Apr 28, 2016 at 10:22:55AM -0700, Tedi-Marie Usher wrote:
> I ran into a strange error today when trying to batch process some
> .chi files from 11-ID-B using PDFgetX3. See the attached image for
> the error.
>
> I could process the files individually without problem, but got this
> bug when trying to run them together using the --find command. The
> files names were "SC_B_0-00000.chi", "SC_B_1-00000.chi", ...
> "SC_B_6-00000.chi". I figured out that if I changed the file names
> to remove "00000", the bug would not appear and I could batch
> process the files together. Even though I can use PDFgetX3 normally
> again by changing the files names, I wanted to let the developers
> know.
Hi Tedi-Marie,
The crash is due to some numerical error in polynomial fit and so
it should not depend on the naming of chi files. Perhaps the
"--find" pattern matched some file with invalid entries
(NaN or Inf) or it attempted to process the background scan.
Can you try to run it as
pdfgetx3 --list --find SC "chi"
to check what files get selected for processing? If this is correct
please run pdfgetx3 with the "--verbose=all" option to find for which
chi file does the problem occur. Does that file have any invalid
values such as NaN or Inf and does it look OK when plotted?
If there is still no obvious cause, can you please send me that chi
file and all other inputs (background scan, pdfgetx3.cfg) so I can
try to reproduce the error?
Thank you. BTW, to match the chi files SC_B_0 to SC_B_6 in your
series you can also use
pdfgetx3 --list --find "SC_B_<0-6>" "00000.chi$"
Here the "$" anchors at the end of the filename, i.e., only files
ending with "00000.chi" would be found rather than those that
have it in their names.
Thank you again for reporting the issue.
Best wishes,
Pavol
--
Dr. Pavol Juhas
Condensed Matter Physics and Materials Science Department
Brookhaven National Laboratory
P.O. Box 5000
Upton, NY 11973-5000