diff options
author | Thomas White <taw@physics.org> | 2020-07-31 14:22:45 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-31 14:22:45 +0200 |
commit | 73236236920006b0b8eeb9ddadfd47c1cddf26a5 (patch) | |
tree | ae73a0cd5d4547bb31c1db28c81dd2d1aba6ba25 /libcrystfel/src/datatemplate.c | |
parent | 98a00c7930744a3c4fe69b0de60a6f9a86cd4f17 (diff) |
Set bandwidth in image structure
Diffstat (limited to 'libcrystfel/src/datatemplate.c')
-rw-r--r-- | libcrystfel/src/datatemplate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcrystfel/src/datatemplate.c b/libcrystfel/src/datatemplate.c index 94522f2f..5941109e 100644 --- a/libcrystfel/src/datatemplate.c +++ b/libcrystfel/src/datatemplate.c @@ -780,14 +780,14 @@ static int parse_toplevel(DataTemplate *dt, } else if ( strcmp(key, "peak_list") == 0 ) { dt->peak_list = strdup(val); - } else if ( strcmp(key, "photon_energy_bandwidth") == 0 ) { + } else if ( strcmp(key, "bandwidth") == 0 ) { double v; char *end; v = strtod(val, &end); if ( (val[0] != '\0') && (end[0] == '\0') ) { - dt->photon_energy_bandwidth = v; + dt->bandwidth = v; } else { - ERROR("Invalid value for photon_energy_bandwidth\n"); + ERROR("Invalid value for bandwidth\n"); } } else if (strncmp(key, "rigid_group", 11) == 0 @@ -875,7 +875,7 @@ DataTemplate *data_template_new_from_string(const char *string_in) dt->rigid_groups = NULL; dt->n_rg_collections = 0; dt->rigid_group_collections = NULL; - dt->photon_energy_bandwidth = -1.0; + dt->bandwidth = 0.0; dt->peak_list = NULL; dt->shift_x_from = NULL; dt->shift_y_from = NULL; |