diff options
author | Thomas White <taw@physics.org> | 2020-07-01 11:54:51 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:44 +0200 |
commit | b2f6911cd51347e8f005f2273d5bd1637c9bc3c9 (patch) | |
tree | ac625d518086f83b00bad27121f14b6317bf0908 /libcrystfel/src | |
parent | 0e9f6f8f698517b1b8f634117d7fa32f45ab4448 (diff) |
Set default dimensions (0=ss, 1=fs)
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/datatemplate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libcrystfel/src/datatemplate.c b/libcrystfel/src/datatemplate.c index c7f9600d..56aba718 100644 --- a/libcrystfel/src/datatemplate.c +++ b/libcrystfel/src/datatemplate.c @@ -793,8 +793,10 @@ DataTemplate *data_template_new_from_string(const char *string_in) defaults.satmap = NULL; defaults.satmap_file = NULL; defaults.data = NULL; - for ( i=0; i<MAX_DIMS; i++ ) defaults.dims[i] = DIM_UNDEFINED; defaults.name = NULL; + defaults.dims[0] = DIM_SS; + defaults.dims[1] = DIM_FS; + for ( i=2; i<MAX_DIMS; i++ ) defaults.dims[i] = DIM_UNDEFINED; string = strdup(string_in); if ( string == NULL ) return NULL; |