Skip to content

Commit 4e7d000

Browse files
authored
change branch behavior
1 parent f260337 commit 4e7d000

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py4DSTEM/process/diffraction/crystal_viz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def plot_structure(
150150

151151
# atoms
152152
ID_all = np.unique(ID)
153-
if occ is None:
153+
if np.all(np.asarray(occ) == 1):
154154
for ID_plot in ID_all:
155155
sub = ID == ID_plot
156156
ax.scatter(

0 commit comments

Comments
 (0)