Fix use of enum for surface_normal for visualize_slice
This commit is contained in:
parent
1e4ee5e057
commit
c8cbf26a8c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user