aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/datatemplate.c
AgeCommit message (Collapse)Author
2021-03-11indexamajig: Use static wavelength from DataTemplate as estimateThomas White
If the geometry file contains a literal wavelength, then let's use it. That's better than nagging the user for a --wavelength-estimate.
2021-03-09Add the ability to use multiple bad pixel masks at onceThomas White
2021-03-05Mass update of copyright dates in source code commentsThomas White
2021-03-01data_template_new_from_string: Fail gracefully if fs/ss bad region lacks ↵Thomas White
panel name Fixes CRYS-245
2021-02-15Check that bad regions are actually within panel boundsThomas White
2021-01-27DataTemplate: fix some small memory leaksThomas White
2021-01-14Correct bad region coordinatesThomas White
Bad regions are specified (in the geometry file) in terms of the "file" coordinates, which might be different to the panel-relative ones.
2021-01-14Avoid very slow loop over pixels to create bad pixel mapThomas White
Bad regions specified in terms of x/y still require an iteration over all pixels of the detector, but I don't see an easy way around that. Avoiding x/y bad regions will give best performance.
2021-01-14data_template_new_from_string: Fix error pathThomas White
2021-01-08Update documentation about max_adu, and add a warningThomas White
2020-12-18Add peak_list_type in geometry fileThomas White
2020-12-16Add flag_{lessthan,morethan,equal} in geometry fileThomas White
This makes handling Pilatus/Eiger files, as well as many others, much easier.
2020-09-17Ensure that fs dimension has higher index than ssThomas White
Reading from HDF5 cannot rearrange dimensions, only select a chunk. Therefore, the layout in memory needs to match the file.
2020-08-19Set the same initial beam parameters as beforeThomas White
2020-08-07Expose rigid groupsThomas White
2020-08-04Add image_create_for_simulation()Thomas White
...and factorise common code
2020-07-31Set bandwidth in image structureThomas White
2020-07-30Fix placeholder countingThomas White
2020-07-30Eliminate duplicate symbolsThomas White
This makes searching easier, and also permits Meson's unity build mode.
2020-07-29Add detector_shift_{x,y} to geometry fileThomas White
2020-07-29Remove coffset from parse_toplevelThomas White
It's handled already by the parse_field_for_panel(defaults, ...)
2020-07-29Add wavelength and electron_voltage, plus units, to geometry fileThomas White
2020-07-29Add an error path for parse_toplevelThomas White
2020-07-29Get rid of photon_energy_scaleThomas White
2020-07-29data_template_free: Allow NULLThomas White
2020-07-29Set a default data locationThomas White
2020-07-29Reject geometry file if it contains unrecognised linesThomas White
2020-07-29Set default dimensions (0=ss, 1=fs)Thomas White
2020-07-29Remove dtempl->defaultsThomas White
This is 100% private to the parser
2020-07-29Require mask/satmap paths to have fewer placeholders than dataThomas White
2020-07-29Check that paths for all panels have the same number of placeholdersThomas White
2020-07-29FussinessThomas White
2020-07-29Remove events.c, part 2Thomas White
New event parsing, done at the last minute in image-hdf5.c
2020-07-29Remove peak_info_locationThomas White
peak_list already exists
2020-07-29Remove events.c, part 1Thomas White
2020-07-29Set up adu_per_photon correctlyThomas White
2020-07-29Implement camera length units in data_template_to_detgeomThomas White
This is a special reduced version which cannot load metadata from an file, because no file is available in this case.
2020-07-29Tidy upThomas White
Regarding check_path_existence: This was a very complicated procedure, for not very much gain. The attempt to open a dataset for real, which invariably follows, can still fail after this check.
2020-07-29Add data_template_panel_name_to_number and rename data_template_panel_nameThomas White
2020-07-29Convert make_pixelmap to DataTemplateThomas White
NB The coffset is no longer written to the HDF5 file. This was a terrible hack anyway. The resolution field is just as bad, but as least easy to get from the detgeom.
2020-07-29Less circuitous string lexxing in geometry parserThomas White
2020-07-29assplode_algebraic: Ignore spacesThomas White
2020-07-29Convert stream to DataTemplateThomas White
2020-07-29Get rid of imagefile_field_list and stuff_from_streamThomas White
The only place this is used is in geoptimiser, to get the average_camera_length, itself a very bad solution.
2020-07-29Add data_template_find_panel() and data_template_file_to_panel_coords()Thomas White
2020-07-29hdf5_peak_location -> peak_listThomas White
2020-07-29Initial DataTemplate parser (copied from get_detector_geometry)Thomas White
2020-07-29Sketch out DataTemplate APIThomas White