-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3b935f5
commit b2f6cf8
Showing
17 changed files
with
87 additions
and
72 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,6 +1,5 @@ | ||
sphinx >= 5.3.0 | ||
sphinx_rtd_theme >= 1.1.1 | ||
readthedocs-sphinx-search >= 0.3.2 | ||
sphinx-rtd-theme | ||
sphinx-autoapi | ||
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
Empty file.
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,23 @@ | ||
import subprocess | ||
import pytest | ||
|
||
from pathlib import Path | ||
|
||
cwd = Path(__file__).parents[2] / Path("datasets") | ||
commands_dpr = [ | ||
('dpr', 'af_left_AFD.txt', 'af_left_AFD_realigned.txt', '--exploredti', '--do_graph', '-f', '-v', '--points', '75'), | ||
('dpr', 'af_left_AFD.txt', 'af_left_AFD_realigned.csv', '--exploredti', '-f') | ||
] | ||
|
||
commands_dpr_graph = [ | ||
('dpr_make_fancy_graph', 'af_left_pval_unaligned.txt', 'af_left_coordinates.txt', 'af_left_truncated_coordinates.txt', 'af_left_average_coordinates.txt', '0,2', 'pvals_unaligned.png', '--title', "p-values before realignment", '-f'), | ||
('dpr_make_fancy_graph', 'af_left_pval_realigned.txt', 'af_left_coordinates.txt', 'af_left_truncated_coordinates.txt', 'af_left_average_coordinates.txt', '0,2', 'pvals_realigned.png', '-f', '-v', '--labelx', '"label X"', '--labely', 'Label Y', '--dpi', '100') | ||
] | ||
|
||
@pytest.mark.parametrize("command", commands_dpr) | ||
def test_script_dpr(command): | ||
subprocess.run(command, cwd=cwd, check=True) | ||
|
||
@pytest.mark.parametrize("command", commands_dpr_graph) | ||
def test_script_dpr_graph(command): | ||
subprocess.run(command, cwd=cwd, check=True) |
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 |
---|---|---|
|
@@ -4,19 +4,25 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "dpr" | ||
version = '0.2.1' | ||
requires-python = ">=3.7" | ||
dependencies = ['numpy>=1.10', | ||
'scipy>=0.19', | ||
'matplotlib>=2.0'] | ||
version = '0.2.2' | ||
requires-python = ">=3.9" | ||
dependencies = ['numpy>=1.15', | ||
'scipy>=1.2', | ||
'matplotlib>=3.0'] | ||
description = 'Implementation of "Reducing variability in along-tract analysis with diffusion profile realignment".' | ||
readme = "README.md" | ||
license = {text = "MIT License"} | ||
authors = [ | ||
{name = "Samuel St-Jean", email = "[email protected]"} | ||
] | ||
license = { text = "MIT License" } | ||
authors = [{ name = "Samuel St-Jean", email = "[email protected]" }] | ||
|
||
[project.scripts] | ||
dpr = "dpr.scripts.dpr:main" | ||
dpr_make_fancy_graph = "dpr.scripts.dpr_make_fancy_graph:main" | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/samuelstjean/dpr" | ||
Documentation = "https://dpr.readthedocs.io/en/latest/" | ||
Changelog = "https://github.com/samuelstjean/dpr/blob/master/CHANGELOG.md" | ||
|
||
[tool.setuptools] | ||
packages = ["dpr", | ||
"dpr.scripts"] |
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,7 +1,3 @@ | ||
from setuptools import setup, find_packages | ||
from setuptools import setup | ||
|
||
scripts=['scripts/dpr', | ||
'scripts/dpr_make_fancy_graph'] | ||
|
||
setup(scripts=scripts, | ||
packages=find_packages()) | ||
setup() |