We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6fc4435 + a551dd9 commit 1d8f16fCopy full SHA for 1d8f16f
connectomics/data/dataset/dataset_volume.py
@@ -153,7 +153,7 @@ def __init__(self,
153
self.valid_ratio = valid_ratio
154
# precompute valid region
155
# can be memory intensive
156
- self.valid_pos = [None] * len(self.valid_mask)
+ self.valid_pos = [None] * len(self.valid_mask) if self.valid_mask is not None else [None] * len(self.volume)
157
"""
158
if self.valid_mask is not None:
159
for i, x in enumerate(self.valid_mask):
0 commit comments