Open FariborzDaneshvar-NOAA opened 3 weeks ago
The issues seems to be in: https://github.com/noaa-ocs-modeling/CoupledModelDriver/blob/ba4c6a9cb62d279e239edce946becb79dcb029d2/coupledmodeldriver/client/check_completion.py#L126-L128
Where we should have had something like:
- for model_type in Model.values():
- if not is_model_directory(directory, model=model_type):
+ for model_type in Model:
+ if not is_model_directory(directory, model=model_type.value):
continue
@FariborzDaneshvar-NOAA can you please try installing coupledmodeldriver
locally and try this and see if it resolves the issue or not?
@SorooshMani-NOAA I made these changes locally and re-installed it.
But now I'm getting a new error:
[2024-08-21 09:43:28,049] /work2/noaa/nos-surge/daneshva/miniconda3/envs/stormwf_v002/lib/python3.11/site-packages/coupledmodeldriver/_depend.py WARNING : can't find the 'adcircpy' module
/work2/noaa/nos-surge/daneshva/miniconda3/envs/stormwf_v002/lib/python3.11/site-packages/pyschism/forcing/hycom/gofs.py:8: UserWarning: The seawater library is deprecated! Please use gsw instead.
import seawater as sw
[2024-08-21 09:43:31,947] /work2/noaa/nos-surge/daneshva/miniconda3/envs/stormwf_v002/lib/python3.11/site-packages/coupledmodeldriver/_depend.py WARNING : can't find the 'adcircpy' module
[2024-08-21 09:43:31,950] /work2/noaa/nos-surge/daneshva/miniconda3/envs/stormwf_v002/lib/python3.11/site-packages/coupledmodeldriver/_depend.py WARNING : can't find the 'adcircpy' module
[2024-08-21 09:43:31,955] /work2/noaa/nos-surge/daneshva/miniconda3/envs/stormwf_v002/lib/python3.11/site-packages/coupledmodeldriver/_depend.py WARNING : can't find the 'adcircpy' module
Traceback (most recent call last):
File "/work2/noaa/nos-surge/daneshva/miniconda3/envs/stormwf_v002/bin/check_completion", line 8, in <module>
sys.exit(main())
^^^^^^
File "/work2/noaa/nos-surge/daneshva/miniconda3/envs/stormwf_v002/lib/python3.11/site-packages/coupledmodeldriver/client/check_completion.py", line 208, in main
completion_status = check_completion(**parse_check_completion_arguments())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/work2/noaa/nos-surge/daneshva/miniconda3/envs/stormwf_v002/lib/python3.11/site-packages/coupledmodeldriver/client/check_completion.py", line 127, in check_completion
if not is_model_directory(directory, model=model_type.value):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/work2/noaa/nos-surge/daneshva/miniconda3/envs/stormwf_v002/lib/python3.11/site-packages/coupledmodeldriver/client/check_completion.py", line 72, in is_model_directory
raise NotImplementedError(f'model "{model}" not implemented')
NotImplementedError: model "ADCIRC" not implemented
Sorry I think we actually don't need .value
for the is_model_directory
argument. Can you try that as well please?
I think we actually don't need
.value
for theis_model_directory
argument. Can you try that as well please?
Now I'm getting this error:
I have a conda environment with these packages:
The
check_completion
command failed with this error: