Skip to content

Fix mean value computation in rmsimage.py#320

Merged
gmloose merged 1 commit into
lofar-astron:masterfrom
AlexKurek:Fix-mean-value-computation-in-rmsimage
Jun 19, 2026
Merged

Fix mean value computation in rmsimage.py#320
gmloose merged 1 commit into
lofar-astron:masterfrom
AlexKurek:Fix-mean-value-computation-in-rmsimage

Conversation

@AlexKurek

@AlexKurek AlexKurek commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

If goodcutout has NaN-s, np.nansum will reject them, but len() will include them. Consequently, the computed mean value will be too low.

for my 1.5 GB FITS test image the .gaul files are identical after this.

@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.

@gmloose gmloose merged commit 9fe1007 into lofar-astron:master Jun 19, 2026
1 check passed
@AlexKurek AlexKurek deleted the Fix-mean-value-computation-in-rmsimage branch June 19, 2026 08:45
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