in1Data.getInput.getAndCheckInputFiles

getAndCheckInputFiles(inputDir, folder, inputType, fileExt='shp')[source]

Fetch fileExt files and check if they exist and if it is not more than one

Raises error if there is more than one fileExt file.

Parameters
  • inputDir (pathlib object or str) – path to avalanche input directory

  • folder (str) – subfolder name where the shape file should be located (SECREL, ENT or RES)

  • inputType (str) – type of input (used for the logging messages). Secondary release or Entrainment or Resistance

  • fileExt (str) – file extension e.g. shp, asc - optional default is shp

Returns

  • OutputFile (str) – path to file checked

  • available (str) – Yes or No depending of if there is a shape file available (if No, OutputFile is None)