Skip to content

Commit 383ab9c

Browse files
committed
Prevent K1 from being plotted
1 parent 8ac05f6 commit 383ab9c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

structure_threader/plotter/structplot.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,12 +809,16 @@ def main(result_files, fmt, outdir, bestk=None, popfile=None, indfile=None):
809809
:return:
810810
"""
811811

812+
bestk = [x for x in bestk if x >= 1]
813+
812814
klist = PlotList(result_files, fmt, popfile=popfile, indfile=indfile)
813815

814816
# Plot all K files individually
815817
for k, kobj in klist:
816-
klist.plotk([k], outdir)
817-
klist.plotk_static(k, outdir)
818+
819+
if k >= 1:
820+
klist.plotk([k], outdir)
821+
klist.plotk_static(k, outdir)
818822

819823
# If a sequence of multiple bestk is provided, plot all files in a single
820824
# plot

0 commit comments

Comments
 (0)