[LSST|dm-users 618] Re: Error when Running Chris Walter's: Introduction to the DM AFW packages ipython notebook

Dominique Boutigny boutigny at in2p3.fr
Thu May 7 12:09:19 PDT 2015


Hi Will,

Yes, the schema has changed in the latest stack versions and 
"flux.sinc_flux" is not any more in the source table schema. Something 
directly replacing sinc_flux was present  in the v10_0 but this has been 
completely replaced in the latest stack_v10_1. There are now 10 Aperture 
flux corresponding to 10 different radii.

You can have a look to 
http://nbviewer.ipython.org/github/DarkEnergyScienceCollaboration/CFHTLS-Reprocess/tree/master/notebooks/ 
to get notebook examples with the most recent stack.

I can have a look to Chris' notebooks if you wish.

Best,

Dominique

On 05/07/2015 11:52 AM, Will Dawson wrote:
> I encountered an error when running Chris Walter’s Introduction to the 
> DM AFW packages 
> <http://nbviewer.ipython.org/github/DarkEnergyScienceCollaboration/DataManagementWorkbook/blob/master/Basic%20DM%20AFW%20Introduction.ipynb> ipython 
> notebook. In the second to last step when I run the command:
>
> # Apply the measurement routines to the exposure using the sources as 
> input
> measure.run(exposure, sources)
>
> I get the following error:
>
> ---------------------------------------------------------------------------
> NotFoundError                              Traceback (most recent call last)
> <ipython-input-19-77c6eca8bda0>  in<module>()
>       16  
>       17  # Apply the measurement routines to the exposure using the sources as input
> ---> 18  measure.run(exposure,  sources)
>       19  
>       20  # Now let's look at the output from some of the measurment algorithms.
>
> /Users/dawson/lsst/DarwinX86/pipe_base/10.0+2/python/lsst/pipe/base/timer.pyc  inwrapper(self, *args, **keyArgs)
>      116          logInfo(obj=  self,  prefix=  func.__name__+  "Start")
>      117          try:
> --> 118              res=  func(self,  *args,  **keyArgs)
>      119          finally:
>      120              logInfo(obj=  self,  prefix=  func.__name__+  "End")
>
> /Users/dawson/lsst/DarwinX86/meas_algorithms/10.0+2/python/lsst/meas/algorithms/measurement.pyc  inmeasure(self, exposure, sources, noiseImage, noiseMeanVar, references, refWcs)
>      422  
>      423          self.log.info("Measuring %d sources"  %  len(sources))
> --> 424          self.config.slots.setupTable(sources.table,  prefix=self.config.prefix)
>      425  
>      426          self.preMeasureHook(exposure,  sources)
>
> /Users/dawson/lsst/DarwinX86/meas_algorithms/10.0+2/python/lsst/meas/algorithms/measurement.pyc  insetupTable(self, table, prefix)
>       57          if  self.centroidis  not  None:  table.defineCentroid(prefix+  self.centroid)
>       58          if  self.shapeis  not  None:  table.defineShape(prefix+  self.shape)
> ---> 59          if  self.apFluxis  not  None:  table.defineApFlux(prefix+  self.apFlux)
>       60          if  self.modelFluxis  not  None:  table.defineModelFlux(prefix+  self.modelFlux)
>       61          if  self.psfFluxis  not  None:  table.definePsfFlux(prefix+  self.psfFlux)
>
> /Users/dawson/lsst/DarwinX86/afw/10.0+3/python/lsst/afw/table/tableLib.pyc  indefineApFlux(self, *args)
>     9869      def  defineApFlux(self,  *args):
>     9870          """defineApFlux(SourceTable self, std::string const & name)"""
> -> 9871          return  _tableLib.SourceTable_defineApFlux(self,  *args)
>     9872  
>     9873      def  getApFluxDefinition(self):
>
> NotFoundError:
>    File "src/table/Schema.cc  <http://Schema.cc>", line 239, in SchemaItem<T> lsst::afw::table::detail::SchemaImpl::find(const std::string &) const [T = double]
>      Field or subfield withname 'flux.sinc_flux' not found with type 'D'. {0}
> lsst::pex::exceptions::NotFoundError: 'Field or subfield withname 'flux.sinc_flux' not found with type 'D'.'
>
> Perhaps this is related to the fact that the notebook was written in 
> 2013 and I am using v10.0 of the stack. As I am new to the stack, and 
> given the surprisingly complex error message for such a seemingly 
> simple command, I am hoping that the experts can shed some light on 
> the matter.
>
> Thanks,
> Will Dawson
>
>
>
>
>
> _______________________________________________
> dm-users mailing list
> dm-users at lists.lsst.org
> https://lists.lsst.org/mailman/listinfo/dm-users

-- 
Dominique Boutigny  -  CNRS / CC-IN2P3
Now at SLAC National Accelerator Laboratory

Kavli Building - Room 221
Mail     : boutigny at in2p3.fr -  boutigny at slac.stanford.edu
Office   : +1 650-926-5759   -  Cellular : +1 774-232-0912

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lsst.org/pipermail/dm-users/attachments/20150507/7b163882/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2936 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.lsst.org/pipermail/dm-users/attachments/20150507/7b163882/attachment-0001.p7s>


More information about the dm-users mailing list