Source code for pycif.plugins.models.chimere.utils

import os


[docs] def check_inputs(self, runsubdir, mode): # Check that all files are here list_inputs = [ "METEO.nc", "BOUN_CONCS.nc", "AEMISSIONS.nc", "INI_CONCS.0.nc", "chimere.nml", "chimere.e" ] + ( ["BEMISSIONS.nc"] if self.useemisb else [] ) for f in list_inputs: if not os.path.isfile(f"{runsubdir}/{f}"): raise Exception( f"WARNING! the file {f} was not initialized properly in {runsubdir}. " "CHIMERE executable will not run properly." )