def insertFunctionParams(self, params): maskPdata = appiondata.ApMaskMakerParamsData() maskPdata['bin'] = params['bin'] maskPdata.insert() return maskPdata
def insertManualMaskParams(bin): maskPdata=appiondata.ApMaskMakerParamsData() maskPdata['bin']=bin maskPdata['mask_type']='manual' maskPdata.insert() return maskPdata
def insertFunctionParams(self, params): maskPdata = appiondata.ApMaskMakerParamsData() maskPdata['bin'] = params['bin'] maskPdata['mask_type'] = params['masktype'] maskPdata['pdiam'] = params['diam'] maskPdata['region_diameter'] = params['cdiam'] maskPdata['edge_blur'] = params['cblur'] maskPdata['edge_low'] = params['clo'] maskPdata['edge_high'] = params['chi'] maskPdata['region_std'] = params['stdev'] maskPdata['convolve'] = params['convolve'] maskPdata['convex_hull'] = not params['no_hull'] maskPdata['libcv'] = params['cv'] maskPdata.insert() return maskPdata