-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #408 from nipreps/enh/improve-standalone-cli
ENH: Standalone CLI now estimates fieldmaps
- Loading branch information
Showing
22 changed files
with
1,636 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
[environment] | ||
cpu_count = 36 | ||
exec_env = "posix" | ||
free_mem = 13.7 | ||
overcommit_policy = "heuristic" | ||
overcommit_limit = "50%" | ||
nipype_version = "1.8.7.dev0" | ||
templateflow_version = "23.0.0" | ||
total_memory = 62.51573181152344 | ||
version = "2.6.1.dev5+gaa86b0b08f.d20231128" | ||
|
||
[execution] | ||
ants_float = false | ||
bids_dir = "/data/datasets/hcph" | ||
bids_database_dir = "/data/datasets/hcph/.bids-index" | ||
bids_database_wipe = false | ||
cwd = "/home/oesteban/tmp/sdcflows-hcph" | ||
debug = false | ||
dry_run = false | ||
layout = "BIDS Layout: .../data/datasets/hcph | Subjects: 1 | Sessions: 59 | Runs: 4" | ||
log_dir = "/home/oesteban/tmp/sdcflows-hcph/out/logs" | ||
log_level = 15 | ||
notrack = false | ||
output_dir = "/home/oesteban/tmp/sdcflows-hcph/out" | ||
participant_label = [ "001",] | ||
pdb = false | ||
run_uuid = "20231129-112254_e9d6d38e-35ff-463e-9f7e-1ff15ecd54ac" | ||
templateflow_home = "/data/templateflow" | ||
work_dir = "/home/oesteban/tmp/sdcflows-hcph/work" | ||
write_graph = false | ||
|
||
[workflow] | ||
analysis_level = [ "participant",] | ||
fmapless = false | ||
species = "human" | ||
template_id = "MNI152NLin2009cAsym" | ||
|
||
[nipype] | ||
crashfile_format = "txt" | ||
get_linked_libs = false | ||
local_hash_check = true | ||
nprocs = 8 | ||
omp_nthreads = 16 | ||
plugin = "MultiProc" | ||
remove_node_directories = false | ||
resource_monitor = false | ||
stop_on_first_crash = true | ||
|
||
[execution.bids_filters] | ||
|
||
[nipype.plugin_args] | ||
maxtasksperchild = 1 | ||
raise_insufficient = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Standalone command line usage | ||
============================= | ||
*SDCFlows* can execute fieldmap estimation from a BIDS-compliant dataset by using the *standalone command line interface*: | ||
|
||
.. argparse:: | ||
:module: sdcflows.cli.parser | ||
:func: _parser | ||
:prog: sdcflows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,6 @@ Contents | |
installation | ||
examples | ||
methods | ||
cli | ||
api | ||
changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- | ||
# vi: set ft=python sts=4 ts=4 sw=4 et: | ||
# | ||
# Copyright 2023 The NiPreps Developers <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# We support and encourage derived works from this project, please read | ||
# about our expectations at | ||
# | ||
# https://www.nipreps.org/community/licensing/ | ||
# | ||
# STATEMENT OF CHANGES: This file is derived from sources licensed under the Apache-2.0 terms, | ||
# and this file has been changed. | ||
# The original file this work derives from is found at: | ||
# https://github.com/nipreps/mriqc/blob/8ceadba8669cc2a86119a97b9311ab968f11c6eb/mriqc/_warnings.py | ||
"""Manipulate Python warnings.""" | ||
import logging | ||
import warnings | ||
|
||
_wlog = logging.getLogger("py.warnings") | ||
_wlog.addHandler(logging.NullHandler()) | ||
|
||
|
||
def _warn(message, category=None, stacklevel=1, source=None): | ||
"""Redefine the warning function.""" | ||
if category is not None: | ||
category = type(category).__name__ | ||
category = category.replace("type", "WARNING") | ||
|
||
logging.getLogger("py.warnings").warning(f"{category or 'WARNING'}: {message}") | ||
|
||
|
||
def _showwarning(message, category, filename, lineno, file=None, line=None): | ||
_warn(message, category=category) | ||
|
||
|
||
warnings.warn = _warn | ||
warnings.showwarning = _showwarning |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.