Skip to content

[ #314 ] fixed bug on mac coming from modulo with negative values#323

Merged
Didou09 merged 1 commit intodevelfrom
Issue314_Cmodulo
Jan 9, 2020
Merged

[ #314 ] fixed bug on mac coming from modulo with negative values#323
Didou09 merged 1 commit intodevelfrom
Issue314_Cmodulo

Conversation

@lasofivec
Copy link
Copy Markdown
Collaborator

Issue #314 was coming from a modulo operation with @cython.cdivision(True), it gives the wrong result with negative values and cdef defined variables.

Since this flags accelerates the code overall, and that the modulo operand was only being use for a -/+1 operation on a integer in [0,npts[ that should stay in [0,npts[, I decided to add one if test that should not slow down the function.

@lasofivec lasofivec requested a review from Didou09 January 9, 2020 14:02
@lasofivec lasofivec self-assigned this Jan 9, 2020
Copy link
Copy Markdown
Member

@Didou09 Didou09 left a comment

Choose a reason for hiding this comment

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

Good for me when tests are passing

@Didou09 Didou09 merged commit 4046567 into devel Jan 9, 2020
@Didou09 Didou09 deleted the Issue314_Cmodulo branch January 9, 2020 14:39
@lasofivec lasofivec mentioned this pull request Jan 21, 2020
@Didou09 Didou09 mentioned this pull request Jan 30, 2020
@Didou09 Didou09 mentioned this pull request Mar 10, 2020
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.

2 participants