aboutsummaryrefslogtreecommitdiff
path: root/src/im-sandbox.c
AgeCommit message (Collapse)Author
2021-07-23indexamajig: Fix error path when worker pipe is closed mid-chunkThomas White
2021-07-23try_status: Remove duplicate assignmentThomas White
2021-07-21Add missing cleanup on error pathsThomas White
2021-05-05indexamajig: Add --zmq-requestThomas White
This (re-)adds the ability to get data via a request/reply socket. See afcb7b568947c for when it was removed.
2021-04-23indexamajig: Generate a unique filename for ZMQ dataThomas White
The unique filename is needed by the GUI for looking up results in a stream. Otherwise, the filename is "(null)" for everything and the lookup just returns the first chunk in the stream. The filename is generated based on the unique serial number for each chunk, and is therefore unique across one run of indexamajig regardless of the number of worker processes (-j). This might have to change in future to accommodate jobs run across multiple nodes, if there is any demand for looking at results in one big concatenated stream. This also changes the condition for deciding when to look for a 'real' file, to take into account that there is always a non-NULL filename.
2021-04-23indexamajig: Mercilessly ignore short ZMQ messagesThomas White
This is a hack to filter out what seems like "keepalive" messages. It's nasty, but better than contaminating the stream with spurious chunks.
2021-04-23indexamajig: Add --zmq-subscribeThomas White
2021-04-20Fix memory handling semantics for ZMQ dataThomas White
2021-04-15Separate ZMQ from MessagePack, switch to pub/sub socketThomas White
Indexamajig uses only ZMQ, to receive streaming data, while libcrystfel uses only msgpack to implement another type of image format. The two of these are eventually tied together in process_image, which does this: if ( have_zmq_data ) interpret_zmq_data_as_msgpack; - however, they would be easy to split up if we wanted to do something else (CBF data over ZMQ, anyone?). This commit also switches the ZMQ connector to use a pub/sub socket instead of a request/reply one. This matches changes in OnDA. At the moment, the MessagePack image reader simply dumps the object to disk.
2021-03-31indexamajig: Handle spaces in filename when retrieving ID from queueThomas White
2021-03-05Mass update of copyright dates in source code commentsThomas White
2020-09-30indexamajig: Don't stop on first multi-frame file with no framesThomas 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-08-10indexamajig: Do not set pgidThomas White
Bad idea. Prevents Ctrl-C from working at a normal terminal. The GUI will have to find another way to kill indexamajig properly. This reverts c03df15d71cf443f44a438f6d9dd99ab8259bcd5.
2020-07-29Remove events.c, part 2Thomas White
New event parsing, done at the last minute in image-hdf5.c
2020-07-29Remove events.c, part 1Thomas White
2020-07-29Convert indexamajig to new Stream APIThomas White
2020-07-29Remove references to old headersThomas 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 IThomas White
2020-07-29Deprecation markersThomas White
2020-07-29indexamajig: Run in own process groupThomas White
Normally, the shell puts indexamajig into its own process group, so that the entire program (including subprocesses) can be killed easily. However, this doesn't happen when running from the GUI. So, it needs to be done manually.
2020-01-10Mass update of copyright datesThomas White
2019-10-17indexamajig: Shut down gracefully after failed image loadThomas White
2019-09-23Merge branch 'tom/pinkindexer'Thomas White
2019-09-23indexamajig: Move 'profile' flag out of iargsThomas White
2019-09-12Increase indexing timeout when using pinkIndexerThomas White
2019-09-03Fix memory leak in event queueThomas White
2019-03-15Set msgpack_obj to NULL when not in useThomas White
2019-03-14Process ZMQ data inside main loopThomas White
2019-03-14Tweak ZMQ messagesThomas White
2019-03-14More ZMQ/MsgPack logic fixesThomas White
2019-03-14Fix variable initialisation and decision about data sourceThomas White
2019-03-14Exit cleanly if connection failsThomas White
2019-03-14ZMQ connection and setup stuffThomas White
2019-03-07indexamajig: Status message improvementsThomas White
1. Show the number of hits 2. Keep producing updates while the last patterns are being processed 3. Don't duplicate the code for displaying the status messages
2019-03-07Remove old debug messageThomas White
2019-01-30Simplify fill_queue()Thomas White
2019-01-30Fixes for get_pattern()Thomas White
2019-01-30Fix read_prefixed_filename()Thomas White
2019-01-29Remove debugging messageThomas White
2019-01-29Tidy up no_moreThomas White
2019-01-29Improvements to get_pattern()Thomas White
2019-01-29Add multi_event_geometry() functionThomas White
2019-01-22Fix some small memory leaksThomas White
2019-01-03indexamajig: Return non-zero exit status if no patterns were processedThomas White
2018-11-15indexamajig: Name and shame slow processing stagesThomas White
2018-11-14Remove unused variablesThomas White
2018-11-09Time account fussinessThomas White
2018-07-10Add more filenames to cleanup listThomas White