Fix use of enum for surface_normal for visualize_slice
Ten commit jest zawarty w:
rodzic
1e4ee5e057
commit
c8cbf26a8c
1 zmienionych plików z 4 dodań i 0 usunięć
|
|
@ -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,
|
||||
|
|
|
|||
Ładowanie…
Dodaj tabelę
Dodaj link
Odniesienie w nowym zgłoszeniu