Skip to content

Commit

Permalink
Check none context map glob
Browse files Browse the repository at this point in the history
  • Loading branch information
pchlap committed Dec 6, 2023
1 parent fb74648 commit 83550f4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions platipy/imaging/cnn/dataload.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,9 @@ def setup(self, stage=None):
{
"id": case,
"image": self.data_dir.joinpath(self.image_glob.format(case=case)),
"context_map": self.data_dir.joinpath(
self.context_map_glob.format(case=case)
),
"context_map": None
if self.context_map_glob is None
else self.data_dir.joinpath(self.context_map_glob.format(case=case)),
"observers": {
observer: {
structure: self.data_dir.joinpath(
Expand All @@ -372,9 +372,9 @@ def setup(self, stage=None):
{
"id": case,
"image": self.data_dir.joinpath(self.image_glob.format(case=case)),
"context_map": self.data_dir.joinpath(
self.context_map_glob.format(case=case)
),
"context_map": None
if self.context_map_glob is None
else self.data_dir.joinpath(self.context_map_glob.format(case=case)),
"observers": {
observer: {
structure: self.data_dir.joinpath(
Expand Down

0 comments on commit 83550f4

Please sign in to comment.