You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling ppm.plotpowerplant_map(some_ppm_df) will result in failure due to this line:
ax.outline_patch.set_visible(False)
This is most likely because the dependencies of this library are not pinned to "below" X version of geopandas and cartopy, resulting in unstable software.
The error shown is:
Traceback (most recent call last):
Line 42, in <module>
ppm.plot.powerplant_map(plants)
Line 123, in powerplant_map
draw_basemap(ax=ax, resolution=resolution, fillcontinents=fillcontinents)
Line 390, in draw_basemap
ax.outline_patch.set_visible(False)
^^^^^^^^^^^^^^^^
AttributeError: 'GeoAxes' object has no attribute 'outline_patch'
Solutions
v0.5.15 (the newest version at the moment) has several of these issues (e.g., using append instead of concat in other plotting functions).
Although modifying the line would fix this issue, using a lockfile is more robust long-term. There are some nice tools to do this (I like pixi).
The text was updated successfully, but these errors were encountered:
Additionally, pinning cartopy to 0.17 (the version before outline_patch was depreciated) on the user side causes other headaches, since it's a fairly old version...
The linked pr should fix that. Other pandas compatibility issues should also have been fixed in the master. If you encounter any other issues feel free to raise them. I'll make a release soon.
We are trying to improve the tests so that these things are caught earlier and no pins are needed.
The issue
Calling
ppm.plotpowerplant_map(some_ppm_df)
will result in failure due to this line:ax.outline_patch.set_visible(False)
This is most likely because the dependencies of this library are not pinned to "below" X version of geopandas and cartopy, resulting in unstable software.
The error shown is:
Solutions
v0.5.15 (the newest version at the moment) has several of these issues (e.g., using
append
instead ofconcat
in other plotting functions).Although modifying the line would fix this issue, using a lockfile is more robust long-term. There are some nice tools to do this (I like
pixi
).The text was updated successfully, but these errors were encountered: