You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-4Lines changed: 12 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -60,16 +60,16 @@ We recommend using the provided Dockerfile, which automates the installation of
60
60
61
61
```shell
62
62
git clone https://github.com/aghaeifar/SpinWalk
63
-
cd containers
63
+
cdSpinWalk/containers
64
64
docker build --no-cache -t spinwalk ..
65
65
docker run --gpus all --rm -it --runtime=nvidia spinwalk bash
66
66
```
67
67
#### CMake
68
68
69
-
**Dependencies**
69
+
**Dependencies:**
70
70
71
71
- A C++ compiler that supports C++20
72
-
- CUDA toolkit version 12.0 or later that supports C++20 ([+](https://developer.nvidia.com/blog/cuda-toolkit-12-0-released-for-general-availability/)). Your Nvidia driver must support the corresponding CUDA version ([+](https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html)). Check your driver and CUDA versions with *nvidia-smi* and *nvcc --version* in the terminal.
72
+
- CUDA toolkit version 12.0 or later that supports C++20 ([+](https://developer.nvidia.com/blog/cuda-toolkit-12-0-released-for-general-availability/)). Your Nvidia driver must support the corresponding CUDA version ([+](https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html#id5)). Check your driver and CUDA versions with *nvidia-smi* and *nvcc --version* in the terminal.
Configruation file is a text based [ini file](https://en.wikipedia.org/wiki/INI_file) used to provide simulation parameters for simulator. Simulator can accept more than one configuration to simulation several configurations. A configuration file can inherit from another configuration file to avoid writing repetitive simulation parmeters. All the possible parameters are provided in [config_default.ini](./config/config_default.ini) with definition and expected unit.
106
+
The configuration file is a text-based [INI file](https://en.wikipedia.org/wiki/INI_file) used to specify simulation parameters for SpinWalk. SpinWalk can process multiple configuration files to simulate various setups. A configuration file can inherit parameters from another configuration file to avoid duplicating repetitive simulation settings.
107
+
108
+
All possible parameters are documented in [config_default.ini](./config/config_default.ini), along with their definitions and expected units.
109
+
110
+
- The `config` subcommand can be used to generate configuration files for some popular sequences. These auto-generated files may require further modifications to suit specific purposes.
111
+
- The `dwi` subcommand allows adding diffusion gradients to an existing configuration file.
112
+
113
+
For a demonstration, refer to the [free diffusion](./demo/spinwalk_dwi.ipynb) example.
subcommand_diffgrad->add_option("-b,--bvalue", bvalue, "b-value(s) as many as you want. e.g. -b 100 500 1000 5000 (s/mm\u00B2)")->mandatory(true);
89
-
subcommand_diffgrad->add_option("-v,--bvector", bvector, "Gradient direction: X Y Z, e.g. 0.267 0.534 0.801")->mandatory(true)->expected(3);
90
-
subcommand_diffgrad->add_option("-d,--delta", bdelta, "start time, \xCE\xB4 and \xCE\x94 in ms, e.g. 10 3 5 ")->mandatory(true)->expected(3);
91
-
subcommand_diffgrad->add_option("-c,--config", config_file, "input config file to insert PGSE gradients and excitation and refocusing RF")->mandatory(true)->check(CLI::ExistingFile);
subcommand_diffusion->add_option("-b,--bvalue", bvalue, "b-value(s) as many as you want. e.g. -b 100 500 1000 5000 (s/mm\u00B2)")->mandatory(true);
89
+
subcommand_diffusion->add_option("-v,--bvector", bvector, "Gradient direction: X Y Z, e.g. 0.267 0.534 0.801")->mandatory(true)->expected(3);
90
+
subcommand_diffusion->add_option("-d,--delta", bdelta, "start time, \xCE\xB4 and \xCE\x94 in ms, e.g. 10 3 5 ")->mandatory(true)->expected(3);
91
+
subcommand_diffusion->add_option("-c,--config", config_file, "input config file to insert PGSE gradients and excitation and refocusing RF")->mandatory(true)->check(CLI::ExistingFile);
92
92
93
93
CLI11_PARSE(app, argc, argv);
94
94
if(app.count_all() == 1){
@@ -113,7 +113,7 @@ int main(int argc, char * argv[])
0 commit comments