From cf32223721b21c4f8c46cbca413d7c6bbeb6b8bb Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Tue, 10 Dec 2024 10:22:43 -0500 Subject: [PATCH] Allow run entity in transform filename (#90) --- src/fmripost_aroma/cli/run.py | 2 +- src/fmripost_aroma/config.py | 2 +- src/fmripost_aroma/data/io_spec.json | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/fmripost_aroma/cli/run.py b/src/fmripost_aroma/cli/run.py index 3bf621b..a27ecbf 100644 --- a/src/fmripost_aroma/cli/run.py +++ b/src/fmripost_aroma/cli/run.py @@ -223,7 +223,7 @@ def main(): if sentry_sdk is not None and failed_reports: sentry_sdk.capture_message( - 'Report generation failed for %d subjects' % failed_reports, + f'Report generation failed for {failed_reports} subjects', level='error', ) sys.exit(int((errno + len(failed_reports)) > 0)) diff --git a/src/fmripost_aroma/config.py b/src/fmripost_aroma/config.py index 624a098..098a9cd 100644 --- a/src/fmripost_aroma/config.py +++ b/src/fmripost_aroma/config.py @@ -149,7 +149,7 @@ # Just get so analytics track one hit from contextlib import suppress - from requests import ConnectionError, ReadTimeout + from requests import ConnectionError, ReadTimeout # noqa: A004 from requests import get as _get_url with suppress((ConnectionError, ReadTimeout)): diff --git a/src/fmripost_aroma/data/io_spec.json b/src/fmripost_aroma/data/io_spec.json index 9d7507d..8b635a7 100644 --- a/src/fmripost_aroma/data/io_spec.json +++ b/src/fmripost_aroma/data/io_spec.json @@ -137,7 +137,6 @@ }, "anat2mni152nlin6asym": { "datatype": "anat", - "run": null, "from": ["anat", "T1w", "T2w"], "to": "MNI152NLin6Asym", "space": null,