LSSTScienceCollaborations / StackClub

Learning the LSST software Stack, by writing jupyter notebook tutorials.
https://stackclub.readthedocs.io/
MIT License
45 stars 17 forks source link

Run deblending tutorial on current version of the stack #182

Closed belaa closed 5 years ago

belaa commented 5 years ago

This PR addresses Issue #166 and includes minor modifications to lsst_stack_deblender.ipynb so that it runs with version w_2019_06 of the stack. Changes were made in configuring the SingleFrameMeasurementTask, where the line measureConfig.slots.instFlux = None resulted in an attribute error:

AttributeError: lsst.meas.base.baseMeasurement.SourceSlotConfig has no attribute instFlux

and subsequently running table = SourceCatalog.Table.make(schema) resulted in:

NotFoundError: 
  File "src/table/Schema.cc", line 226, in lsst::afw::table::SchemaItem<T> lsst::afw::table::detail::SchemaImpl::find(const string&) const [with T = double; std::string = std::basic_string<char>]
    Field or subfield with name 'base_GaussianFlux_instFlux' not found with type 'D'. {0}
lsst::pex::exceptions::NotFoundError: 'Field or subfield with name 'base_GaussianFlux_instFlux' not found with type 'D'.

The notebook is now running without any issues, but I'm not sure whether my 'fix' is the correct way to proceed. If @fred3m or anyone else has any suggestions or comments it would be much appreciated!

kadrlica commented 5 years ago

I think this has been superseded by #213