nanotune.fit.coulomboscillationfit

class nanotune.fit.coulomboscillationfit.CoulombOscillationFit(qc_run_id: int, db_name: str, db_folder: Optional[str] = None, relative_height_threshold: float = 0.5, **kwargs)[source]

Bases: DataFit

Data fitting class for Coulomb oscillations.

relative_height_threshold

threshold above which a peak is considered a Coulomb peak. Compared to normalized signal.

peak_indx

indices of the peaks found.

peak_distances

distances between peaks.

property range_update_directives: List[str]
find_fit() None[source]

Finds peaks and extracts distances in voltage space between them.

calculate_voltage_distances() Dict[str, float][source]

Calculates voltage spacing between successive Coulomb peaks.

Returns

dict – mapping readout method to maximum of peak distances found for this method.

get_peak_locations() Dict[str, List[float]][source]

Determines peaks for each trace in the dataset and retains their indices.

Returns

dict – mapping readout method to a list of voltages at which peaks were detected.

find_peaks(absolute_height_threshold: Optional[float] = None, minimal_index_distance: int = 3) Dict[str, List[int]][source]

Locates peaks by using scipy.signal.peaks.

calculate_peak_distances(peak_indx: Dict[str, List[int]]) Dict[str, List[float]][source]
plot_fit(ax: Optional[Axes] = None, save_figures: bool = True, filename: Optional[str] = None, file_location: Optional[str] = None, plot_params: Optional[Dict[str, Union[str, float, int, bool, List[float]]]] = None, plot_format: str = 'png') Tuple[Axes, Colorbar][source]