Skip to content

Commit 9f16e46

Browse files
committed
set default parameters
1 parent 50f8194 commit 9f16e46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pymic/transform/threshold.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self, params):
3030
self.threshold_upper = params['ChannelWiseThreshold_threshold_upper'.lower()]
3131
self.replace_lower = params['ChannelWiseThreshold_replace_lower'.lower()]
3232
self.replace_upper = params['ChannelWiseThreshold_replace_upper'.lower()]
33-
self.inverse = params['ChannelWiseThreshold_inverse'.lower()]
33+
self.inverse = params.get('ChannelWiseThreshold_inverse'.lower(), False)
3434

3535
def __call__(self, sample):
3636
image= sample['image']

0 commit comments

Comments
 (0)