Skip to content

Conversation

@bw4sz
Copy link
Collaborator

@bw4sz bw4sz commented Nov 4, 2025

While working on MillionTrees I noticed an annoying patterns for visualizing polygon data, we asked the user to separately specify the width and height of the image, even though we had the image. This was partially fixed in #834 but not fully, since the arguments still remained.

@bw4sz bw4sz changed the title fix/visualize convert sv rootdir Remove width and height from plot_results and plot_annotations Nov 4, 2025
@bw4sz
Copy link
Collaborator Author

bw4sz commented Nov 12, 2025

@copilot simplify the tests into one simple test. Be concise and minimal, this is a small feature.

Copy link
Contributor

Copilot AI commented Nov 12, 2025

@bw4sz I've opened a new pull request, #1209, to work on those changes. Once the pull request is ready, I'll request review from you.

@bw4sz bw4sz force-pushed the fix/visualize-convert-sv-rootdir branch from 4b355af to c08e1a0 Compare November 12, 2025 21:32
Copy link
Member

@ethanwhite ethanwhite left a comment

Choose a reason for hiding this comment

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

All of the changes removing height and width look good, but I'm unclear as to how the new resolved_root code on lines 209-225 relates to the rest of the PR.

@bw4sz
Copy link
Collaborator Author

bw4sz commented Nov 14, 2025

This was the same general logic and motivation for #1210

The plot and predict functions shouldn't have to deal with all this uncertainty in what the data looks like. All of this is going to be handled by the read_file, with the exception of the edge case where the image exists only in memory and not on disk. Updated code and we should wait until 1210 is merged.

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.

3 participants