Skip to content

Commit 7ab02a0

Browse files
committed
fix: delete Report patch subclass as it is not useful anymore
1 parent 54d4366 commit 7ab02a0

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

fmriprep/reports/core.py

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -22,34 +22,7 @@
2222
#
2323
from pathlib import Path
2424

25-
from nireports.assembler.report import Report as _Report
26-
27-
# This patch is intended to permit fMRIPrep 20.2.0 LTS to use the YODA-style
28-
# derivatives directory. Ideally, we will remove this in 20.3.x and use an
29-
# updated niworkflows.
30-
31-
32-
class Report(_Report):
33-
def _load_config(self, config):
34-
from yaml import safe_load as load
35-
36-
settings = load(config.read_text())
37-
38-
# Removed from here: Appending self.packagename to self.root and self.out_dir
39-
# In this version, pass reportlets_dir and out_dir with fmriprep in the path.
40-
41-
if self.subject_id is not None:
42-
self.root = self.root / f"sub-{self.subject_id}"
43-
44-
if "template_path" in settings:
45-
self.template_path = config.parent / settings["template_path"]
46-
47-
self.index(settings["sections"])
48-
49-
50-
#
51-
# The following are the interface used directly by fMRIPrep
52-
#
25+
from nireports.assembler.report import Report
5326

5427

5528
def generate_reports(subject_list, output_dir, run_uuid, config=None, work_dir=None):

0 commit comments

Comments
 (0)