Releases: gioarma/mylib
v1.0.0
-
ENHANCEMENTS
-
Now the
t1values can be created inside thepicts_2gatesandpicts_4gatesfunctions by passing directly the newt1_min,t1_shiftandn_windowsparameters. It is still possible to enter manual values oft1by the usualt1parameter. -
[BACKWARD INCOMPATIBLE]
picts_2gateswill now output a DataFrame with the picts signal and and a 2d np.array with botht1andt2values, likepicts_4gatesalready did. Before, it outputted a 1D numpy array containinf onlyt2, so this will give errors in all plots of transients withen_visualizationon. -
[BACKWARD INCOMPATIBLE]
plot_transientsdoes not accept anymore thet1andt2parameters, which have been replaced by the more generalgatesparameter. -
[BACKWARD INCOMPATIBLE] In
plot_transientstheen_visualizationparameter has been removed. The en visialization is performed automatically if thegatesparameter is passed to the function. -
Updated the
save_arrheniusfunction to takearrargument in form of a tuple so that it can take directly the tuple outputted byarrhenius_fit. It is still possible to pass singularly a dataframe/list of dataframes asarrargument.trap_paramsargument is now optional, since by default now one should pass the whole tuple returned byarrhenius_fit, which also contains the parameters. -
The
plot_transientsfunction has a newt_2gatesparameter which is supposed to be exactly the 2dnp.arraycontaining the gate positions outputed bypicts_2gates. It is still possible to manually entert1andt2gate positions. -
The
fit_windowparameter inarrhenius_fitcan now be a dictionary, with the keys equal to the trap names indicated inT_traps. So it is possible to define a differentfit_windowfor each peak in the spectrum. -
Introduced a new
exclude_enparameter inarrhenius_fitwhich allows to select which rate windows to exclude from the gaussian fit to get the arrhenius plot. It can be either a list of values or a dictionary of lists, where the keys are the trap names indicated inT_traps. In this way, one can select different sets of rate windows for different peaks in the spectrum. -
Introduced the new
plot_allfunction, which displays a panel with the PICTS spectra, the transients+rate window visualization, the arrhenius fits and the trap parameters obtained from the fit. It accepts the tuples outputed bypicts_2gates/picts_4gatesand byarrhenius_fit. -
Introduced the new
plot_arrheniusfunction to plot singularly the arrhenius plots with already the correctxlabelandylabel. -
Created a new
Examplesfolder that can contain examples on how to use the code. Added to this folder an example on how to use the PICTS library in the most efficient way.
-
-
BUG FIXES
- [BACKWARD INCOMPATIBLE] In picts_4gates it was corrected the calculation of the t3 gate which was erroneously defined as
beta*t2, instead ofbeta*t1.
- [BACKWARD INCOMPATIBLE] In picts_4gates it was corrected the calculation of the t3 gate which was erroneously defined as