aboutsummaryrefslogtreecommitdiff
path: root/src/im-sandbox.c
AgeCommit message (Collapse)Author
2022-06-02ASAP::O: Pass filename throughThomas White
2022-06-02ASAP::O: Remove filesystem pathThomas White
This is only really needed for offline processing. It's an added complication for now. Maybe we'll revisit it later and re-expose this, though.
2022-06-02ASAP::O: Expose data sourceThomas White
2022-06-02ASAP::O: Simplify im_asapo_make_unique_group_idThomas White
2022-06-02ASAP::O: Don't send data to process_image if nothing cameThomas White
2022-06-02ASAP::O: Show the uniquely-generated group IDThomas White
2022-06-02indexamajig: Don't do ASAP::O stuff unless asked forThomas White
2022-06-02indexamajig: Exit if unique ASAP::O group ID can't be createdThomas White
2022-06-02indexamajig: Special cases for ASAP::O as for ZMQThomas White
2022-06-02ASAP::O: Remove vestigial blockThomas White
2022-06-02ASAP::O: Fix memory leak on error pathThomas White
2022-06-02ASAP::O: Tidy up build processThomas White
This removes a lot of random #ifdefs from the source code.
2022-06-02Fix build without ASAP::OThomas White
2022-06-02ASAP::O: Actually get the dataThomas White
2022-06-02ASAP::O: Group ID stuffThomas White
2022-06-02ASAP::O gutsThomas White
2022-05-04Write profile information in one call to write()Thomas White
Unfortunately, the complicated series of nested printf()s doesn't work well from multiple processes.
2022-05-04Add improved profilingThomas White
Improvements: - Recursive, so we can see how things are working at different levels - Everything is profiled, even if not explicitly labelled - No possibility of losing time - Detects mistakes if routines aren't wrapped correctly
2022-05-03Strip out time-accountsThomas White
2022-03-02indexamajig: Return a specific error code (5) if no files could be processedThomas White
2021-12-17indexamajig: Avoid fclose(NULL)Thomas White
When running online, there's no input file handle to close.
2021-12-17indexamajig: Send sandbox ping while waiting for next frameThomas White
This avoids the process getting killed while waiting e.g. between runs in an online context.
2021-12-07indexamajig: Generate per-frame profiling numbersThomas White
2021-12-07indexamajig: Shut down cleanly on SIGUSR1Thomas White
2021-09-07indexamajig: Avoid crash on NULL eventThomas White
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