Skip to content

Releases: gioarma/mylib

v1.0.0

14 Dec 15:51

Choose a tag to compare

  • ENHANCEMENTS

    • Now the t1 values can be created inside the picts_2gates and picts_4gates functions by passing directly the new t1_min, t1_shift and n_windows parameters. It is still possible to enter manual values of t1 by the usual t1 parameter.

    • [BACKWARD INCOMPATIBLE] picts_2gates will now output a DataFrame with the picts signal and and a 2d np.array with both t1 and t2 values, like picts_4gates already did. Before, it outputted a 1D numpy array containinf only t2, so this will give errors in all plots of transients with en_visualization on.

    • [BACKWARD INCOMPATIBLE] plot_transients does not accept anymore the t1 and t2 parameters, which have been replaced by the more general gates parameter.

    • [BACKWARD INCOMPATIBLE] In plot_transients the en_visualization parameter has been removed. The en visialization is performed automatically if the gates parameter is passed to the function.

    • Updated the save_arrhenius function to take arr argument in form of a tuple so that it can take directly the tuple outputted by arrhenius_fit. It is still possible to pass singularly a dataframe/list of dataframes as arr argument. trap_params argument is now optional, since by default now one should pass the whole tuple returned by arrhenius_fit, which also contains the parameters.

    • The plot_transients function has a new t_2gates parameter which is supposed to be exactly the 2d np.array containing the gate positions outputed by picts_2gates. It is still possible to manually enter t1 and t2 gate positions.

    • The fit_window parameter in arrhenius_fit can now be a dictionary, with the keys equal to the trap names indicated in T_traps. So it is possible to define a different fit_window for each peak in the spectrum.

    • Introduced a new exclude_en parameter in arrhenius_fit which 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 in T_traps. In this way, one can select different sets of rate windows for different peaks in the spectrum.

    • Introduced the new plot_all function, 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 by picts_2gates/picts_4gates and by arrhenius_fit.

    • Introduced the new plot_arrhenius function to plot singularly the arrhenius plots with already the correct xlabel and ylabel.

    • Created a new Examples folder 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 of beta*t1.