Skip to content

Commit 73287e0

Browse files
committed
Fixed doc
1 parent e10bf56 commit 73287e0

File tree

2 files changed

+23
-16
lines changed

2 files changed

+23
-16
lines changed

README.md

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# NeutronImagingScripts
22

3-
This pakcage contains a suite of Python modules and scripts that are critical for the data reduction of Neutron Imaging at Oak Ridge National Laboratory.
3+
This pakcage contains a suite of Python modules and scripts that are critical for the data reduction of Neutron Imaging
4+
at Oak Ridge National Laboratory.
45

56

67
## Overview
@@ -17,7 +18,8 @@ $ pip install NeutronImagingScripts
1718

1819
### Developers
1920
For developers, it is __highly__ recommended to setup an isolated virtual environment for this repository.
20-
After cloning this repository to your local machine, go to the root of this repo and use the follwing commands to install dependencies
21+
After cloning this repository to your local machine, go to the root of this repo and use the follwing commands to
22+
install dependencies
2123

2224
```bash
2325
$ pip install -r requirements.txt
@@ -38,41 +40,39 @@ Examples of using this package as a Python module are provided as Jupyter Notebo
3840

3941
#### _Generate Configuration File for Data Reduction_
4042
To generate the `json` file that is needed for subsequent data reduction, use
43+
4144
```bash
42-
$ generate_config.py \
43-
IPTS-20267/raw/radiographs \
44-
IPTS-20267/raw/ob \
45-
IPTS-20267/raw/df \
46-
IPTS-20267.json
45+
$ generate_config.py IPTS-20267/raw/radiographs IPTS-20267/raw/ob IPTS-20267/raw/df IPTS-20267.json
4746
```
47+
4848
where
49+
4950
- `IPTS-20267/raw/radiographs` contains the raw images
5051
- `IPTS-20267/raw/ob` contains open beam images (white field)
5152
- `IPTS-20267/raw/df` contains dark field images
5253

5354
If you would like to have __multiple__ experiment configuration files __nested__ in one `json` file, simply use
55+
5456
```bash
55-
$ generate_config.py \
56-
IPTS-20267/raw/radiographs,IPTS-20267-2/raw/radiographs \
57-
IPTS-20267/raw/ob \
58-
IPTS-20267/raw/df \
59-
IPTS-20267.json
57+
$ generate_config.py IPTS-20267/raw/radiographs,IPTS-20267-2/raw/radiographs IPTS-20267/raw/ob IPTS-20267/raw/df IPTS-20267.json
6058
```
59+
6160
notice that:
6261
- You can have more than one folder for raw images, but they need to be within the same string separated by `,`.
6362
- You can have only __one__ folder for open beam directory
6463
- You cna have only __one__ folder for dark field directory
6564

6665
The command above will yield a `json` file with the following structure
66+
6767
```json
68-
{
69-
"IPTS-20267": {"CONFIG_DATA"},
70-
"IPTS-20268": {"CONFIG_DATA"}
71-
}
68+
{"IPTS-20267": {"CONFIG_DATA"},
69+
"IPTS-20268": {"CONFIG_DATA"}
70+
}
7271
```
7372

7473
The default tolerance for the categorization with respect to aperture positions is 1mm.
7574
However, you can change the default value by specify it as below
75+
7676
```bash
7777
$ generate_config.py \
7878
IPTS-20267/raw/radiographs \
@@ -84,18 +84,23 @@ $ generate_config.py \
8484
#### _MCP Detector correction_
8585
After installing this package, the scripts located in `scripts` should be visible in your Path.
8686
Simpy type `mcp_detector_correction.py`, you should see the following
87+
8788
```bash
8889
$ mcp_detector_correction.py
8990
Usage:
9091
mcp_detector_correction [--skipimg] [--verbose] <input_dir> <output_dir>
9192
mcp_detector_correction (-h | --help)
9293
mcp_detector_correction --version
9394
```
95+
9496
Therefore, you can process the example data with the following command at the root of this repo
97+
9598
```bash
9699
$ mcp_detector_correction.py data tmp
97100
```
101+
98102
and you will see the following in your terminal
103+
99104
```bash
100105
$ mcp_detector_correction.py data tmp
101106
Parsing input
@@ -108,6 +113,7 @@ corrected image summary
108113
type: float64
109114
Writing data to tmp
110115
```
116+
111117
> NOTE: make sure you create a `tmp` folder first.
112118
113119
## Developer Notes

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def find_meta(meta):
7878
setup(
7979
name=NAME,
8080
description=find_meta("description"),
81+
long_description_content_type="text/markdown",
8182
license='BSD',
8283
url=find_meta("url"),
8384
version=versioneer.get_version(),

0 commit comments

Comments
 (0)