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

Order image per step plots #143

Merged
merged 1 commit into from
Sep 14, 2023
Merged

Order image per step plots #143

merged 1 commit into from
Sep 14, 2023

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented Sep 14, 2023

Discovered this one whilst working on iterative/dvc#9940

This PR fixes a bug in the HTML. Previously "image per step" images where not ordered correctly due to their paths being treated as strings.

Before

Screen.Recording.2023-09-14.at.8.23.10.pm.mov

After

Screen.Recording.2023-09-14.at.8.21.34.pm.mov

Note: don't ask for a slider.

@mattseddon mattseddon force-pushed the order-image-per-step branch 2 times, most recently from d33e0eb to 3c55856 Compare September 14, 2023 10:47
is_image_renderer = isinstance(renderer, ImageRenderer)

if not is_image_renderer:
return (is_image_renderer, None, None, None)
Copy link
Member Author

Choose a reason for hiding this comment

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

IIUC having this here will stop the code from reordering VegaRenderers.

Copy link
Member Author

Choose a reason for hiding this comment

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

Behaviour is tested.

@mattseddon mattseddon marked this pull request as ready for review September 14, 2023 11:02
@mattseddon mattseddon self-assigned this Sep 14, 2023
@dberenbaum
Copy link
Contributor

Thanks @mattseddon! I wouldn't spend time fixing the html any more per the discussion in iterative/dvc#9940.

@dberenbaum dberenbaum merged commit 6d045d7 into main Sep 14, 2023
@dberenbaum dberenbaum deleted the order-image-per-step branch September 14, 2023 20:55
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