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

Fix map mask scaling issue #292

Merged
merged 1 commit into from
Feb 7, 2020
Merged

Fix map mask scaling issue #292

merged 1 commit into from
Feb 7, 2020

Conversation

holger-motional
Copy link
Contributor

@holger-motional holger-motional commented Feb 6, 2020

This PR fixes a bug in the map expansion, where the canvas_size was retrieved from the map_dims, rather than the patch_box, for the special case where canvas_size is set to None. The new behavior is that if a canvas_size is not provided, the rendering resolution is 10px/m.

Copy link
Contributor

@freddyaboulton freddyaboulton left a comment

Choose a reason for hiding this comment

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

@holger-nutonomy This looks good to me. I verified that passing None for the map mask returns a resolution of 10 px/m. Passing a tuple returns the patch returns the specified size. Thanks for the fix!

image

@holger-motional holger-motional merged commit 0f7c50f into master Feb 7, 2020
@holger-motional holger-motional deleted the map_mask_scale branch February 7, 2020 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants