pyepr.utils¶
Functions¶
|
|
|
Spin Operator Matricies. |
Turns a dictionary of lists into a list of dictionaries. |
|
Turns a list of dictionaries into a dictionary of lists. |
|
|
|
|
|
|
Generates the greatest common dividor on a list of floats |
|
Returns the value or axis of a parameter in microseconds |
|
Returns the value or axis of a parameter in nanoseconds |
|
Adds a phase shift to the data |
|
Add an ESEEM modulation to a time domain signal |
|
Module Contents¶
- pyepr.utils.sop(spins, comps)[source]¶
Spin Operator Matricies.
This function is ported from EasySpin (https://easyspin.org/easyspin/documentation/sop.html)
References:¶
[1] Stefan Stoll, Arthur Schweiger EasySpin, a comprehensive software package for spectral simulation and analysis in EPR J. Magn. Reson. 178(1), 42-55 (2006)
[2] Stefan Stoll, R. David Britt General and efficient simulation of pulse EPR spectra Phys. Chem. Chem. Phys. 11, 6614-6625 (2009)
- Parameters:
- spinslist
A list of each spin and its spin qunatum number
- compsstr
The type of spin operator matrix to create. Options are: x,y,z,+,-,e
- pyepr.utils.transpose_dict_of_list(d)[source]¶
Turns a dictionary of lists into a list of dictionaries.
- pyepr.utils.transpose_list_of_dicts(d)[source]¶
Turns a list of dictionaries into a dictionary of lists.
- pyepr.utils.gcd(values)[source]¶
Generates the greatest common dividor on a list of floats
- Parameters:
- valueslist
_description_
- Parameters:
values (list)
- pyepr.utils.val_in_us(Param, axis=True)[source]¶
Returns the value or axis of a parameter in microseconds
- Parameters:
- Paramautodeer.Parameter
The parameter to be converted
- Returns:
- float or numpy.ndarray
- pyepr.utils.val_in_ns(Param)[source]¶
Returns the value or axis of a parameter in nanoseconds
- Parameters:
- Paramautodeer.Parameter
The parameter to be converted
- Returns:
- float or numpy.ndarray
- pyepr.utils.add_phaseshift(data, phase)[source]¶
Adds a phase shift to the data
- Parameters:
- datanumpy.ndarray
The data to be phase shifted
- phasefloat
The phase shift in degrees
- Returns:
- numpy.ndarray