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

cython3 compatibility #4033

Merged
merged 2 commits into from
Dec 21, 2023
Merged

cython3 compatibility #4033

merged 2 commits into from
Dec 21, 2023

Conversation

kif
Copy link
Member

@kif kif commented Dec 21, 2023

Remove compilation warnings
close #4019

@kif kif requested a review from t20100 December 21, 2023 12:32
Copy link
Member

@t20100 t20100 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@@ -1,5 +1,11 @@
#cython: embedsignature=True, language_level=3
## This is for optimisation
#cython: boundscheck=False, wraparound=False, cdivision=True, initializedcheck=False,
Copy link
Member

Choose a reason for hiding this comment

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

Why is this is needed globally?

@@ -1,3 +1,8 @@
#cython: embedsignature=True, language_level=3
## This is for optimisation
##cython: boundscheck=False, wraparound=False, cdivision=True, initializedcheck=False,
Copy link
Member

Choose a reason for hiding this comment

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

That's disabled, right?

@@ -101,7 +106,7 @@ ctypedef fused image_types:

# Normalization

ctypedef double (*NormalizationFunction)(double) nogil
# ctypedef double (*NormalizationFunction)(double) nogil
Copy link
Member

Choose a reason for hiding this comment

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

This is no longer a valid syntax?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is still valid but it is unused ... so I commented it to ensure nothing breaks.
To be removed once we are sure it makes no regression anywhere.

@t20100 t20100 added this to the 2.0.0 milestone Dec 21, 2023
@t20100 t20100 merged commit 647a32e into silx-kit:main Dec 21, 2023
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check cython compilation warnings
2 participants