Пример #1
0
def dmthreshold(dm, use_dmplan, min_group=45):
    if use_dmplan:
        import singlepulse.rrattrap_config as rrattrap_config
        dmt, min_group = rrattrap_config.use_dmplan(dm)
    else:
        dmt = 1
        min_group = min_group
    return dmt, min_group
Пример #2
0
def dmthreshold(dm, use_dmplan, min_group=45):
    if use_dmplan:
        import singlepulse.rrattrap_config as rrattrap_config
        dmt, min_group = rrattrap_config.use_dmplan(dm)
    else:
        dmt = 1
        min_group = min_group 
    return dmt, min_group
Пример #3
0
def dmt_threshold(dm, use_dmplan):
    """
       Returns factor to multiply DM_thresh and time thresh by.
       Factors are based on DD plan if use_dmplan is set to be true.
    """
    if use_dmplan:
        dm_fac, t_fac = rrattrap_config.use_dmplan(dm)
    else:
        dm_fac = 1
        t_fac = 1
    return dm_fac, t_fac