Source code for pycif.plugins.models.wrfchem.io.inputs.make_endconcs
import os
from ......utils import path
[docs]
def make_endconcs(self, datastore, runsubdir, ddi, mode):
"""
Link restart file from chain directory. It was put there
by the previous simulation at the end of run.py
"""
fn = ddi.strftime("wrfrst_d01_%Y-%m-%d_%H:%M:%S")
fp_src = os.path.join(runsubdir, "..", "chain", fn)
fp_dst = os.path.join(runsubdir, fn)
path.link(fp_src, fp_dst)