def getCoarseSearchParamRange(self): """ Get range of linear params to determine wavelength solution. """ return can.recursiveStrToListOfLists( (self.getOSELOTSVar('coarse_search_param_range')), elem_type_cast=float)
def getWavelengthScalings(self): """ Get the fit scalings of the wavelength terms. """ return can.recursiveStrToListOfLists( (self.getOSELOTSVar('wavelength_fit_scalings')), elem_type_cast=float)
def getWavelengthOfPixSolutionGuess(self): """ Get background wavelength solution guess. Based on historic, hand-determine solutions. """ return can.recursiveStrToListOfLists( (self.getOSELOTSVar('wavelength_of_pix_solution_guess')), elem_type_cast=float)
def getBackgroundFitRegion(self): """ Get image range over which to fit background. These are the length of pixels left, right, above, and below the spectrum region to do the fits. """ return can.recursiveStrToListOfLists( (self.getOSELOTSVar('background_fit_pix_range')), elem_type_cast=int)
def getGhostSearchBuffer(self): """ ??? """ return can.recursiveStrToListOfLists( (self.getOSELOTSVar('ghost_search_buffer')), elem_type_cast=float)
def getFilters(self): return can.recursiveStrToListOfLists(self.getPISCOVar('filters'))
def getAmpCorrectColRange(self): return can.recursiveStrToListOfLists( self.getPISCOVar('amp_correct_col_range1x1'), elem_type_cast=int)
def getPixelThresholds(self): return [ int(threshold) for threshold in can.recursiveStrToListOfLists( self.getPISCOVar('pixel_thresholds')) ]
def getOverscanSections1x1(self): return can.recursiveStrToListOfLists( (self.getPISCOVar('overscan_sections_1x1')), elem_type_cast=int)
def getGoodFlatADUs(self): return can.recursiveStrToListOfLists( (self.getPISCOVar('flat_good_adu_levels')), elem_type_cast=int)
def getFlatStitchedMeasureSections1x1(self): return can.recursiveStrToListOfLists( (self.getPISCOVar('flat_stitched_measure_sections_1x1')), elem_type_cast=int)
def getFlatSingleAmpMeasureSections1x1(self): return can.recursiveStrToListOfLists( (self.getPISCOVar('flat_single_amp_measure_sections_1x1')), elem_type_cast=int)
def getLeftRightAmpSuffixes(self): return can.recursiveStrToListOfLists( (self.getPISCOVar('left_right_suffix')))
def getAmplifierGains(self): return [ float(gain) for gain in can.recursiveStrToListOfLists( self.getPISCOVar('gains')) ]
def getImageDimensions(self): "The dimensions of the image, in pixels. " return [ float(dim) for dim in can.recursiveStrToListOfLists( self.getOSELOTSVar('image_dimensions')) ]
def getCoarseSearchNParamStep(self): """ Get number of linear params we sample. """ return can.recursiveStrToListOfLists( (self.getOSELOTSVar('coarse_search_n_steps')), elem_type_cast=int)
def get1x1CropRegion(self): return can.recursiveStrToListOfLists((self.getPISCOVar('crop_1x1')), elem_type_cast=int)
def getDefaultFigSize(self): return can.recursiveStrToListOfLists( (self.getOSELOTSVar('default_fig_size')), elem_type_cast=int)
def getWavelengthRangeOfInterest(self): "Get wavelength range, in nm, that you want to anlalyze the spectrum over." return [ float(bound) for bound in can.recursiveStrToListOfLists( self.getOSELOTSVar('fit_data_wavelength_range')) ]
def getBackgroundCutWavelengths(self): "The wavelengths that mark the edges of the spectrum. Sections of detector below and above this range will be used to fit the background. " return [ float(bound) for bound in can.recursiveStrToListOfLists( self.getOSELOTSVar('background_cut_wavelengths')) ]