Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Options for simulated data #41

Open
takluyver opened this issue Jun 18, 2018 · 2 comments
Open

Options for simulated data #41

takluyver opened this issue Jun 18, 2018 · 2 comments

Comments

@takluyver
Copy link
Member

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
Copy link
Contributor

fangohr commented Jun 18, 2018

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
Copy link
Member Author

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

  • nonBragg simulates scattering from materials like water and ice.
  • MLFSOM can take a pdb protein structure and simulate Bragg peaks, including various sources of error.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants