carnisj / bcdi

BCDI: tools for pre(post)-processing Bragg coherent X-ray diffraction imaging data
Other
23 stars 17 forks source link

Load positions from the log file when available (Lazy user) #214

Closed carnisj closed 2 years ago

carnisj commented 2 years ago

Description

When some parameters such as the detector angles, energy, sample to detector distance and tilt_angle are not provided in the config file, the code selects values from the logfile or raises an error if not available. The detector distance is available only for 34ID-C (as a motor) and ID01 (after some parsing).

The parameter "template_imagefile" is now optional for P10 postprocessing.

The redundant parameter "logfile" has been removed from calls to instance methods, because it can be accessed directly as a property of the setup intance.

Fixes #189 and #190

Type of change

Please delete options that are not relevant.

How has this been tested?

Preprocessing on ID10 data and postprocessing on 34ID-C data works as expected.

Checklist: