christianpayer / MedicalDataAugmentationTool

GNU General Public License v3.0
166 stars 47 forks source link

Bug in translation.py #19

Closed skrishnanv closed 3 years ago

skrishnanv commented 3 years ago

hi, looks like there is a bug in translation.py Existing line around 248: max_translation = [input_size[i] input_spacing[i] - self.remove_border[i][i] for i in range(self.dim)] should be ? max_translation = [input_size[i] input_spacing[i] - self.remove_border[i] for i in range(self.dim)] thanks

christianpayer commented 3 years ago

You are right. One of my previous commits seemed to break this. Thanks for spotting this issue! I just committed the fix.

skrishnanv commented 3 years ago

thanks for the code!!