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

Test that no projection is set when tiles is used without geo=True #1113

Merged
merged 7 commits into from
Oct 12, 2023

Conversation

maximlt
Copy link
Member

@maximlt maximlt commented Jul 21, 2023

@maximlt maximlt added this to the 0.9.0 milestone Sep 11, 2023
assert isinstance(plot.get(0), hv.Tiles)
assert 'openstreetmap' in plot.get(0).data
bk_plot = bk_renderer.get_plot(plot)
assert bk_plot.projection == 'mercator'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is true if the test is executed on its own. When the whole module runs, GeoViews is imported and this comes with some side-effects, bk_plot.projection becomes Cartopy CRS (Mercator). I'm not sure this side-effect is desired.

@maximlt maximlt closed this Oct 12, 2023
@maximlt maximlt reopened this Oct 12, 2023
@maximlt maximlt merged commit 4352700 into main Oct 12, 2023
7 checks passed
@maximlt maximlt deleted the test_tiles_not_geo branch October 12, 2023 05:39
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