fixes: real sky tested
This commit is contained in:
@@ -21,8 +21,8 @@ import pathlib as pl
|
||||
|
||||
|
||||
def init_seq(seq_kwds):
|
||||
# remove extension as Eddy's 'fli_control' add hardcoded '.fit'
|
||||
pt = pl.Path(seq_kwds["root_filename"]).with_suffix("")
|
||||
# replace extension as Eddy's 'fli_control' add hardcoded '.fit'
|
||||
pt = pl.Path(seq_kwds["root_filename"]).with_suffix(".fit")
|
||||
seq_kwds["root_filename"] = str(pt)
|
||||
|
||||
#
|
||||
@@ -35,7 +35,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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user