NCAR / wrf_hydro_py

Python API for the WRF-Hydro model
59 stars 43 forks source link

Default compile dir appears to be in the wrong place? #2

Closed jmccreight closed 6 years ago

jmccreight commented 6 years ago

The lines from wrfhydro/example_1.py cause the following error

>>> repo_path = '/Users/jamesmcc/WRF_Hydro/wrf_hydro_nwm_myFork/'
>>> model = wrf_hydro_model(repo_path)
>>> model.compile('gfort')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/jamesmcc/WRF_Hydro/wrf_hydro_py/wrfhydro/wrf_hydro_model.py", line 111, in compile
    with open(self.compile_dir.joinpath('.uid'),'w') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/jamesmcc/WRF_Hydro/wrf_hydro_nwm_myFork/Run/.uid'

The last line really should be '/Users/jamesmcc/WRF_Hydro/wrf_hydro_nwm_myFork/trunk/NDHMS/Run/.uid' right?

tjmills commented 6 years ago

Closing as this has probably been resolved in the latest PR