epraya.Seek#

Seek(field=None, counts=None)#

Function for data loading and initial analysis, based on tkinter. Can be use as Seek() or adding the field and counts values.

Includes sliders to changes the magnetic field values, its baseline and the integral baseline. The number of rows, the columns where the data is stored and the filter parameters (window lenght and polynomial order) can also be change, seeing it’s effect directly on the plots.

Plots can be zoom in by doing double-click in the graph.

Parameters:
  • field (np.araray) – Array of the magnetic field values.

  • counts (np.array) – Array of the spectrum values.

Returns:

Sdat (list) – List that includes the array of the magnetic field values and the filtred spectrum.

Example

import epraya as epr
Dat=epr.Seek()
print(Dat)
(array([327.498168, 327.505494, 327.51282 , ..., 342.457876, 342.465202,
342.472528], shape=(2045,)),
array([ 3.38813179e-21, -7.13359522e-09, -1.36298719e-08, ...,
-8.12513956e-09, -4.26787101e-09,  3.38813179e-21], shape=(2045,)))
Plot of the seek function.