LSST Applications g2079a07aa2+86d27d4dc4,g2305ad1205+a659bff248,g2bbee38e9b+3c60f8fe34,g337abbeb29+3c60f8fe34,g33d1c0ed96+3c60f8fe34,g3502564af9+d77d6d1350,g3a166c0a6a+3c60f8fe34,g487adcacf7+25d9892218,g4be5004598+d77d6d1350,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+4d81263f9a,g5cd07815a0+980d2b1c3b,g607f77f49a+d77d6d1350,g858d7b2824+d77d6d1350,g88963caddf+83e433e629,g99cad8db69+a4d3c48eeb,g9ddcbc5298+9a081db1e4,ga1e77700b3+bcf1af89ad,ga57fefb910+9a39d7b2d7,gae0086650b+585e252eca,gb065fddaf9+4f9fd82a2c,gb0e22166c9+60f28cb32d,gb363559e06+d84b1d3d07,gb3b7280ab2+4563d032e1,gb4b16eec92+babe958938,gba4ed39666+c2a2e4ac27,gbb8dafda3b+ed6854b564,gc120e1dc64+b72d212f87,gc28159a63d+3c60f8fe34,gc3e9b769f7+921dbcd359,gcf0d15dbbd+9a39d7b2d7,gdaeeff99f8+f9a426f77a,gddc38dedce+585e252eca,ge79ae78c31+3c60f8fe34,w.2024.21
LSST Data Management Base Package
Loading...
Searching...
No Matches
Classes | Functions
lsst.meas.base.diaCalculationPlugins Namespace Reference

Classes

class  Chi2DiaPsfFlux
 
class  Chi2DiaPsfFluxConfig
 
class  ErrMeanDiaPsfFlux
 
class  ErrMeanDiaPsfFluxConfig
 
class  HTMIndexDiaPosition
 
class  HTMIndexDiaPositionConfig
 
class  LinearFitDiaPsfFlux
 
class  LinearFitDiaPsfFluxConfig
 
class  MadDiaPsfFlux
 
class  MadDiaPsfFluxConfig
 
class  MaxSlopeDiaPsfFlux
 
class  MaxSlopeDiaPsfFluxConfig
 
class  MeanDiaPosition
 
class  MeanDiaPositionConfig
 
class  MinMaxDiaPsfFlux
 
class  MinMaxDiaPsfFluxConfig
 
class  NumDiaSourcesDiaPlugin
 
class  NumDiaSourcesDiaPluginConfig
 
class  PercentileDiaPsfFlux
 
class  PercentileDiaPsfFluxConfig
 
class  SigmaDiaPsfFlux
 
class  SigmaDiaPsfFluxConfig
 
class  SigmaDiaTotFlux
 
class  SigmaDiaTotFluxConfig
 
class  SimpleSourceFlagDiaPlugin
 
class  SimpleSourceFlagDiaPluginConfig
 
class  SkewDiaPsfFlux
 
class  SkewDiaPsfFluxConfig
 
class  StetsonJDiaPsfFlux
 
class  StetsonJDiaPsfFluxConfig
 
class  WeightedMeanDiaPsfFlux
 
class  WeightedMeanDiaPsfFluxConfig
 
class  WeightedMeanDiaTotFlux
 
class  WeightedMeanDiaTotFluxConfig
 

Functions

 catchWarnings (_func=None, *warns=[])
 

Detailed Description

Plugins for use in DiaSource summary statistics.

Output columns must be
as defined in the schema of the Apdb both in name and units.

Function Documentation

◆ catchWarnings()

lsst.meas.base.diaCalculationPlugins.catchWarnings ( _func = None,
* warns = [] )
Decorator for generically catching numpy warnings.

Definition at line 64 of file diaCalculationPlugins.py.

64def catchWarnings(_func=None, *, warns=[]):
65 """Decorator for generically catching numpy warnings.
66 """
67 def decoratorCatchWarnings(func):
68 @functools.wraps(func)
69 def wrapperCatchWarnings(*args, **kwargs):
70 with warnings.catch_warnings():
71 for val in warns:
72 warnings.filterwarnings("ignore", val)
73 return func(*args, **kwargs)
74 return wrapperCatchWarnings
75
76 if _func is None:
77 return decoratorCatchWarnings
78 else:
79 return decoratorCatchWarnings(_func)
80
81