optoanalysis.thermo package¶
optoanalysis.thermo.thermo module¶
-
class
optoanalysis.thermo.thermo.
ThermoObject
(filepath, RelativeChannelNo=None, SampleFreq=None, NumberOfChannels=None, PointsToLoad=-1, calcPSD=True, NPerSegmentPSD=1000000, NormaliseByMonitorOutput=False)[source]¶ Bases:
optoanalysis.optoanalysis.DataObject
Creates an object containing some data and all it’s properties for thermodynamics analysis.
Attributes: - SampleFreq : float
The sample frequency used in generating the data.
- time : ndarray
Contains the time data in seconds
- voltage : ndarray
Contains the voltage data in Volts - with noise and clean signals all added together
- SampleFreq : sample frequency used to sample the data (when it was
taken by the oscilloscope)
- freqs : ndarray
Contains the frequencies corresponding to the PSD (Pulse Spectral Density)
- PSD : ndarray
Contains the values for the PSD (Pulse Spectral Density) as calculated at each frequency contained in freqs
-
calc_hamiltonian
= <MagicMock name='mock()' id='140300074248336'>¶
-
calc_mean_and_variance_of_variances
(NumberOfOscillations)[source]¶ Calculates the mean and variance of a set of varainces. This set is obtained by splitting the timetrace into chunks of points with a length of NumberOfOscillations oscillations.
Parameters: - NumberOfOscillations : int
The number of oscillations each chunk of the timetrace used to calculate the variance should contain.
Returns: - Mean : float
- Variance : float
-
calc_phase_space_density
= <MagicMock name='mock()' id='140300074248336'>¶
-
extract_thermodynamic_quantities
= <MagicMock name='mock()' id='140300074248336'>¶