get_clean_hydrad#
- pydrad.configure.util.get_clean_hydrad(output_path, base_path=None, from_github=False, overwrite=False)[source]#
Create a clean copy of HYDRAD with only the files necessary to run the code. May be useful when making many copies.
- Parameters:
output_path (pathlike) – Path to the new stripped down version
base_path (pathlike, optional) – Path to the original copy. This will not be modified.
from_github (
bool, optional) – If True, grab the latest copy of HYDRAD from GitHub. In this case,base_pathis ignored. Note that this requires the GitPython package.overwrite (
bool, optional) – If True, overwrite the directory atoutput_pathif it exists. You may need to set this to true of the path you are writing your clean copy to HYDRAD to already exists, but is empty.