Skip to content

Commit 649d217

Browse files
committed
fix truth statement for dos_traces
1 parent 4196151 commit 649d217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crystal_toolkit/components/phonon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ def get_figure(
478478
max(dos_traces[0]["x"]),
479479
abs(min(dos_traces[0]["x"])),
480480
]
481-
if len(dos_traces) > 1 and "x" in dos_traces[1] and dos_traces[1]["x"]:
481+
if len(dos_traces) > 1 and "x" in dos_traces[1] and dos_traces[1]["x"].any():
482482
rmax_list += [
483483
max(dos_traces[1]["x"]),
484484
abs(min(dos_traces[1]["x"])),

0 commit comments

Comments
 (0)