Goodbye Stamen by emanuel-schmid · Pull Request #798 · CLIMADA-project/climada_python
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for fixing this! ☺️
Hi Lukas, I'm running the latest core CLIMADA release v4.01 on Anaconda which still has the Stamen issue. I was just interested to know when an update with the resolution will be released so I can decide whether to look for a temporary workaround?
Thanks, Roger
@rogerilesdr The workaround is to specify a different provider in the Impact method parameters, e.g.,
import contextily as ctx impact.plot_basemap_eai_exposure(url=ctx.providers.CartoDB.Positron)
@gaelleclain @rogerilesdr On second thought, I am not sure if that fix helps because the code in impact.py still includes the provider which does not exist anymore. You might need to use the development version of Climada, following the "Advanced Instructions" for installation until our next release.
That's OK, I've done a dirty workaround for now, I've manually updated the files changed, rather than using the development version for now. I'll overwrite these files when the next stable release arrives.
@rogerilesdr can you please give a few details on your workaround?
- Did you update any other file than impact.py?
- Did you do anything else before testing?
Thanks
I updated the .py files listed on the Files tab above, which also shows where they're located... namely...
- test_plot.py
- impact.py
- base.py
- api_client.py
@rogerilesdr @gaelleclain Another fix I missed before is to revert xyzservices to version 2023.7.0 after installing Climada. This will still require to use the fix above for the plots themselves, but at least you should be able to load and execute Climada modules without any code modification.
@rogerilesdr @gaelleclain The latest update to our Conda package reverts xyzservices in the dependency list and should resolve the issue. Update the package with mamba update -n climada_env climada
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters