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

Idential values for all groups with nghxrg #14

Open
exowanderer opened this issue Oct 20, 2017 · 1 comment
Open

Idential values for all groups with nghxrg #14

exowanderer opened this issue Oct 20, 2017 · 1 comment

Comments

@exowanderer
Copy link
Contributor

exowanderer commented Oct 20, 2017

I used the default for all inputs, but varied naxis3, which produced naxis3 noise frames populated by all the same values.

cd pynrc/simul
ipython
import nghxrg as ng
from numpy import sum

naxis3 = 10 # anything will do it
nghrg = ng.HXRGNoise(naxis3=naxis3)
noise = nghrg.mknoise()

for k in range(naxis3-1):
  print(sum(abs(noise.data[k+1]-noise.data[k])))

The result is naxis3 zeros printed to screen.

@exowanderer
Copy link
Contributor Author

I just wanted to confirm that this is still a problem. But with a better activation of the issue (more generalized) is this:

from pynrc.simul import nghxrg as ng
from numpy import sum

naxis3 = 10 # anything will do it
nghrg = ng.HXRGNoise(naxis3=naxis3)
noise = nghrg.mknoise()

for k in range(naxis3-1):
  print(sum(abs(noise.data[k+1]-noise.data[k])))

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