Fix use of enum for surface_normal for visualize_slice

This commit is contained in:
jan 2016-07-13 16:09:57 -07:00
parent 1e4ee5e057
commit c8cbf26a8c

View File

@ -776,6 +776,10 @@ class Grid(object):
"""
from matplotlib import pyplot
# Set surface normal to its integer value
if isinstance(surface_normal, Direction):
surface_normal = surface_normal.value
grid_slice = self.get_slice(surface_normal=surface_normal,
center=center,
which_shifts=which_shifts,