Source code for slactwin.sim_data.slactwin

"""Simulation data operations. Provides access to the simulation schema and schema upgrades.

:copyright: Copyright (c) 2024 The Board of Trustees of the Leland Stanford Junior University, through SLAC National Accelerator Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy).  All Rights Reserved.
:license: http://github.com/slaclab/slactwin/LICENSE
"""

from pykern.pkdebug import pkdc, pkdlog, pkdp
import sirepo.sim_data


[docs] class SimData(sirepo.sim_data.SimDataBase):
[docs] @classmethod def fixup_old_data(cls, data, qcall, **kwargs): """Apply any new schema information to an existing data instance Args: data (PKDict): simulation instance """ cls._init_models(data.models)
@classmethod def _compute_job_fields(cls, data, report, computeModel, *args, **kwargs): """Provides computation fields for job result caching. Args: data (PKDict): simulation instance """ return [] @classmethod def _lib_file_basenames(cls, *args, **kwargs): """Provides a list of external input files for a job. Not used by this application.""" return []