Skip to content

Commit 5a78990

Browse files
birajsthashnizzedy
andauthored
Update CPAC/utils/utils.py
Co-authored-by: Jon Cluce <[email protected]>
1 parent 841d474 commit 5a78990

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

CPAC/utils/utils.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2778,23 +2778,16 @@ def get_fmap_metadata_at_build_time(sub_dict, orig_key, input_creds_path, dl_dir
27782778
return None
27792779

27802780

2781-
def get_fmap_build_info(metadata_dict):
2781+
@Function.sig_imports(["from typing import Optional",
2782+
"from CPAC.utils.utils import FmapBuildInfo"])
2783+
def get_fmap_build_info(metadata_dict: Optional[dict]) -> FmapBuildInfo:
27822784
"""Determine fieldmap processing requirements at build time.
27832785
27842786
Parameters
27852787
----------
2786-
metadata_dict : dict or None
2788+
metadata_dict
27872789
Fieldmap metadata dictionary
27882790
2789-
Returns
2790-
-------
2791-
dict
2792-
Dictionary with keys:
2793-
- 'fmap_type': str or None
2794-
- 'needs_echo_times': bool
2795-
- 'needs_phasediff_processing': bool
2796-
- 'is_epi': bool
2797-
27982791
Raises
27992792
------
28002793
ValueError

0 commit comments

Comments
 (0)