We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16534f7 commit fab6ddaCopy full SHA for fab6dda
1 file changed
src/easydiffraction/analysis/calculators/cryspy.py
@@ -361,8 +361,8 @@ def _convert_experiment_to_cryspy_cif(
361
cif_lines.append(f'{engine_key_name} {attr_obj.value}')
362
363
x_data = experiment.data.x
364
- twotheta_min = float(x_data.min())
365
- twotheta_max = float(x_data.max())
+ twotheta_min = f'{np.round(x_data.min(), 5):.5f}' # float(x_data.min())
+ twotheta_max = f'{np.round(x_data.max(), 5):.5f}' # float(x_data.max())
366
cif_lines.append('')
367
if expt_type.beam_mode.value == BeamModeEnum.CONSTANT_WAVELENGTH:
368
cif_lines.append(f'_range_2theta_min {twotheta_min}')
0 commit comments