aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/stream.c
AgeCommit message (Collapse)Author
2021-03-11detgeom_transform_coords: Take an additional detector shiftThomas White
This allows the refined detector position to be used in a lot of places.
2021-03-05Mass update of copyright dates in source code commentsThomas White
2021-01-28Stream: Use separate DataTemplate for reading and writingThomas White
This solves a tricky conceptual issue: Stream owns the DataTemplate when it's reading (because it came from the stream headers), but not when writing (when it's provided to us).
2021-01-27stream_close: Free the DataTemplateThomas White
2021-01-14Remove old debuggingThomas White
2021-01-14Stream: Remove in_chunkThomas White
It's not used any more - nowhere is it set to 1.
2021-01-14stream_open_for_read: Avoid using fseek()Thomas White
2021-01-11UnitCell: Store all representations once they're calculatedThomas White
Previously, the "getter" functions would re-calculate the requested representation every time they were called. This could mean doing a matrix inversion in the middle of a tight loop, wasting loads of time. Now, it stores the calculated values and returns them directly next time. Setting the parameters invalidates the values for all representations other than the one given. The cost of doing this is that the cell can no longer be "const" in the getter functions. This tracked through some other code, but nothing too severe.
2020-10-27Add a new StreamFlag for generating the detgeom structureThomas White
This is a hack, and should be replaced by something which gets the metadata from the stream rather than hitting the read image file every time.
2020-09-25stream_make_index: s/Indexing/Scanning/Thomas White
Because it sounds strange and confusing to index the indexing results.
2020-09-08Remove "Command line:" in streamThomas White
This wasn't present in the old version, and it was missing a space anyway.
2020-09-04stream_read_chunk: Set image->spectrumThomas White
2020-09-04stream_make_index: Don't require an event ID for every chunkThomas White
Event ID is not written if not needed
2020-09-04make_key: Handle NULL eventThomas White
2020-09-04New API for random access to streamThomas White
2020-09-02Get rid of STREAM_IMAGE_DATAThomas White
No longer needed, and didn't fit very well in the first place.
2020-08-19Update old commentsThomas White
2020-08-19Remove STREAM_UNITCELL and STREAM_CRYSTALSThomas White
These flags weren't orthogonal at all, which was turning some routines into spaghetti-code. It's still possible to avoid read/write of peak lists, reflection data or image data. But that's it.
2020-08-19Const-cleaningThomas White
2020-08-19Make Stream responsible for its own DataTemplateThomas White
It makes no sense for a different DataTemplate to be used for every frame in a stream. And this way makes everything much easier for users ot the API.
2020-07-29New way of injecting version informationThomas White
Also, this fixes some incorrect headers and adds --version flags to programs which didn't yet have them.
2020-07-29stream_read_chunk: Add option to load image dataThomas White
2020-07-29Fix reading of geometry from streamThomas White
2020-07-29Unify creation of blank image data arraysThomas White
2020-07-29Create detgeom and data arrays when reading from streamThomas White
2020-07-29Don't double-count last chunkThomas White
2020-07-29Fix peak list loading from streamThomas White
I don't think this functionality has ever actually been used. It was completely broken.
2020-07-29Random access Stream APIThomas White
2020-07-29Update commentsThomas White
2020-07-29stream_close: Handle NULLThomas White
2020-07-29Fix some memory bugsThomas White
2020-07-29Finish converting stream.cThomas White
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-29Update stream to new APIThomas White
2020-07-29Convert more bits to detgeomThomas 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-29Port indexamajig to new API, part IIThomas White
This also removes a large chunk of legacy code
2020-07-29Port indexamajig to new API, part IThomas White
2020-07-29ImageFeatureList: Store panel number, not pointerThomas White
This makes the conversion to DataTemplate/detgeom MUCH easier.
2020-01-10Mass update of copyright datesThomas White
2019-07-30Stream: don't skip over first chunk if there's no geometry fileThomas White
2019-07-29Remove old rg_delta stuffThomas White
2019-07-19Increase maximum geometry length from streamThomas White
It's already too small
2019-07-05Update copyright datesThomas White
2019-07-05Read geometry file from start of streamThomas White
2019-06-25read_stream_reflections_*: Set symmetric indices for reflectionsThomas White
2019-05-14Remove image.num_peaks and num_saturated_peaksThomas White
These values were inconsistently set by different parts of the code, e.g. different peak search methods. num_saturated_peaks was even set during final integration. Now, the peak count is taken from the ImageFeatureList, so it's authoritative.
2019-05-07Update all source code comments to Doxygen formatThomas White
2019-01-28partialator: Fix multiple memory leaksThomas White