Skip to content

Make seterr local only - #477

Open
AlexKurek wants to merge 5 commits into
lofar-astron:masterfrom
AlexKurek:Make-seterr-local-only
Open

AlexKurek wants to merge 5 commits into
lofar-astron:masterfrom
AlexKurek:Make-seterr-local-only

Conversation

@AlexKurek

Copy link
Copy Markdown
Contributor

Setting .errstate(all='ignore') is actually dangerous, and it stayed on for the entire process.

@gmloose gmloose left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM. Fully agree.

@gmloose

gmloose commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

And your change uncovered at least one issue that was previously ignored.

Comment thread bdsf/functions.py Resolved
Comment thread bdsf/functions.py
Comment on lines +435 to +436
dumr = atan(abs(2.0*m11/(m2[0]-m2[1])))
dumr = atanproper(dumr, m2[0]-m2[1], 2.0*m11)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I thought this had already been replaced with atan2() in a different MR. Or is that one still open?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Found it. That PR #449 is still open.

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