nanoBragg_noise
This tool allows synthetic diffraction data to be stored on disk as Bragg peaks alone, with individual background files for maximum compression. It is meant to facilitate the sharing of synthetic diffraction data to drive development of novel data reduction algorithms. It adds noise and background to simulated diffraction data, specifically designed for data generated using the datsimx.sim script with the --noNoise option (see mx_simulate.py), which is a thin wrapper to a nanoBragg-style forward model.
Usage Example
To add noise to a noiseless dataset, use the braggaddnoise command with the following options:
braggaddnoise --dirname simulated_scan --run 3 --nj 20
--dirname: The path to the folder containing the simulated data (e.g., simulated_scan).
--run: The run number used in the datsimx simulation (e.g., 3).
--nj: The number of parallel processes to use for faster processing.
The above command will find all HDF5 files matching shots_3_*h5 in the simulated_scan folder, add the background to them that's stored in the file background_3.h5, and add noise to the result, finally overwriting the existing sim_image datasets.
Metadata
Release files for nanoBragg-noise 1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nanobragg_noise-1.9.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nanobragg_noise-1.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.6 kB
Release files / nanobragg_noise-1.9.tar.gz
| Download URL | nanobragg_noise-1.9.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b73fcef407e52b0477dfb9b94fdcd7ea2aa8b8b6cba0dabcd03bd3a38b6783eb
|
|
BLAKE2b-256 checksum How to use checksums |
28e0671795c67d46f5de19e2f7da0d1dae3c99865dfbf2b91fb1ce0c13d1b842
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|
Release files / nanobragg_noise-1.9-py3-none-any.whl
| Download URL | nanobragg_noise-1.9-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3454733f00af4de775aa017f6d9822ccef36d7507869df36e613481b77699427
|
|
BLAKE2b-256 checksum How to use checksums |
82ca79ef4ed13c4abf9b4066c80dbb787e89d3160676fa8f8a1eace3a7f88dbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|