Skip to main content

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)

Source distribution for nanoBragg-noise 1.9
File Size Uploaded
nanobragg_noise-1.9.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nanoBragg-noise 1.9
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.9 This release

2 release files

1.8

2 release files

1.7

2 release files

1.6

2 release files

1.5

2 release files

1.4

2 release files

1.3

2 release files

1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page