WrightTools.kit module
General-purpose tool kit.
|
Handle communication with an INI file. |
|
Spline. |
|
Class for representing a moment in time. |
|
Context manager for timing code. |
|
Find the pair of indices corresponding to the closest elements in an array. |
|
Take the numerical derivative of a 1D array. |
|
Discover the dimensions of a flattened multidimensional array. |
|
Reduce a boolean mask to fit a given shape. |
|
Compute a discrete Fourier Transform along one axis of an N-dimensional array and also compute the 1D frequency coordinates of the transform. |
|
Flatten an irregular sequence. |
|
Calculate the fluence of a beam. |
|
Find the index of an item, given either the item or index as an argument. |
|
Non-recursive search for path to the folder "name". |
|
Return a list of all files matching specified inputs. |
|
Put value between each existing item in list. |
|
Given a set of arrays, return the joint shape. |
|
Conveniently call scipy.optmize.leastsq(). |
|
Reduce a boolean mask, removing all false slices in any dimension. |
|
Calculate the resolution of a monochromator. |
|
Given a center and width, in energy units, get back a width in nm. |
|
Determine if a set of arrays are orthogonal. |
|
s -> (s0,s1), (s1,s2), (s2, s3), ... |
|
Remove nans in a set of 1D arrays. |
|
Take a list of nD arrays and return a new list of nD arrays. |
|
Smooth 1D data using a window function. |
|
Turn a string into a valid python identifier. |
|
Singular Value Decomposition. |
|
Compute the 'symmetric' square root: sign(x) * sqrt(abs(x)). |
|
Generate a Timestamp object from a RFC3339 formatted string. |
|
Return unique elements in 1D array, within tolerance. |
|
Get a valid index for a broadcastable shape. |
|
Zoom a 2D array, with axes. |