Source code for ska_pst.send.flow_through_scan

# -*- coding: utf-8 -*-
#
# This file is part of the SKA PST project
#
# Distributed under the terms of the BSD 3-clause new license.
# See LICENSE for more info.

"""Module class for managing scans recorded by the PST Through Through processing mode."""
from __future__ import annotations

from typing import Any

from overrides import override

from .file_util import move_files
from .scan import Scan

__all__ = [
    "FlowThroughScan",
]


[docs]class FlowThroughScan(Scan): """Class representing PST Flow Through Data Products for a Scan.""" def __init__( self: FlowThroughScan, **kwargs: Any, ) -> None: """Initialise a Flow Through Scan object.""" super().__init__(**kwargs) self.update_files() @override def _finalise_scan(self: FlowThroughScan) -> None: """ Finalise the scan. For Flow Through mode this is ensuring the scales and offset (scloffs) file is moved to the staging directory. """ for scloffs_file in self.local_scan_path.glob("????-??-??-??:??:??_scloffs.dada"): move_files(scloffs_file, self.staging_scan_path)