A python tool for reducing neutron depth profiling measurements
Project description
Data reduction for neutron depth profiling measurements
What is in this git:
- src/ndp/reduce.py - Reduces neutron depth profiling data from a single sample according to a schema.json file
- src/ndp/schema.py - Creates the schema.json file used to control the flow of data processing in Reduce.py
- src/ndp/example_files/config.json - instrument configuration file in JSON format, read by Reduce.py
- src/ndp/jupyter/ndpReduce.ipynb - Jupyter notebook interface for reducing ndp data with Reduce.py
- src/ndp/jupyter/schema.ipynb - Jupyter notebook interface for creating schema files
To install:
- Install Python>=3.9 via anaconda.com (recommended) or python.org
- (optional) Create an environment for ndp within Anaconda or using virtualenv
- Open the Anaconda prompt or your favorite command line emulator and run:
$ pip install ndp
To run this code:
- Navigate in the terminal to your working directory and run
$ python -m ndp.get_notebooks
- Start a jupyter server from this directory
$ jupyter-lab
- Modify schema.ipynb to have all of the info specific to your data sets
- Run schema.ipynb to create your schema file
- Modify ndpReduce.ipynb to load your new schema file
- Modify ndpReduce.ipynb to reflect the directory where you are keeping Reduce.py
- Run all the cells
- Adjust the plots to your preferences
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ndp-0.0.1.tar.gz
(65.6 kB
view hashes)
Built Distribution
ndp-0.0.1-py3-none-any.whl
(65.2 kB
view hashes)