Skip to content

Commit

Permalink
added properties for internal use (#33)
Browse files Browse the repository at this point in the history
* added properties for internal use

* added no coverage comments
  • Loading branch information
jonasrauber committed Jul 13, 2017
1 parent 821a0b6 commit 7fddc11
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions foolbox/adversarial.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,21 @@ def original_image(self):
def original_class(self):
return self.__original_class

@property
def _model(self): # pragma: no cover
"""Should not be used."""
return self.__model

@property
def _criterion(self): # pragma: no cover
"""Should not be used."""
return self.__criterion

@property
def _distance(self): # pragma: no cover
"""Should not be used."""
return self.__distance

def normalized_distance(self, image):
"""Calculates the distance of a given image to the
original image.
Expand Down

0 comments on commit 7fddc11

Please sign in to comment.