<jupyter_start><jupyter_text>Analyse and fit Coulomb peaks Load packages<jupyter_code>import os
import numpy as np
import qcodes
from qcodes.plots.qcmatplotlib import MatPlot
import matplotlib.pyplot as plt
%matplotlib inline

import qtt
import qtt.algorithms.coulomb
from qtt.algorithms.coulomb import analyseCoulombPeaks
from qtt.data import load_example_dataset
dataset=load_example_dataset(os.path.join( 'misc', '13-13-16_qtt_sensingdot_t.fastTune') )
qtt.data.plot_dataset(dataset)<jupyter_output><empty_output><jupyter_text>Fit Coulomb peaks<jupyter_code>peaks=qtt.algorithms.coulomb.analyseCoulombPeaks(dataset, fig=10)
_=plt.plot(peaks[0]['xbottom'], peaks[0]['ybottoml'], '+y', markersize=25)
peaks[0]<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup