def calculate_group_data(context, group_name, run, rebin): processed_data = _run_pre_processing(context, run, rebin) params = _get_MuonGroupingCounts_parameters(context, group_name, run) params["InputWorkspace"] = processed_data group_data = algorithm_utils.run_MuonGroupingCounts(params) return group_data
def calculate_group_data(context, group, run, workspace_name, periods): processed_data = get_pre_process_workspace_name(run, context.data_context.instrument) params = _get_MuonGroupingCounts_parameters(group, periods) params["InputWorkspace"] = processed_data group_data = algorithm_utils.run_MuonGroupingCounts(params, workspace_name) return group_data