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

Gains averaging in Gainplots.py needs to be 64 bit #25

Open
KshitijT opened this issue Mar 8, 2017 · 0 comments
Open

Gains averaging in Gainplots.py needs to be 64 bit #25

KshitijT opened this issue Mar 8, 2017 · 0 comments

Comments

@KshitijT
Copy link
Contributor

KshitijT commented Mar 8, 2017

The code below (in Gainplots.py) :

        amp = abs(gg)
        ampwh = numpy.ma.masked_array(amp,mask=~valid);
        amid  = ampwh.mean(1);

needs to be changed to

        amp = abs(gg)
        ampwh = numpy.ma.masked_array(amp,mask=~valid);
        amid  = ampwh.mean(1,dtype="float64");

to avoid errors in computing the mean (amp is float32) - the current code may produce really weird plots.

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

No branches or pull requests

1 participant