-
Notifications
You must be signed in to change notification settings - Fork 10
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
crval not set before imager.make_noiseless_image is run #17
Comments
imager.make_noiseless_image
is run
@bazkiaei is this still an issue? @AnthonyHorton do you have a suggested fix for us to implement? |
I believe it is solved due to |
@bazkiaei I just tried running the jupyter notebook code using this branch and it fails on the 5th cell running:
I get this error:
Do you get the same error? |
I was getting that error at the first days I was working on |
@bazkiaei That axes order fix and CRVAL are unrelated. CRVAL is used to set the RA and dec of the 'reference pixel', i.e. it determines where on the sky the imager is pointing. Might be work checking the axis order of CRPIX, though... @lee It doesn't get set until |
Oh, I thought this is related to the error that was arising. @AnthonyHorton thank you for informing me. |
@AnthonyHorton the trouble is that I think you just want to set |
I'm going to try and fix it and PR it... |
@lee Ah, OK. Probably quite a bit of scope for tidying up there. Rather too much setting things as a side effect of doing other things going on, which makes bugs like this more likely. |
* use centre to always set CRVAL first thing See issue: #17 * created get_pixel_coords method for Imager * remove centre for get_pixel_coords & check for CRVAL * add :skip: InvalidTransformError to docs/index.rst * added test of get_pixel_coords * fix unit=deg problems in SkyCoord * also unit=deg fix * another unit=deg fix * split test and make scope function * make_noiseless_image unit=deg * kwargs docstrings & split star_ & centre_ kwargs
Fixed by #25 |
* Added dark frame generation to Camera, moved other astroimsim code * Initial implementations of image simulation methods * Docs build fix * Remove now redundant astroimsim.py * Memory use reduction (no longer creates huge temporary arrays) * Fix off-by-one, array vs Quantity & floating point stopping bugs * Fix axis 18 (#20) * Axis order changed * Camera.py docstring improved * clipping below zero pixel values * Correcting test_psf.py * camera.py docstring improved * below zero assert added * below zero and infinit asserts added * combining pairs * `@pytest.mark.parameterize` implemented * Some problems with ... * something that works for now * Crval not set as per Issue #17 (#25) * use centre to always set CRVAL first thing See issue: #17 * created get_pixel_coords method for Imager * remove centre for get_pixel_coords & check for CRVAL * add :skip: InvalidTransformError to docs/index.rst * added test of get_pixel_coords * fix unit=deg problems in SkyCoord * also unit=deg fix * another unit=deg fix * split test and make scope function * make_noiseless_image unit=deg * kwargs docstrings & split star_ & centre_ kwargs * @bazkiaei trying to parametrize as it has been advised * @bazkiaei trying to parametrize as it has been advised * Revert "Merge remote-tracking branch 'upstream/image_sim' into improve-pytest-#26" This reverts commit 308168f. * Revert "Merge remote-tracking branch 'upstream/image_sim' into improve-pytest-#26" This reverts commit 4b4bc04. * Revert "Revert "Merge remote-tracking branch 'upstream/image_sim' into improve-pytest-#26"" This reverts commit 25a4c04. * Revert "@bazkiaei" This reverts commit 94273a2. * Revert "@bazkiaei" This reverts commit c811d41. * Revert "Merge remote-tracking branch 'upstream/image_sim' into improve-pytest-#26" This reverts commit 308168f. * Revert "Revert "Merge remote-tracking branch 'upstream/image_sim' into improve-pytest-#26"" This reverts commit 9eb810c. * Improving psf_pytest.py #26 (#28) The `test_psf.py` parametrised and decorated. * auto pep8 * fix pixellated call * add notimplemented error for analytical psf * fix real image generator bug * rename ZWO QE
Crafting a PSF using a simulated galaxy, where I hacked together a new instance of a Huntsman imager:
Solution was to call
huntsman_galaxy.get_pixel_coords(centre)
, which setsself.wcs.wcs.crval
and allowsimager.make_noiseless_image
to run.The text was updated successfully, but these errors were encountered: