synthpop.modules.post_processing.blending
Postprocessing module to calculate blended magnitude of all stars within a given blend radius. Note: consider using no regular magnitude cut, then running additional_cuts after this module
to cut on blend magnitude.
Classes
Postprocessing module to calculate blended magnitudes in selected filters |
Module Contents
- class synthpop.modules.post_processing.blending.Blending(model, blend_radius, filters, logger, **kwargs)
Bases:
synthpop.modules.post_processing._post_processing.PostProcessingPostprocessing module to calculate blended magnitudes in selected filters for a given blend radius. To use different radii for different filters, include multiple instances of this postproc in your configuration.
Attributes
- blend_radiusfloat
blending radius in arcseconds
- filterslist of str
names of filters to compute blended magnitude in; must be included in your config’s chosen_bands
- blend_radius
- filters
- get_obs_mags(dataframe, filt)
- do_post_processing(dataframe: pandas.DataFrame) pandas.DataFrame
This is a placeholder for the postprocessing. It must accept the pandas data frame and must return a pandas data frame.
Parameters
- dataframedataframe
original SynthPop output as pandas data frame
Returns
- dataframedataframe
modified pandas data frame