Skip to content

Commit

Permalink
add soil layers setting path
Browse files Browse the repository at this point in the history
  • Loading branch information
Mostafa Daoud committed Aug 21, 2024
1 parent 09872fe commit 2600de7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion PyStemmusScope/config_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ def _copy_data(input_dir: Path, config: dict) -> None:

# copy input_data.xlsx and input_soilLayThick.csv
shutil.copy(str(config["input_data"]), str(input_dir))
shutil.copy(str(input_dir / "input_soilLayThick.csv"), str(input_dir))
soilLay_file = Path(str(config["input_data"]).replace("input_data.xlsx", "input_soilLayThick.csv"))
if soilLay_file.exists():
shutil.copy(soilLay_file, str(input_dir))

def _update_config_file(
input_dir: Path,
Expand Down

0 comments on commit 2600de7

Please sign in to comment.