From c644c5e813f4f6594d015d5fe7e4cd26e6579b61 Mon Sep 17 00:00:00 2001 From: baskiton Date: Tue, 15 Aug 2023 15:06:38 +0700 Subject: [PATCH] minor --- sats_receiver/gr_modules/decoders.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sats_receiver/gr_modules/decoders.py b/sats_receiver/gr_modules/decoders.py index 5847319..7d563b7 100644 --- a/sats_receiver/gr_modules/decoders.py +++ b/sats_receiver/gr_modules/decoders.py @@ -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) @@ -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))