Skip to content

Commit

Permalink
[REFAC] allowing the project to be installed as a python package
Browse files Browse the repository at this point in the history
  • Loading branch information
bclenet committed Jan 24, 2023
1 parent 12183d4 commit 1af1073
Show file tree
Hide file tree
Showing 34 changed files with 52 additions and 7 deletions.
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"id": "digital-intention",
"metadata": {},
"outputs": [],
"source": [
"from lib import pipelines_2T6S\n",
"from narps_open.pipelines import team_2T6S\n",
"\n",
"from os.path import join as opj\n",
"import os\n",
Expand Down Expand Up @@ -136,7 +136,7 @@
"metadata": {},
"outputs": [],
"source": [
"l1_analysis = pipelines_2T6S.get_l1_analysis(subject_list, TR, fwhm, run_list, exp_dir, \n",
"l1_analysis = team_2T6S.get_l1_analysis(subject_list, TR, fwhm, run_list, exp_dir, \n",
" result_dir, working_dir, output_dir)"
]
},
Expand Down Expand Up @@ -177,7 +177,7 @@
"metadata": {},
"outputs": [],
"source": [
"l2_analysis_equal_indiff = pipelines_2T6S.get_l2_analysis(subject_list, n_sub, contrast_list, \"equalIndifference\", \n",
"l2_analysis_equal_indiff = team_2T6S.get_l2_analysis(subject_list, n_sub, contrast_list, \"equalIndifference\", \n",
" exp_dir, result_dir, working_dir, output_dir)"
]
},
Expand All @@ -198,7 +198,7 @@
"metadata": {},
"outputs": [],
"source": [
"l2_analysis_equal_range = pipelines_2T6S.get_l2_analysis(subject_list, n_sub, contrast_list, \"equalRange\", \n",
"l2_analysis_equal_range = team_2T6S.get_l2_analysis(subject_list, n_sub, contrast_list, \"equalRange\", \n",
" exp_dir, result_dir, working_dir, output_dir)"
]
},
Expand All @@ -219,7 +219,7 @@
"metadata": {},
"outputs": [],
"source": [
"l2_analysis_groupcomp = pipelines_2T6S.get_l2_analysis(subject_list, n_sub, contrast_list, \"groupComp\", \n",
"l2_analysis_groupcomp = team_2T6S.get_l2_analysis(subject_list, n_sub, contrast_list, \"groupComp\", \n",
" exp_dir, result_dir, working_dir, output_dir)"
]
},
Expand Down Expand Up @@ -260,7 +260,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.13"
"version": "3.10.9"
}
},
"nbformat": 4,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added narps_open/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
45 changes: 45 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/usr/bin/python
# coding: utf-8

"""
Allow the project to be installed as a local package, using :
python -m pip install .
or
python -m pip install -e .
The -e option stands for editable, which allows to change the
source code of the package without having to reinstall it. Using this option
will add the current directory (.) to the system path.
"""

from setuptools import setup, find_packages

requires = [
]

setup(
name = 'narps_open',
version = '0.1.0',
description = 'The NARPS open pipelines project :\
a codebase reproducing the 70 pipelines of the NARPS study (Botvinik-Nezer et al., 2020).',
long_description = 'file: README.md',
long_description_content_type = 'text/markdown',
author = '',
author_email = '',
url = 'https://github.com/Inria-Empenn/narps_open_pipelines',
include_package_data = True,
python_requires = '>=3.8,<3.11',
install_requires = requires,
classifiers = [
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8'
],
project_urls = {
'Bug Tracker': 'https://github.com/Inria-Empenn/narps_open_pipelines/issues',
'Source': 'https://github.com/Inria-Empenn/narps_open_pipelines',
},
packages = find_packages(exclude=('tests', 'examples')),
data_files = [
('narps_open/pipelines', ['narps_open/pipelines/analysis_pipelines_config.tsv'])
]
)
Empty file added tests/utils/__init__.py
Empty file.
File renamed without changes.

0 comments on commit 1af1073

Please sign in to comment.