1 Commits

Author SHA1 Message Date
Charles Mita a47d66f18e Update README.md 2019-01-29 14:25:11 +00:00
4 changed files with 7 additions and 13 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ BSLZ4_BUILD_DIR = ./bslz4/build
BSLZ4_INC_DIR = $(BSLZ4_SRC_DIR)
CC=h5cc
CFLAGS=-DH5_USE_110_API -Wall -g -O2 -fpic -I$(INC_DIR) -I$(BSLZ4_INC_DIR) -std=c89 -shlib
CFLAGS=-Wall -g -O2 -fpic -I$(INC_DIR) -I$(BSLZ4_INC_DIR) -std=c89
.PHONY: plugin
plugin: $(BUILD_DIR)/durin-plugin.so
-3
View File
@@ -8,9 +8,6 @@ See:
* https://www.dectris.com/features/features-eiger-x/hdf5-and-nexus
* https://strucbio.biologie.uni-konstanz.de/xdswiki
## Get Durin
Latest release at https://github.com/DiamondLightSource/durin/releases/tag/2019v1
## Usage
In your XDS.INP add:
+5 -5
View File
@@ -339,7 +339,7 @@ int get_dectris_eiger_dataset_dims(struct ds_desc_t *desc) {
ds_id = H5Dopen2(desc->data_g_id, ds_name, H5P_DEFAULT);
if (ds_id < 0) {
char message[64];
sprintf(message, "Unable to open dataset %.16s", ds_name);
sprintf("Unable to open dataset %.16s", ds_name);
ERROR_JUMP(-1, loop_end, message);
}
t_id = H5Dget_type(ds_id);
@@ -410,14 +410,14 @@ int read_pixel_info(hid_t g_id, const char *path, double *size) {
ds_id = H5Dopen2(g_id, path, H5P_DEFAULT);
if (ds_id < 0) {
char message[64];
sprintf(message, "Error opening dataset %.32s", path);
sprintf("Error opening dataset %.32s", path);
ERROR_JUMP(-1, done, message);
}
err = H5Dread(ds_id, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL, H5P_DEFAULT, &value);
if (err < 0) {
char message[64];
sprintf(message, "Error reading dataset %.32s", path);
sprintf("Error reading dataset %.32s", path);
ERROR_JUMP(-1, close_dataset, message);
}
@@ -429,8 +429,8 @@ int read_pixel_info(hid_t g_id, const char *path, double *size) {
double scale = 1;
a_id = H5Aopen(ds_id, "units", H5P_DEFAULT);
if (a_id < 0) {
char message[100];
sprintf(message, "Error openeing units attribute for %.32s after existence check", path);
char message[64];
sprintf("Error openeing units attribute for %.32s after existence check", path);
ERROR_JUMP(-1, close_dataset, message);
}
+1 -4
View File
@@ -238,10 +238,7 @@ void plugin_close(int *error_flag) {
}
file_id = 0;
if (mask_buffer) {
free(mask_buffer);
mask_buffer = NULL;
}
if (mask_buffer) free(mask_buffer);
if (data_desc->free_desc) {
data_desc->free_desc(data_desc);
data_desc = NULL;