[Issues] ConvolvedFrame, SegmentationImage and chip attribute

Ewout M. Helmich helmich at astro.rug.nl
Wed Sep 12 13:57:16 CEST 2007


Hi Hans,

Looks good to me, go ahead and commit it please.

Regards,
Ewout

Hans Vaith wrote:
> Dear all,
>
> testing the ConvolvedFrame and the underlying convolution software, 
> implemented by Johannes Koppenhöfer and Arno Riffeser, within AstroWISE, I 
> ran into a problem when trying to create a SourceList from these frames. The 
> problem arises from the fact that ConvolvedFrame has a chip attribute that 
> will not be set, however, when a ConvolvedFrame is created by convolving a 
> CoaddedRegriddedFrame, as the latter does not have a chip attribute. 
>
> When, as part of making a SourceList, the method get_canonical_name() of class 
> SegmentationImage is called, the following piece of code causes an error:
>
> if hasattr(self.sourcelist.frame, 'chip'):
>     canonical.chip_name       = self.sourcelist.frame.chip.name
>
>
> In my local checkout of opipe I have added an additional check:
>
> if hasattr(self.sourcelist.frame, 'chip'):
>     if self.sourcelist.frame.chip != None:
>         canonical.chip_name       = self.sourcelist.frame.chip.name
>
> With this additional check the error does not occur.
>
> Please let me know if this fix is acceptable, or if the problem should be 
> tackled somewhere else.
>
> Regards,
> Hans
>
> _______________________________________________
> Issues mailing list
> Issues at astro-wise.org
> http://listman.astro-wise.org/mailman/listinfo/issues
>   

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Drs. Ewout Helmich             <><>
Kapteyn Astronomical Institute <><> Astro-WISE/OmegaCEN
Landleven 12                   <><>
P.O.Box 800                    <><> email: helmich at astro.rug.nl
9700 AV Groningen              <><> tel  : +31(0)503634548
The Netherlands                <><>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



More information about the Issues mailing list