-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* make the script s a function * add tqdm progress bar * bump version * fix pbar bug * update min version of old deps * update min version of old deps * revamp script test
- Loading branch information
1 parent
2f34a65
commit ebf3578
Showing
11 changed files
with
82 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import subprocess | ||
import pytest | ||
|
||
from pathlib import Path | ||
|
||
cwd = Path(__file__).parents[2] / Path("datasets") | ||
commands = ['autodmri_get_distribution data_SENSE3_MB3_noisemap.nii.gz sigma_maxlk_nmaps.nii.gz N_maxlk_nmaps.nii.gz mask_maxlk_nmaps.nii.gz -m maxlk --noise_maps', | ||
'autodmri_get_distribution data_SENSE3_MB3_noisemap.nii.gz sigma_nmaps.nii.gz N_nmaps.nii.gz mask_nmaps.nii.gz --noise_maps', | ||
'autodmri_get_distribution data_SENSE3_MB3_noisemap.nii.gz sigma_nmaps.nii.gz N_nmaps.nii.gz mask_nmaps.nii.gz --noise_maps -f --subsample', | ||
'autodmri_get_distribution data_SENSE3_MB3_noisemap.nii.gz sigma_nmaps.nii.gz N_nmaps.nii.gz mask_nmaps.nii.gz --noise_maps -f --fast_median -m maxlk', | ||
'autodmri_get_distribution dwi_1_8.nii.gz sigma.nii.gz N.nii.gz mask.nii.gz -v', | ||
'autodmri_get_distribution dwi_1_8.nii.gz sigma.nii.gz N.nii.gz mask.nii.gz -m maxlk -f --ncores 4', | ||
'autodmri_get_distribution dwi_1_8.nii.gz sigma_maxlk.nii.gz N_maxlk.nii.gz mask_maxlk.nii.gz -m maxlk --size 3 -f -v --axis 0'] | ||
|
||
@pytest.mark.parametrize('command', commands) | ||
def test_script(command): | ||
subprocess.run([command], shell=True, cwd=cwd, check=True) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
sphinx >= 5.3.0 | ||
sphinx_rtd_theme >= 1.1.1 | ||
readthedocs-sphinx-search >= 0.1.1 | ||
readthedocs-sphinx-search >= 0.3.2 | ||
sphinx-rtd-theme | ||
myst-parser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,31 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
description = 'Implementation of "Automated characterization of noise distributions in diffusion MRI data".' | ||
name = "autodmri" | ||
version = '0.2.7' | ||
authors = [{ name = "Samuel St-Jean" }] | ||
readme = "README.md" | ||
requires-python = ">=3.7" | ||
license = { text = "MIT" } | ||
|
||
dependencies = [ | ||
'numpy>=1.15', | ||
'scipy>=1.0', | ||
'tqdm>=4.56', | ||
'joblib>=0.12', | ||
'nibabel>=2.4', | ||
] | ||
|
||
[project.scripts] | ||
autodmri_get_distribution = "autodmri.scripts:main" | ||
|
||
[project.urls] | ||
homepage = "https://github.com/samuelstjean/autodmri" | ||
documentation = "https://autodmri.readthedocs.io/en/latest/" | ||
changelog = "https://github.com/samuelstjean/autodmri/blob/master/CHANGELOG.md" | ||
|
||
[tool.setuptools] | ||
packages = ["autodmri"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,3 @@ | ||
from setuptools import setup, find_packages | ||
from setuptools import setup | ||
|
||
with open('README.md', encoding='utf-8') as f: | ||
long_description = f.read() | ||
|
||
setup( | ||
name='autodmri', | ||
version='0.2.6', | ||
author='Samuel St-Jean', | ||
packages=find_packages(), | ||
scripts=['scripts/autodmri_get_distribution'], | ||
url='https://github.com/samuelstjean/autodmri', | ||
license='MIT', | ||
description='Implementation of "Automated characterization of noise distributions in diffusion MRI data".', | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
install_requires=['numpy>=1.10', | ||
'scipy>=0.19', | ||
'joblib>=0.12', | ||
'nibabel>=2.2'], | ||
) | ||
setup() |