weldx.utilΒΆ

Contains package internal utility functions.

Classes

WeldxAccessor

Custom accessor for extending DataArray functionality.

Functions

get_time_union

Generate a merged union of pandas.DatetimeIndex from list of inputs.

inherit_docstrings

Inherits (public) docstrings from parent classes.

is_column_in_matrix

Check if a column (1d array) can be found inside of a matrix.

is_row_in_matrix

Check if a row (1d array) can be found inside of a matrix.

lcs_coords_from_ts

Create translation coordinates from a TimeSeries at specific timesteps.

mat_vec_mul

Matrix, Vector multiplication using matmul with newaxis for correct broadcasting.

matrix_is_close

Check if a matrix is close or equal to another matrix.

pandas_time_delta_to_quantity

Convert a pandas.TimedeltaIndex into a corresponding pint.Quantity.

sine

Create a simple sine TimeSeries from quantity parameters.

swap_list_items

Swap position of two items in a list.

to_float_array

Cast the passed container to a numpy array of floats.

to_list

Store the passed variable into a list and return it.

to_pandas_time_index

Convert a time variable to the corresponding pandas time index type.

triangulate_geometry

Stack geometry data and add simple triangulation.

ureg_check_class

Decorate class __init__ function with pint.UnitRegistry.check.

vector_is_close

Check if a vector is close or equal to another vector.

xr_3d_matrix

Create an xarray 3d matrix with correctly named dimensions and coordinates.

xr_3d_vector

Create an xarray 3d vector with correctly named dimensions and coordinates.

xr_check_coords

Validate the coordinates of the DataArray against a reference dictionary.

xr_fill_all

Fill NaN values along all dimensions in xarray DataArray.

xr_interp_coordinates_in_time

Interpolate an xarray DataArray that represents 3d coordinates in time.

xr_interp_like

Interpolate DataArray along dimensions of another DataArray.

xr_interp_orientation_in_time

Interpolate an xarray DataArray that represents orientation data in time.

xr_is_orthogonal_matrix

Check if matrix along specific dimensions in a DataArray is orthogonal.

xr_matmul

Calculate broadcasted np.matmul(a,b) for xarray objects.

xr_transpose_matrix_data

Transpose data along two dimensions in an xarray DataArray.