Skip to content

Commit bd9c628

Browse files
committed
mcrun -L list was broken, fix by (re-)calculating number of elements in list...
1 parent 451df4f commit bd9c628

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tools/Python/mcrun/mcrun.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,9 @@ def main():
600600

601601
# Parameters for linear scanning present
602602
if interval_points and (options.scan_split is None):
603+
# In case of list, update with number of list points
604+
if options.list:
605+
options.numpoints=len(pointlist[0])
603606
scanner = Scanner(mcstas, intervals)
604607
scanner.set_points(interval_points)
605608
if (not options.dir == ''):

0 commit comments

Comments
 (0)