Skip to content

Commit

Permalink
rebase & lint
Browse files Browse the repository at this point in the history
  • Loading branch information
camillebrianceau committed Mar 19, 2024
1 parent be3c587 commit c5bda77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clinicadl/utils/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def path_encoder(obj):
or key2.endswith("json")
or key2.endswith("location")
):
if value2 == False:
if not value2:
obj[value][key2] = ""
elif isinstance(value2, Path):
obj[value][key2] = value2.as_posix()
Expand All @@ -32,7 +32,7 @@ def path_encoder(obj):
or key.endswith("json")
or key.endswith("location")
):
if value == False:
if not value:
obj[key] = ""
elif isinstance(value, Path):
obj[key] = value.as_posix()
Expand Down

0 comments on commit c5bda77

Please sign in to comment.