Explorar o código

if statement fix

Dimitri Korsch %!s(int64=6) %!d(string=hai) anos
pai
achega
abca07ae65
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      nabirds/dataset/mixins/parts.py

+ 1 - 1
nabirds/dataset/mixins/parts.py

@@ -64,7 +64,7 @@ class PartRevealMixin(BaseMixin):
 	def get_example(self, i):
 		im_obj = super(PartRevealMixin, self).get_example(i)
 		assert hasattr(self, "ratio"), "\"ratio\" attribute is missing!"
-		if not self.reveal_visible:
+		if self.reveal_visible:
 			return im_obj.reveal_visible(self.ratio)
 		return im_obj