Skip to content

Commit

Permalink
fixed calls to Image
Browse files Browse the repository at this point in the history
  • Loading branch information
jrkerns committed Jun 10, 2015
1 parent 74a33d5 commit 1b87c36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pylinac/flatsym.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ def __init__(self, filepath=None):
If a str, path to the image file.
"""
if filepath is not None and is_valid_file(filepath):
self._load_file(filepath, True)
self._load_file(filepath)
else:
self.array = np.zeros((1,1))

def load_demo_image(self):
"""Load the demo image."""
demo_file = osp.join(osp.dirname(__file__), 'demo_files', 'flatsym', 'flatsym_demo.dcm')
self._load_file(demo_file, to_gray=True)
self._load_file(demo_file)

def _plot_image(self, ax, plane, position):
"""Plot the image analyzed and a line showing where the profile was taken."""
Expand Down

0 comments on commit 1b87c36

Please sign in to comment.