From 1d77b7f9c41e1884bc0d97e2246cd9a48441af03 Mon Sep 17 00:00:00 2001 From: Jason Detwiler Date: Fri, 26 Apr 2024 10:05:16 -0700 Subject: [PATCH] try code-block --- src/pygama/pargen/data_cleaning.py | 100 +++++++++++++++++------------ 1 file changed, 58 insertions(+), 42 deletions(-) diff --git a/src/pygama/pargen/data_cleaning.py b/src/pygama/pargen/data_cleaning.py index 83da7ed4a..c55802371 100644 --- a/src/pygama/pargen/data_cleaning.py +++ b/src/pygama/pargen/data_cleaning.py @@ -376,36 +376,44 @@ def generate_cuts( data to calculate cuts on parameters : dict dictionary of the form: - { - "output_parameter_name": { - "cut_parameter": "parameter_to_cut_on", - "cut_level": number_of_sigmas, - "mode": "inclusive" or "exclusive" + .. code-block:: json + + { + "output_parameter_name": { + "cut_parameter": "parameter_to_cut_on", + "cut_level": number_of_sigmas, + "mode": "inclusive" or "exclusive" + } } - } number of sigmas can instead be a dictionary to specify different cut levels for low and high side or to only have a one sided cut only specify one of the low or high side e.g. - { - "output_parameter_name": { - "cut_parameter": "parameter_to_cut_on", - "cut_level": {"low_side": 3, "high_side": 2}, - "mode": "inclusive" or "exclusive" + .. code-block:: json + + { + "output_parameter_name": { + "cut_parameter": "parameter_to_cut_on", + "cut_level": {"low_side": 3, "high_side": 2}, + "mode": "inclusive" or "exclusive" + } } - } alternatively can specify hit dict fields to just copy dict into output dict e.g. - { - "is_valid_t0":{ - "expression":"(tp_0_est>a)&(tp_0_esta)&(tp_0_esta)&(tp_0_esta)&(tp_0_est