Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Oli4 committed Dec 3, 2020
1 parent b518e0c commit ae3b464
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 2 additions & 6 deletions eyepy/core/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def drusen(self):
return self._oct_obj.drusen[..., self.index]

def plot(self, ax=None, layers=None, drusen=False, layers_kwargs=None,
layers_color=None, annotation_only=False, region=np.s_[...]):
layers_color=None, annotation_only=False, region=np.s_[:,:]):
""" Plot B-Scan with segmented Layers """
if ax is None:
ax = plt.gca()
Expand Down Expand Up @@ -410,7 +410,6 @@ def __init__(self,

self._drusen = None
self._drusen_raw = None
self._layers_raw = None

self._eyepy_id = None
if data_path is None:
Expand Down Expand Up @@ -546,10 +545,7 @@ def layers_raw(self):
A flip on the B-Scan axis is needed to locate the first B-Scan at the
bottom of the height map.
"""
if self._layers_raw is None:
self._layers_raw = np.flip(np.stack([x.layers.data
for x in self], axis=1), axis=1)
return self._layers_raw
return np.flip(np.stack([x.layers.data for x in self], axis=1), axis=1)

@property
def layers(self):
Expand Down
5 changes: 3 additions & 2 deletions eyepy/core/drusen.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ def __init__(self, degree=3, iterations=5, outlier_threshold=5,
self.voxel_size = voxel_size

def filter(self, drusen_map):
return filter_by_height(drusen_map, self.minimum_height,
self.voxel_size)
return drusen_map
#return filter_by_height(drusen_map, self.minimum_height,
# self.voxel_size)
#return filter_by_depth(d, self.minimum_depth)

def find(self, oct_obj):
Expand Down

0 comments on commit ae3b464

Please sign in to comment.