crash on run_calibration()

20 views
Skip to first unread message

T. Assefa

unread,
Oct 11, 2017, 1:49:07 PM10/11/17
to xpd-users
We were trying to run using the internal d-spacing file 'CeO2' and get the following stack dump:

In [38]: run_calibration(calibrant='CeO2')
---------------------------------------------------------------------------
xpdAcqException                           Traceback (most recent call last)
<ipython-input-38-d2771b6d5e10> in <module>()
----> 1 run_calibration(calibrant='CeO2')

~/src/xpdacq/xpdacq/calib.py in run_calibration(exposure, dark_sub_bool, calibrant, phase_info, wavelength, detector, RE_instance, parallel, **kwargs)
    134         detector = 'perkin_elmer'
    135     sample_md = _sample_name_phase_info_configuration(calibrant,
--> 136                                                       phase_info, 'calib')
    137     if calibrant is None:
    138         calibrant = os.path.join(glbl['usrAnalysis_dir'], 'Ni24.D')

~/src/xpdacq/xpdacq/calib.py in _sample_name_phase_info_configuration(sample_name, phase_info, tag)
     55             phase_info = 'C12H12N2O'
     56     else:
---> 57         raise xpdAcqException("Ambiguous sample information. "
     58                               "Only ``phase_info`` or ``sample_name``"
     59                               "is supplied. Please provide both "

xpdAcqException: Ambiguous sample information. Only ``phase_info`` or ``sample_name``is supplied. Please provide both fields if you wish to specify full information, or leave both as None asdefault.

T. Assefa

unread,
Oct 11, 2017, 1:53:08 PM10/11/17
to xpd-users
We then tried this  and got this dump:

In [40]: run_calibration(calibrant='CeO2',phase_info='CeO2')
---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
<ipython-input-40-5f09baa84288> in <module>()
----> 1 run_calibration(calibrant='CeO2',phase_info='CeO2')


~/src/xpdacq/xpdacq/calib.py in run_calibration(exposure, dark_sub_bool, calibrant, phase_info, wavelength, detector, RE_instance, parallel, **kwargs)
    145                                     sample_md, 'calib', RE_instance,
    146                                     detector=detector,
--> 147                                     calibrant=calibrant
    148                                     )
    149

~/src/xpdacq/xpdacq/calib.py in _collect_img(exposure, dark_sub_bool, sample_md, tag, RE_instance, calibrant, detector)
    196     if tag == 'calib':
    197         if not os.path.isfile(calibrant):
--> 198             raise FileNotFoundError("calibrant file doesn't exist")
    199         # instantiate Calibrant class
    200         calibrant_obj = Calibrant(calibrant)

FileNotFoundError: calibrant file doesn't exist

Chia-Hao Liu

unread,
Oct 11, 2017, 4:54:08 PM10/11/17
to xpd-users
Thanks for reporting. This a bug from xpdAcq side and it has been resolved at the beamline.

Though the fix already went into our code base, we'd like to test it thoroughly so that we never see it again!

You can see the progress of our testing on the github issue:

Thanks again for reporting and helping us improve.

Chia-Hao Liu

unread,
Dec 22, 2017, 9:01:53 PM12/22/17
to xpd-users
Update: this issue has been fixed in v0.6.1 and updated code has been deployed at XPD as well.
Reply all
Reply to author
Forward
0 new messages