Skip to content

Commit 00f36bf

Browse files
committed
Updated the README
1 parent 9a61921 commit 00f36bf

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

Diff for: README.md

+67
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,69 @@
11
# MAXIBONE
22
Source code for SRμCT Bone tomography analysis project.
3+
4+
# How to build
5+
## For GPU support, ensure the NVIDIA HPC SDK is in your path
6+
## Clone the repository
7+
```sh
8+
git clone [email protected]:jamesavery/maxibone.git
9+
```
10+
11+
## Determine python version
12+
```sh
13+
python --version
14+
```
15+
Verify that the first line of `src/Makefile` is set to the correct python version. Otherwise, change it to the correct version.
16+
17+
## Change to the source directory
18+
```sh
19+
cd maxibone/src/
20+
```
21+
22+
## Install the Python generic dependencies
23+
```sh
24+
make pip_generic
25+
```
26+
27+
## Install the Python dependencies for the GPU
28+
```sh
29+
make pip_cuda
30+
```
31+
32+
## Build the project
33+
```sh
34+
make -j
35+
```
36+
37+
## Edit the paths in `src/config/paths.py` to point to the correct data directories
38+
39+
## Start running the processing scripts
40+
The scripts should be run from the `src` directory. Most of them only need the sample name as argument. For example:
41+
```sh
42+
python3 processing_steps/0400_h5tobin.py 770c_pag
43+
```
44+
Each script has a help message that can be displayed by running it with the `-h` flag:
45+
```sh
46+
python3 processing_steps/0400_h5tobin.py -h
47+
```
48+
Outputs:
49+
```txt
50+
usage: 0400_h5tobin.py [-h] [-c CHUNK_SIZE] [--disable-plotting] [-v VERBOSE] [--version] sample [sample_scale] [y_cutoff]
51+
52+
Converts a 16-bit HDF5 file to a 16-bit binary file. The binary file can be read faster than the HDF5 file, if it is stored on a fast disk.
53+
54+
positional arguments:
55+
sample The name of the sample volume to be processed.
56+
sample_scale The scale of the sample volume to be processed. Default is 1.
57+
y_cutoff The y-coordinate to cut the volume at. Default is 0.
58+
59+
options:
60+
-h, --help show this help message and exit
61+
-c CHUNK_SIZE, --chunk-size CHUNK_SIZE
62+
The size of the z-axis of the chunks to be processed. Default is 64.
63+
--disable-plotting Disable plotting the results of the script.
64+
-v VERBOSE, --verbose VERBOSE
65+
Set the verbosity level of the script. Default is 1. Generally, 0 is no output, 1 is progress / some text output, 2 is helper/core function output, and 3 is extreme debugging.
66+
--version Print the version of the script and exit.
67+
68+
For more information, please visit github.com/jamesavery/maxibone
69+
```

0 commit comments

Comments
 (0)