diff options
author | Thomas White <taw@physics.org> | 2020-07-09 16:31:54 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:45 +0200 |
commit | 2c9de4119c0fe2338f5f6e54ee91294e3f0f6a74 (patch) | |
tree | 333f979756fc66ba594d2e718da6e6e99d0118a9 /libcrystfel/src/datatemplate.c | |
parent | 1cfbd01c2e0666fe7c888530e937ff4a310725f6 (diff) |
Add detector_shift_{x,y} to geometry file
Diffstat (limited to 'libcrystfel/src/datatemplate.c')
-rw-r--r-- | libcrystfel/src/datatemplate.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libcrystfel/src/datatemplate.c b/libcrystfel/src/datatemplate.c index 65da1a54..cc028025 100644 --- a/libcrystfel/src/datatemplate.c +++ b/libcrystfel/src/datatemplate.c @@ -756,6 +756,11 @@ static int parse_toplevel(DataTemplate *dt, return 1; } + } else if ( strcmp(key, "detector_shift_x") == 0 ) { + dt->shift_x_from = strdup(val); + + } else if ( strcmp(key, "detector_shift_y") == 0 ) { + dt->shift_y_from = strdup(val); } else if ( strcmp(key, "photon_energy") == 0 ) { return parse_photon_energy(val, @@ -872,6 +877,8 @@ DataTemplate *data_template_new_from_string(const char *string_in) dt->rigid_group_collections = NULL; dt->photon_energy_bandwidth = -1.0; dt->peak_list = NULL; + dt->shift_x_from = NULL; + dt->shift_y_from = NULL; /* The default defaults... */ defaults.orig_min_fs = -1; |