We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4196151 commit 649d217Copy full SHA for 649d217
crystal_toolkit/components/phonon.py
@@ -478,7 +478,7 @@ def get_figure(
478
max(dos_traces[0]["x"]),
479
abs(min(dos_traces[0]["x"])),
480
]
481
- if len(dos_traces) > 1 and "x" in dos_traces[1] and dos_traces[1]["x"]:
+ if len(dos_traces) > 1 and "x" in dos_traces[1] and dos_traces[1]["x"].any():
482
rmax_list += [
483
max(dos_traces[1]["x"]),
484
abs(min(dos_traces[1]["x"])),
0 commit comments