[Issues] missing astrom_param in RegriddedFrame test

Ewout M. Helmich helmich at astro.rug.nl
Wed Nov 8 00:09:20 CET 2006


This is related to changes I made, I'll look into it.

Regards,
Ewout

Oliver-Mark Cordes wrote:
> Hi!
>
> I just tedted the RegriddedFrame_test.py in astro/test/processing and 
> the CoaddedRegriddedFrame_test failed. The reason is that for the 
> loaded frames no astrom_param was initialised. This leads to a failure 
> in astro/util/projections.py which is invoked by RegriddedFrame.make() 
> It is possible to check in RegriddedFrame.make() that astrom_params is 
> set? Obviously make cannot work without astrom_params and the error 
> message is irritating ... ;-)
>
>
> ======================================================================
> ERROR: test_make (__main__.CoaddedRegriddedFrame_test)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/home/ocordes/astrowise/cvs/opipe/astro/test/processing/RegriddedFrame_test.py", 
> line 218, in test_make
>     self.coadd.make()
>   File 
> "/home/ocordes/astrowise/cvs/opipe/astro/main/RegriddedFrame.py", line 
> 535, in make
>     self.derive_psf_radii_per_ccd()
>   File 
> "/home/ocordes/astrowise/cvs/opipe/astro/main/RegriddedFrame.py", line 
> 627, in derive_psf_radii_per_ccd
>     boxes = [frame.get_bounding_box_of_reduced() for frame in frames]
>   File 
> "/home/ocordes/astrowise/cvs/opipe/astro/main/RegriddedFrame.py", line 
> 321, in get_bounding_box_of_reduced
>     proj = projections(astrom=self.astrom_params)
>   File "/home/ocordes/astrowise/cvs/opipe/astro/util/projections.py", 
> line 137,
> in __init__
>     self.sind0 = math.sin(raddeg(crval2))
>   File "/home/ocordes/astrowise/cvs/opipe/astro/util/projections.py", 
> line 9, in raddeg
>     return x * math.pi / 180.0
> TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'
>
>
> Cheers,
>     Oliver
>
> _______________________________________________
> Issues mailing list
> Issues at astro-wise.org
> http://listman.astro-wise.org/mailman/listinfo/issues



More information about the Issues mailing list