-
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
None value for MoffatPSF.n_pix and MoffatPSF.peak #27
Comments
The fact that the The change in behaviour compared to before is probably to do with the fact that And no, when |
@AnthonyHorton is the solution to just add @bazkiaei I believe @AnthonyHorton 's comments about the test order relates to the same problem I had in a test I wrote: #25 (comment) . Here was my fix: f115e54 @bazkiaei I hadn't realised during our discussion today that this issue is a subset of Issue #26. I guess this can fall under the PR you just opened. |
Setting the pixel scale when creating the The root cause of all this though is that |
Closing as |
While I use these initial values for
MoffatPSF
andPixellatedPSF
(just like what we do intest_psf.py
):psf_moffat = MoffatPSF(FWHM=1 / 30 * u.arcminute, shape=4.7)
There are proper values for
psf_pixellated.n_pix
andpsf_pixellated.peak
but forpsf_moffat.n_pix
andpsf_moffat.peak
the values areNone
.I found out that
pixel_scale
forpsf_moffat
isNone
value as well and that might be the reason why the other twon_pix
andpeak
areNone
as they seems to be related topixel_scale
as follow lines inpsf.py
:And it is strange, before implementing
pytest.mark.parametrize
, howtest_psf.py
does work while these values areNone
?! Does it mean, for instance here:while the
test
is comparingNone
to a number, it just does noting and passes?The text was updated successfully, but these errors were encountered: