Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 2020.1.2 to wflow versions #268

Merged
merged 4 commits into from
Oct 18, 2021
Merged

Add 2020.1.2 to wflow versions #268

merged 4 commits into from
Oct 18, 2021

Conversation

sverhoeven
Copy link
Member

@sverhoeven sverhoeven commented Oct 5, 2021

Can be tested by installing this branch locally and running

singularity build singularity-images/ewatercycle-wflow-grpc4bmi_2020.1.2.sif docker://ewatercycle/wflow-grpc4bmi:2020.1.2

To prevent version warning when getting a wflow parameter set, add the version in ewatercycle.yaml.

@sverhoeven sverhoeven marked this pull request as ready for review October 5, 2021 13:44
@sverhoeven sverhoeven requested a review from jeromaerts October 5, 2021 13:44
@jeromaerts
Copy link
Member

@sverhoeven The model loads and completes the model.setup() step. However the model does not complete initialization due to a possible GDAL_DATA environment variable error.

From wflow log:
wf_netcdfio - ERROR - EPGS not converted correctly: EPSG:4326. Is the GDAL_DATA environment variable set correctly?

This error does not occur with wflow v.2020.1.1

sverhoeven added a commit to eWaterCycle/grpc4bmi-examples that referenced this pull request Oct 8, 2021
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@sverhoeven
Copy link
Member Author

Hmm, I tried to run docs/examples/wflow.ipynb with Docker container and it works, but with singularity fails. Seems GDAL_DATA is set to ~/miniconda/... (my conda env outside container), which is not available inside container and thus it fails.

I hardcoded the GDAL_DATA and PROJ_LIB env in the Dockerfile. The new Docker image is available on Docker Hub and new sif file (ewatercycle-wflow-grpc4bmi_2020.1.2.sif) is on dcache.

Now docs/examples/wflow.ipynb works with singularity as well.
Can you try again?

@jeromaerts
Copy link
Member

@sverhoeven This fix solved the issue. The scientific output looks good. However, the model.finalize() function does not work correctly.

log:
_InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNKNOWN
details = "Exception calling application: Data source /nfs/home6/jaerts/hydromt_camels_brazil/ewatercycle_output/wflow_20211008_105657/run_default/outsum/RiverWidth.map(raster):
cannot be created"
debug_error_string = "{"created":"@1633690743.219000811","description":"Error received from peer ipv6:[::1]:55743","file":"src/core/lib/surface/call.cc","file_line":1069,"grpc_message":"Exception calling application: Data source /nfs/home6/jaerts/hydromt_camels_brazil/ewatercycle_output/wflow_20211008_105657/run_default/outsum/RiverWidth.map(raster):\ncannot be created","grpc_status":2}"

Creating the "outsum" folder manually in the output directory and rerunning model.finalize() solves the issue. This could be a local permission error. For now I think the PR can be merged.

@sverhoeven
Copy link
Member Author

@jeromaerts thanks for testing.
Can you create an issue for this outsum/ problem? As possible workaround you could add [API]\nRiverWidth = 2, m to config and use model.get_value_as_xarray('RiverWidth') to get output data.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

75.0% 75.0% Coverage
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants