Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
baskiton committed Aug 15, 2023
1 parent 46a53e7 commit c644c5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sats_receiver/gr_modules/decoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self,
samp_rate=samp_rate, out_dir=out_dir)

def start(self):
pfx = '_'.join([*self.name().lower().split(), self.now.strftime('%Y%m%d%H%M%S')])
pfx = '_'.join([*self.name().lower().split(), self.t.strftime('%Y%m%d%H%M%S')])
self.tmp_file = utils.mktmp(self.out_dir, pfx)
self.base_kw.update(tmp_file=self.tmp_file)

Expand Down Expand Up @@ -340,7 +340,7 @@ def _constel_soft_finalize(log: logging.Logger,
log.debug('finalizing...')

d = dt.datetime.fromtimestamp(tmp_file.stat().st_mtime, dateutil.tz.tzutc())
res_fn = tmp_file.rename(out_dir / d.strftime(f'{sat_name}_%Y-%m-%d_%H-%M-%S,%f{subname}_RAW.s'))
res_fn = tmp_file.rename(out_dir / d.strftime(f'{sat_name}_%Y-%m-%d_%H-%M-%S,%f{subname}.s'))
st = res_fn.stat()
log.info('finish: %s (%s)', res_fn, utils.numbi_disp(st.st_size))

Expand Down

0 comments on commit c644c5e

Please sign in to comment.