European-XFEL / karabo-bridge-py

Tools to allow data exchange with Karabo, in particular streaming of data
BSD 3-Clause "New" or "Revised" License
9 stars 4 forks source link

Options for simulated data #41

Open takluyver opened 6 years ago

takluyver commented 6 years ago

Currently, the simulator generates random data for each detector image with np.random.uniform. It probably makes sense to have at least an option for sending blank frames (np.zeros), which is fast to generate and still useful for testing that tools can receive the data successfully.

We could extend that to simulating things like diffraction rings and crystallography peaks, to allow more complete testing of analysis software.

fangohr commented 6 years ago

Yes, fully agree: I like zeros, crystallography peaks (harder), and ring. For imagers put into the beam (I.e. not the detector situation), a 2d gaussian also seems useful (for example like https://github.com/silx-kit/silx/pull/1671/files#diff-817cdc9c507032363f1482705cf4c668R109).

takluyver commented 6 years ago

From Sandor's talk today, a couple of programs that could be useful:

nonBragg is in C, and MLFSOM in tcsh, so it may not be practical to integrate them directly, but potentially we could generate some fixed samples and overlay them with random noise in Python.