-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
add and export ReversibleScale
type - simplify LogFunctions
#3095
Conversation
a7412a6
to
b2afdcc
Compare
Alright, CI is green! @jkrumbiegel do we want to merge this now? :) |
I have to take another look tomorrow, I just saw that the warning is still in there and I have to double check the logbase thing |
Thanks for the comments.
I don't see neither in which case one would use this, so let's hard error instead.
Since the given limits define a valid range, It's fairly easy to add a check cover this invalid usage: done in the latest commits.
I agree that the
Auto-determining the reverse scale is now implemented and tested. |
Also, I don't have a strong opinion on the |
ReversibleScale
type - simplify LogFunctions
ReversibleScale
type - simplify LogFunctions
@jkrumbiegel , #3194 seems to fail CI ? |
Ah yeah similar to the previous method, this one also doesn't work for external PRs because those users are not allowed to access the token needed. I'm not sure what to do to be honest, we can't comment, we can't status change, but we need to know if refimages are missing |
Just to be clear, this pr doesn't have an added reference image, so the check should pass as before, no ? |
The behavior changed, now it sets a "success" status if no missing reference images were found, and that doesn't work here. We could remove that but then it still wouldn't work in cases with refimages. |
I like to see these green statuses in the morning, awesome @jkrumbiegel ! |
This run hopefully gives the status message. The last one was green but was missing the status (because getting the right commit SHA is not trivial in github actions..), but now I made changes on master that should resolve it correctly. We should see a "No new reference images" status here once the GLMakie CI runs finish. The way I solved it now was to use a separate workflow which is only ever triggered from its default branch state, so can't be messed with by PRs. Therefore it is allowed to run at higher privileges, with access to status messages. The GLMakie CI stores the number of missing images and the right SHA in a file, which is downloaded by the separate workflow when GLMakie CI finishes. This one then posts the status message. 😌 |
It worked 🎉 |
@jkrumbiegel, can we go forward on this PR ? It would also simplify the |
f0b990d
to
1c8831f
Compare
1c8831f
to
4cd096b
Compare
Ok let's get this one in |
Thank you all :) |
Description
Fixes #3088, continuation of #2493 / #2900.
Add a new
ReversibleScale
type for custom scale functions (adds genericity in damping functions):old examples
Example:
Fix wrong algorithm in
scaled_steps
, which lead tolog
DomainError
s on the following example (on0.19.7
), added a new reference image:Without the
ReversibleScale
type, one would fail to determine the inverse transform function, hence leading to unoptimal colorbar ticks (root cause of the ticks overlap observed in #3088):Simplify log functions declaration.
Fix #3089:
Type of change
Delete options that do not apply:
Checklist