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

Call normalize with qualified name #2740

Merged
merged 3 commits into from
Mar 15, 2023

Conversation

steffenhaug
Copy link
Contributor

Description

Fixes #2738

Qualifies the call to normalize with LinearAlgebra to avoid name clash with the @extracted parameter of the same name.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

In the past it was qualified with StaticArrays, however that is no longer a dependency of the library apparently which is probably why it was changed to break in the first place. The StaticArrays one is just a reexport of the LinearAlgebra one anyways as far as I can tell, so this should be identical to the old behavior.

Do you usually make tests for things like this? I'm not familiar enough with the internals of Makie yet to know how to verify programmatically that the data on the plot has actually been normalized, however I tested the fix on my use case and it works both in CairoMakie and GLMakie. If you want a test I can probably look into it with some help.

@steffenhaug
Copy link
Contributor Author

I don't really understand the details of this check failing. I ran the test suite locally with Julia 1.8 and have tested making normalized arrow plots with all three backends. Is this check testing with Julia 1.0, and is that expected to work?

I guess what I want to know is, is there anything I should do now to get this in shape to merge?

@SimonDanisch
Copy link
Member

No this failure isn't related to your change..

@SimonDanisch SimonDanisch merged commit b2b7c4e into MakieOrg:master Mar 15, 2023
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.

Name clash in plot! for arrow plots
3 participants