Skip to main content

Data reduction for neutron depth profiling measurements

What is in this git:

  1. src/ndp/reduce.py - Reduces neutron depth profiling data from a single sample according to a schema.json file
  2. src/ndp/schema.py - Creates the schema.json file used to control the flow of data processing in Reduce.py
  3. src/ndp/example_files/config.json - instrument configuration file in JSON format, read by Reduce.py
  4. src/ndp/jupyter/ndpReduce.ipynb - Jupyter notebook interface for reducing ndp data with Reduce.py
  5. src/ndp/jupyter/schema.ipynb - Jupyter notebook interface for creating schema files

To install:

  1. Install Python>=3.9 via anaconda.com (recommended) or python.org
  2. (optional) Create an environment for ndp within Anaconda or using virtualenv
  3. Open the Anaconda prompt or your favorite command line emulator and run:
$ pip install ndp

To run this code:

  1. Navigate in the terminal to your working directory and run
$ python -m ndp.get_notebooks
  1. Start a jupyter server from this directory
$ jupyter-lab
  1. Modify schema.ipynb to have all of the info specific to your data sets
  2. Run schema.ipynb to create your schema file
  3. Modify ndpReduce.ipynb to load your new schema file
  4. Modify ndpReduce.ipynb to reflect the directory where you are keeping Reduce.py
  5. Run all the cells
  6. Adjust the plots to your preferences

Metadata

Release files for ndp 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ndp 0.0.2
File Size Uploaded Provenance Actions
ndp-0.0.2.tar.gz 65.4 kB Without provenance Details for ndp-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ndp 0.0.2
File Interpreter ABI Platform Actions
ndp-0.0.2-py3-none-any.whl Python 3 none any Details for ndp-0.0.2-py3-none-any.whl

Total release size: 130.6 kB

Release files / ndp-0.0.2.tar.gz

Download URL ndp-0.0.2.tar.gz
Size 65.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f771baf17ec0be4a4f71c8f19b4912ce6a2d830a622318c2afd0bb6814075754
BLAKE2b-256 checksum
How to use checksums
467f5568938c0b348798b812d7527e74d540d6133d01606f4e22dea0aaeecbf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release files / ndp-0.0.2-py3-none-any.whl

Download URL ndp-0.0.2-py3-none-any.whl
Size 65.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25e031b6b4b5284f009db342398df7774e8c8fe310d5005d5e510c91103d778a
BLAKE2b-256 checksum
How to use checksums
4d5f68458e835bcd4ad5d8a1666d354ee1d74be739b015ff436ec562dbfc1dd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Security for ndp 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

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