aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/detector.c
AgeCommit message (Collapse)Author
2019-09-12Restore default bandwidth (if not specified in geometry file)Thomas White
2019-09-12Avoid duplication of beam and detector parameters for pinkIndexerThomas White
2019-09-03get_detector_geometry_from_string: Fix memory leaksThomas White
2019-07-31copy_geom: Tidy up logic some moreThomas White
2019-07-31copy_geom: Fix order of operationsThomas White
2019-07-29Re-implement copy_geom()Thomas White
The old version assumed that the rigid groups appeared in the new list in the same order as the old one. Note the use of subscript "i" for both arrays here: if ( rigid_group_is_in_collection( in->rigid_group_collections[rgci], in->rigid_groups[i]) ) [....] add_to_rigid_group_coll(rgcoll, out->rigid_groups[i]); However, the new list of rigid groups, out->rigid_groups, was constructed not by copying the old list (in->rigid_groups), but rather by iterating over the panels and adding the groups as they were encountered. Therefore, the assumption of same ordering was invalid, and the new rigid group collection incorrect.
2019-07-29panel_number(): Make args constThomas White
2019-07-29Remove old rg_delta stuffThomas White
2019-07-05load_entire_file(): Ensure string terminationThomas White
2019-07-05Update copyright datesThomas White
2019-07-05Add write_detector_geometry_3() (write geometry based on template in memory)Thomas White
2019-07-05Add get_detector_geometry_from_string()Thomas White
2019-05-07Update all source code comments to Doxygen formatThomas White
2019-04-03hdfsee: Fix crash with no geometry fileThomas White
2019-01-29Add multi_event_geometry() functionThomas White
2018-11-14Clean up set_dim_structure_entry() and parsing of "dimX" in geometry fileThomas White
Fixes CRYS-212
2018-08-30Reword error messages about dimensions in geometry fileThomas White
2017-10-02Formatting fussinessThomas White
2017-07-21Add a warning about mask_file when mask is not setThomas White
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-05Allow location of photon energy (eg in HDF5 file) to start with any characterThomas White
2017-03-24Remove an old debugging messageThomas White
2017-03-15largest_q(): Handle NULL detectorThomas White
2017-03-13Ask for C99 in configure.ac, remove weird C99 declarationsThomas White
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-06pattern_sim: Fix loop bounds in record_image()Thomas White
2016-08-11Take rail direction as a vector rather than individual x,y,z valuesThomas White
Just to make it more consistent with fs/ss directions
2016-08-11Use whole of 'value' field when parsing top-level geometry optionsThomas White
This is a long-standing bug, which we got away with up to now because top-level options with more than just a single number or location were rare or possibly never used at all.
2016-08-10Ensure z component is set in dir_conv()Thomas White
2016-08-10Set default clen_for_centeringThomas White
If the rail vector is +z (the default), then the value doesn't matter. However, it still mustn't be NaN.
2016-08-10Allow peak table location to be given in geometry fileThomas White
2016-08-09Remove debugging outputThomas White
2016-08-09Add rail direction to geometryThomas White
2016-07-29Add z direction to panel directions and update get_q_for_panel()Thomas White
2016-07-01No more slab-relative coordinates in libcrystfelThomas White
2016-05-20Fixed problem with parsing of geometry fileValerio Mariani
2016-04-12Merge branch 'tom/testing'Thomas White
2016-04-01Add adu_per_photon (distinct from adu_per_eV)Thomas White
2016-03-24Don't use %C conversionThomas White
2016-03-15write_detector_geometry_2(): Clean upThomas White
Fixes CRYS-138: hdfsee wipes geometry if new file is saved over old one
2016-03-01mark_resolution_range_as_bad(): Skip if nothing to doThomas White
This speeds up indexamajig quite a bit
2015-12-05Add option for per-pixel saturation valuesThomas White
2015-11-10Improve single_panel_data_source()Thomas White
Fixes two problems: 1. Copious memory leaks via strdup() 2. Hardcoded default /data/data, not used anywhere else
2015-11-03Merge branch 'tom/imagedata'Thomas White
2015-10-12Fix extern / fussinessThomas White
2015-10-05Add find_orig_panel_number()Thomas White
2015-10-05Remove use of image->data in record_image()Thomas White
2015-07-07Add mask_file to geometry file, to allow bad pixel mask to be stored separatelyThomas White
2015-06-25Tidy up some small leaks and memory bugsThomas White
2015-06-24WhitespaceThomas White