Skip to content

Commit

Permalink
Merge pull request #425 from oesteban/fix/40
Browse files Browse the repository at this point in the history
[FIX] BOLD reports clipped IQMs after spikes_num
  • Loading branch information
oesteban authored Mar 14, 2017
2 parents 5580fd6 + dab114d commit 0387d55
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
13 changes: 5 additions & 8 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Release 1.0.0
=============
Release 0.9.0-1
===============

* [FIX] BOLD reports clipped IQMs after spikes_num (#425)
* [FIX] Unicode error writing group reports (#424)
* [FIX] Respect Nifi header in fMRI conform node (#415)
* [DOC] Deep revision of documentation (#411, #416)
* [ENH] Added sphinx extension to plot workflow graphs (#411)
Expand All @@ -16,15 +18,10 @@ Release 1.0.0
* [ENH] Re-enable 3dvolreg (#390)
* [ENH] Add T1w classifier (#389)

Release 0.9.0-1
Release 0.9.0-0
===============

* [FIX] Remove non-repeatable step from pipeline (#369)


Release 0.9.0
=============

* [ENH] Improve group level command line, with more informative output when no IQMs are found for a modality (#372)
* [ENH] Make group reports self-contained (#333)
* [FIX] New mosaics, based on old ones (#361, #360, #334)
Expand Down
2 changes: 1 addition & 1 deletion mriqc/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"""

__versionbase__ = '0.9.0'
__versionrev__ = '-0'
__versionrev__ = '-1'
__version__ = __versionbase__ + __versionrev__
__author__ = 'Oscar Esteban'
__email__ = '[email protected]'
Expand Down
22 changes: 12 additions & 10 deletions mriqc/reports/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,21 +131,23 @@ def gen_html(csv_file, mod, csv_failed=None, out_file=None):
failed = failed_df[cols].apply(myfmt, args=(cols,), axis=1).ravel().tolist()

csv_groups = []
datacols = dataframe.columns.ravel().tolist()
for group, units in QCGROUPS[mod]:
dfdict = {'iqm': [], 'value': [], 'label': [], 'units': []}

for iqm in group:
if iqm in dataframe.columns.ravel().tolist():
if iqm in datacols:
values = dataframe[[iqm]].values.ravel().tolist()
dfdict['iqm'] += [iqm] * nPart
dfdict['units'] += [units] * nPart
dfdict['value'] += values
dfdict['label'] += dataframe[['label']].values.ravel().tolist()

csv_df = pd.DataFrame(dfdict)
csv_str = TextIO()
csv_df[['iqm', 'value', 'label', 'units']].to_csv(csv_str, index=False)
csv_groups.append(csv_str.getvalue())
if values:
dfdict['iqm'] += [iqm] * nPart
dfdict['units'] += [units] * nPart
dfdict['value'] += values
dfdict['label'] += dataframe[['label']].values.ravel().tolist()

csv_df = pd.DataFrame(dfdict)
csv_str = TextIO()
csv_df[['iqm', 'value', 'label', 'units']].to_csv(csv_str, index=False)
csv_groups.append(csv_str.getvalue())

if out_file is None:
out_file = op.abspath('group.html')
Expand Down

0 comments on commit 0387d55

Please sign in to comment.