SliceFilter is an optional argument but is required
Closed this issue · 0 comments
olix86 commented
slice_filter_fn
is an optional argument but it's called whether it is defined or not. It should be either required or optional but called only if defined.
This would avoid the rather cryptic TypeError: 'NoneType' object is not callable
medicaltorch/medicaltorch/datasets.py
Line 237 in 3887d68
medicaltorch/medicaltorch/datasets.py
Line 261 in 3887d68