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

Make use of latest improvements to custom stretches in glue-core #409

Merged
merged 2 commits into from
Dec 7, 2023

Conversation

astrofrog
Copy link
Member

Companion to glue-viz/glue#2453

@dhomeier dhomeier added enhancement New feature or request bqplot-viewers labels Nov 14, 2023
@@ -264,7 +264,7 @@ def _update_visual_attributes(self, changed, force=False):
self.density_mark.vmax = self.state.cmap_vmax

if force or "stretch" in changed:
self.density_mark.stretch = STRETCHES[self.state.stretch]()
self.density_mark.stretch = self.state.stretch_object
Copy link
Contributor

Choose a reason for hiding this comment

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

@astrofrog: should this be made dependent on version or availability of stretch_object, or glue-core version requirement be bumped to 1.17?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll just bump the requirements to 1.17

@astrofrog
Copy link
Member Author

We should restart the CI once 1.17.0 is on PyPI (build ongoing)

Copy link
Contributor

@dhomeier dhomeier left a comment

Choose a reason for hiding this comment

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

Looks good – there is no test directly testing the new functionality, right?

@astrofrog
Copy link
Member Author

No but the failing visual test is actually highlighting a real issue/bug in glue-core related to the stretches.

@astrofrog
Copy link
Member Author

The hashes have changed for the figures but the diffs are actually empty and the baseline images match so it's safe to update the hashes.

Copy link

codecov bot commented Dec 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (85ef4ac) 86.63% compared to head (4d4400b) 86.63%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #409   +/-   ##
=======================================
  Coverage   86.63%   86.63%           
=======================================
  Files          89       89           
  Lines        5163     5163           
=======================================
  Hits         4473     4473           
  Misses        690      690           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@astrofrog astrofrog merged commit 307a11d into glue-viz:main Dec 7, 2023
26 checks passed
@dhomeier
Copy link
Contributor

dhomeier commented Dec 7, 2023

Yes, for the first one there only seemed to be a mismatch in the hashes, but for the second, artifacts for
baseline and result are looking quite different; or was the baseline not updated there yet?

@dhomeier
Copy link
Contributor

dhomeier commented Dec 7, 2023

Oh, that was for https://app.circleci.com/pipelines/github/glue-viz/glue-jupyter/179/workflows/bdb8770a-7e15-466f-bf9b-9738d3085928/jobs/201/artifacts , so fixed by glue 1.17.1 it seems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bqplot-viewers enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants