Source code for sirepo.pkcli.radia
# -*- coding: utf-8 -*-
"""Wrapper to run Radia from the command line.
:copyright: Copyright (c) 2017 RadiaSoft LLC. All Rights Reserved.
:license: http://www.apache.org/licenses/LICENSE-2.0.html
"""
from pykern import pkio
from pykern.pkcollections import PKDict
from pykern.pkdebug import pkdp, pkdc
from sirepo import simulation_db
from sirepo.template import template_common
[docs]
def run(cfg_dir):
import sirepo.template.radia as template
template_common.exec_parameters()
data = simulation_db.read_json(template_common.INPUT_BASE_NAME)
template.extract_report_data(pkio.py_path(cfg_dir), data)