fixes: real sky tested

This commit is contained in:
2024-10-11 21:48:45 +03:00
parent b7750ee029
commit ce817b64a1
3 changed files with 16 additions and 6 deletions

View File

@@ -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