synthpop.modules.post_processing.additional_cuts ================================================ .. py:module:: synthpop.modules.post_processing.additional_cuts .. autoapi-nested-parse:: Post-processing module to make additional cuts to the catalog. Classes ------- .. autoapisummary:: synthpop.modules.post_processing.additional_cuts.AdditionalCuts Module Contents --------------- .. py:class:: AdditionalCuts(model, logger, standard_cuts=None, difference_cuts=None, **kwargs) Bases: :py:obj:`synthpop.modules.post_processing._post_processing.PostProcessing` Post-processing module to make additional cuts on which stars are included in the catalog. These may be based on a minimum or maximum value for any column(s), or a minimum or maximum value of the difference between any column pair(s). Attributes ---------- standard_cuts : list list of cuts to make by data column name, cut type, and cut limit; e.g. [['param_name1', 'cut_type1', cut_limit1], ['param_name2', 'cut_type2', cut_limit2]], where 'param_nameN' can be any column in the DataFrame, 'cut_typeN' must be 'min' or 'max', and cutlimitN should be the int or float value to cut at. difference_cuts : list list of cuts to make based on column value differences (e.g. color); e.g. [['param_name1a', 'param_name1b', 'cut_type1', cut_limit1], ['param_name2a', 'param_name2b', 'cut_type2', cut_limit2]], where 'param_nameNm' can be any column in the DataFrame, 'cut_typeN' must be 'min' or 'max', and cutlimitN should be the int or float value to cut at. .. py:attribute:: standard_cuts :value: None .. py:attribute:: difference_cuts :value: None .. py:method:: do_post_processing(dataframe: pandas.DataFrame) -> pandas.DataFrame Make the cuts and return the modified catalog.