Skip to content

Commit 21cc847

Browse files
committed
fixed bestk parsing
1 parent 383ab9c commit 21cc847

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

structure_threader/plotter/structplot.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,8 +809,6 @@ 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-
814812
klist = PlotList(result_files, fmt, popfile=popfile, indfile=indfile)
815813

816814
# Plot all K files individually
@@ -823,6 +821,7 @@ def main(result_files, fmt, outdir, bestk=None, popfile=None, indfile=None):
823821
# If a sequence of multiple bestk is provided, plot all files in a single
824822
# plot
825823
if bestk:
824+
bestk = [x for x in bestk if x >= 1]
826825
klist.plotk(bestk, outdir)
827826

828827
if __name__ == "__main__":

0 commit comments

Comments
 (0)