Skip to content

Commit

Permalink
docstring updated, due to doctest failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
bvnayak committed Apr 1, 2016
1 parent ffb1115 commit 9d20928
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions planetaryimage/pds3image.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,11 @@ def _create_label(self, array):
It is called by 'image.py' to create PDS3Image object
from Numpy Array.
Examples
--------
>>> self.label = _create_label(array)
Returns
-------
PVLModule label for the given NumPy array.
Usage: self.label = _create_label(array)
"""
if len(array.shape) == 3:
Expand Down Expand Up @@ -222,16 +224,18 @@ def _create_label(self, array):

def _update_label(self, label, array):
"""Update PDS3 label for NumPy Array.
It is called by '_create_label' to update label values.
e.g.
It is called by '_create_label' to update label values
such as,
- ^IMAGE, RECORD_BYTES
- STANDARD_DEVIATION
- MAXIMUM, MINIMUM
- MEDIAN, MEAN
Examples
--------
>>> self.label = self._update_label(label, array)
Returns
-------
Update label module for the NumPy array.
Usage: self.label = self._update_label(label, array)
"""
maximum = float(numpy.max(array))
Expand Down

0 comments on commit 9d20928

Please sign in to comment.