This commit is contained in:
Timur A. Fatkhullin
2024-10-12 22:11:56 +03:00
parent ce817b64a1
commit 65f11e6764
2 changed files with 10 additions and 4 deletions

View File

@@ -37,9 +37,9 @@ def init_seq(seq_kwds):
if N > 0:
max = 0
for fname in foc_files:
inum = int(fname.stem.split('_')[1])
if inum > max:
max = inum
inum = int(fname.stem.split("_")[1])
if inum > max:
max = inum
seq_kwds["start_idx"] = max + 1

View File

@@ -30,7 +30,13 @@ def init_seq(seq_kwds):
seq_kwds["start_idx"] = 1
N = len(foc_files)
if N > 0:
seq_kwds["start_idx"] = N
max = 0
for fname in foc_files:
inum = int(fname.stem.split("_")[1])
if inum > max:
max = inum
seq_kwds["start_idx"] = max + 1
return 0