From 14394967fb072f00fb100fb7472cb1ebabb80ffb Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Mon, 23 Sep 2024 12:35:21 -0400 Subject: [PATCH] Use Path().is_file instead of Path().isfile. --- src/fmripost_aroma/utils/bids.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fmripost_aroma/utils/bids.py b/src/fmripost_aroma/utils/bids.py index 7958f32..df4104e 100644 --- a/src/fmripost_aroma/utils/bids.py +++ b/src/fmripost_aroma/utils/bids.py @@ -300,7 +300,7 @@ def write_derivative_description(input_dir, output_dir, dataset_links=None): for name, link in enumerate(dataset_links): if name not in ('templateflow', 'input'): dataset_desc = Path(link) / 'dataset_description.json' - if dataset_desc.isfile(): + if dataset_desc.is_file(): with open(dataset_desc) as fobj: dataset_desc_dict = json.load(fobj)