Skip to content

Conversation

@Apicazo9
Copy link

Relevant Issue(s)/PR(s)

Avoid divide by 0

Provide an overview of the implemented solution or the fix and elaborate on the modifications.

stingray\stingray\pulse\modeling.py

Avoid divide by 0 by changing parameter to a very small number (1e-10)

Is there a new dependency introduced by your contribution? If so, please specify.

Any other comments?

@matteobachetti
Copy link
Member

@Apicazo9 the number that comes out of that operation is already flagged a couple of lines below. Do you have any specific reason to avoid at all cost the division by zero?

@Apicazo9
Copy link
Author

@matteobachetti I changed it because while changing values in the interactive phaseogram a warning showed up. I've been testing it now and it works fine, i don't understand what happened.

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.

2 participants