aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/hdf5-file.c
AgeCommit message (Collapse)Author
2017-09-19get_ev_based_value(): Allow integer typesThomas White
Just an oversight in the test
2017-09-15Fix uninitialised peak counts (for info in stream only)Thomas White
2017-06-21Close more leftover HDF5 handlesThomas White
2017-06-21Close leftover HDF5 handlesThomas White
2017-06-21hdf5_read2(): Fix exit pathThomas White
Bad pixel map is not allocated at this point.
2017-05-05Fill in photon energy, clen and adu for CBFsThomas White
This needed a bit of reorganisation and clarification of who is repsonsible for loading what. The low-level file loaders, e.g. hdf5_read and hdf5_read2 in hdf5-file.c or cbf_read in image.c, are responsible. There is a helper function adjust_centering_for_rail in detector.h which they can use. It seems like this could be done more cleanly at the imagefile layer. However, we need to make sure that the "old" hdfile API still works on its own, even when not accessed via the new imagefile API.
2017-05-03hdfile_set_image(): Remove panel argumentThomas White
Seems to have been added in 2014 and is not used at the moment
2017-04-13hdf5_read2(): Free buffers when read failsThomas White
2017-03-31Offset peak locations from HDF5 or CXI files by 0.5,0.5Thomas White
CrystFEL considers all peak locations to be distances from the corner of the detector panel, in pixel units, consistent with its description of detector geometry. In contrast, Cheetah considers the peak locations to be pixel indices in the data array. Therefore, a half-pixel offset is needed when importing the peak lists. For users who need the old behaviour, this commit adds a new option indexamajig --no-half-pixel-shift to deactivate this offset.
2017-02-16Fix mask path placeholder checkThomas White
The mask paths for all panels have to have the same number of placeholders, but the masks do not have to have the same number of placeholders as the panel data blocks. This also tidies up a few excess strdup() calls, and removes partial_event_substitution() because retrieve_full_path() can now handle the number of placeholders being too small.
2016-10-10Fix bad regionsThomas White
Previously, this was broken when not using a mask
2016-10-06hdf5_write_image(): Write the correct dataThomas White
2016-10-06hdf5_write_image(): Use correct dataspace for writingThomas White
2016-09-12Restore loading of saturation mapThomas White
2016-09-12Restore loading of bad pixel mapThomas White
2016-07-29Set image->dp in hdf5_read()Thomas White
2016-07-01Provide dataspace when reading data, mask and satmapThomas White
2016-07-01No more slab-relative coordinates in libcrystfelThomas White
2016-04-21Use correct dataspace when reading HDF5 stringsThomas White
2016-04-13Fix event enumerationThomas White
I broke it. Sorry about that.
2016-04-12Merge branch 'tom/testing'Thomas White
2016-04-01Add adu_per_photon (distinct from adu_per_eV)Thomas White
2016-04-01Fix silly bugs and tidy upThomas White
2016-03-31Handle placeholders in --hdf5-peaksThomas White
2016-03-24Fussiness/formattingThomas White
2016-03-24Simplify event enumeration a bitThomas White
2016-02-23Fixed bug with memspace size in write_locationValerio Mariani
2016-02-09Fix a NULL dereferenceThomas White
2016-01-15Use only the first two dimensions when using an external bad pixel mask or ↵Thomas White
saturation map
2015-12-18Saturation map fixesThomas White
2015-12-05Add option for per-pixel saturation valuesThomas White
2015-10-07Merge branch 'master' into tom/imagedataThomas White
2015-10-07hdfile_get_string_value(): Rearrange control flowThomas White
This is not a nice function, and seemed to contain a weird stack corruption somewhere. It is still not a nice function, but at least no longer seems to contain a weird stack corruption.
2015-10-07FussinessThomas White
2015-10-05unpack_panels() etc: Remove image->dataThomas White
2015-10-05debodge_saturation(): Remove image->dataThomas White
2015-10-05hdfile_write_image(): Remove image->dataThomas White
2015-10-05Read integers from HDF5 properlyThomas White
2015-10-05Read variable-length HDF5 strings properlyThomas White
2015-07-16Check that sep is not null before checking its lengthValerio Mariani
2015-07-16Throw an error if the path data ends with a slashValerio mariani
2015-07-14Fix HDF5 memory leaksThomas White
2015-07-09Tidy up error handling when given dodgy data locationsThomas White
2015-07-07Add mask_file to geometry file, to allow bad pixel mask to be stored separatelyThomas White
2015-03-19hdf5_read(): Create simple geometryThomas White
This allows unpack_panels() to be called, and hence the same data structures to be available in the simple and geometry cases. Some changes were necessary to hdfsee, which previously created the simple geometery itself
2015-02-20FormattingThomas White
2015-02-20get_value() -> hdfile_get_value()Thomas White
2015-02-20Rationalise get_value() stuffThomas White
2015-02-16indexamajig: --peaks=cxi instead of --peaks=hdf5 --cxi-hdf5-peaksThomas White
2015-02-12Avoid libhdf5 runtime warnings when photon_energy contains %.Takanori Nakane