Skip to content

Commit

Permalink
Merge pull request #342 from neurospin/nilearn-reporting
Browse files Browse the repository at this point in the history
Nilearn-style reporting (Issue #341)
  • Loading branch information
man-shu authored Mar 24, 2021
2 parents 5502a6e + 9238de7 commit 7ad460d
Show file tree
Hide file tree
Showing 40 changed files with 1,190 additions and 4,012 deletions.
1 change: 0 additions & 1 deletion examples/easy_start/nipype_preproc_spm_auditory.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import nibabel
from pypreprocess.nipype_preproc_spm_utils import do_subjects_preproc
from pypreprocess.datasets import fetch_spm_auditory
from pypreprocess.reporting.glm_reporter import generate_subject_stats_report
import pandas as pd
from nilearn.glm.first_level.design_matrix import (make_first_level_design_matrix,
check_design_matrix)
Expand Down
2 changes: 0 additions & 2 deletions examples/pipelining/nipype_preproc_spm_multimodal_faces.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

# pypreprocess imports
from pypreprocess.datasets import fetch_spm_multimodal_fmri
from pypreprocess.reporting.base_reporter import ProgressReport
from pypreprocess.reporting.glm_reporter import generate_subject_stats_report
from pypreprocess.nipype_preproc_spm_utils import do_subject_preproc
from pypreprocess.subject_data import SubjectData

Expand Down
2 changes: 0 additions & 2 deletions examples/pipelining/nistats_glm_fsl_feeds_fmri.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
import time
from pypreprocess.nipype_preproc_spm_utils import (SubjectData,
do_subjects_preproc)
from pypreprocess.reporting.glm_reporter import generate_subject_stats_report
from pypreprocess.reporting.base_reporter import ProgressReport
from pypreprocess.datasets import fetch_fsl_feeds
from pypreprocess.io_utils import compute_mean_3D_image

Expand Down
7 changes: 1 addition & 6 deletions pypreprocess/conf_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,4 @@ def _ignore_subject(subject_id):
return subjects, preproc_params

# this pseudo is better
import_data = _generate_preproc_pipeline


if __name__ == '__main__':
from pypreprocess.reporting.base_reporter import dict_to_html_ul
print(dict_to_html_ul(_parse_job("job.conf")))
import_data = _generate_preproc_pipeline
5 changes: 3 additions & 2 deletions pypreprocess/external/tempita/_tempita.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def foo(bar):
import re
import sys
import cgi
from html import escape
try:
from urllib import quote as url_quote
except ImportError: # Py3
Expand Down Expand Up @@ -440,10 +441,10 @@ def html_quote(value, force=True):
if not isinstance(value, basestring_):
value = coerce_text(value)
if sys.version >= "3" and isinstance(value, bytes):
value = cgi.escape(value.decode('latin1'), 1)
value = escape(value.decode('latin1'), 1)
value = value.encode('latin1')
else:
value = cgi.escape(value, 1)
value = escape(value, 1)
if sys.version < "3":
if is_unicode(value):
value = value.encode('ascii', 'xmlcharrefreplace')
Expand Down
Loading

0 comments on commit 7ad460d

Please sign in to comment.