diff --git a/niworkflows/reports/core.py b/niworkflows/reports/core.py
index d4aa553274c..ea2d6e7d6ba 100644
--- a/niworkflows/reports/core.py
+++ b/niworkflows/reports/core.py
@@ -1,11 +1,9 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
-Reports builder for BIDS-Apps
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Reports builder for BIDS-Apps.
+Generalizes report generation across BIDS-Apps
"""
from pathlib import Path
@@ -20,7 +18,7 @@
PLURAL_SUFFIX = defaultdict(str('s').format, [('echo', 'es')])
-SVG_SNIPPET = """\
+SVG_SNIPPET = ["""\
@@ -28,13 +26,17 @@
-"""
+""", """\
+
+
+
+"""]
class Element(object):
- """
- Just a basic component of a report
- """
+ """Just a basic component of a report"""
def __init__(self, name, title=None):
self.name = name
@@ -77,6 +79,15 @@ class Reportlet(Element):
>>> r.name
'datatype-anat_desc-reconall'
+ >>> r.components[0][0].startswith('
>> r = Reportlet(bl, out_figs, config={
+ ... 'title': 'Some Title', 'bids': {'datatype': 'anat', 'desc': 'reconall'},
+ ... 'description': 'Some description', 'static': False})
+ >>> r.name
+ 'datatype-anat_desc-reconall'
+
>>> r.components[0][0].startswith('