Skip to content

Commit

Permalink
Use Path().is_file instead of Path().isfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Sep 23, 2024
1 parent 26820ba commit 1439496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fmripost_aroma/utils/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 1439496

Please sign in to comment.