Source code for calim_pipelines.pipelines.run_csim

""" Simple flow to image using cimager
"""
import argparse

from calim_pipelines.flows import run_csimulator
from calim_pipelines.objects import ContainerDescriptor


[docs]def main(): """Application to configure and run the csimulator application from an""" parser = argparse.ArgumentParser( description="Simple application to run csimulator, configured via a config file" ) parser.add_argument( "-c", "--config", help="Configuration file", type=str, required=True ) parser = ContainerDescriptor.argument_parser(parser) parser.add_argument( "-t", "--telescope", help="Instrument to simulate", required=True, type=str, ) parser.add_argument( "-s", "--stations", help="List of stations", required=True, nargs="*", type=str, ) args = parser.parse_args() desc = ContainerDescriptor.from_parser(parser) if args.config is not None: run_csimulator( config=args.config, instrument=args.telescope, stations=args.stations, desc=desc, )
if __name__ == "__main__": main()