Ver Fonte

if statement fix

Dimitri Korsch há 6 anos atrás
pai
commit
abca07ae65
1 ficheiros alterados com 1 adições e 1 exclusões
  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):
 	def get_example(self, i):
 		im_obj = super(PartRevealMixin, self).get_example(i)
 		im_obj = super(PartRevealMixin, self).get_example(i)
 		assert hasattr(self, "ratio"), "\"ratio\" attribute is missing!"
 		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.reveal_visible(self.ratio)
 		return im_obj
 		return im_obj