Skip to content

Commit

Permalink
Merge pull request #1098 from wright-group/ddkohler-patch-1
Browse files Browse the repository at this point in the history
Update _join.py
  • Loading branch information
kameyer226 committed Sep 21, 2022
2 parents 364830a + 1fd8582 commit c28732e
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions WrightTools/data/_join.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,23 @@
def join(
datas, *, atol=None, rtol=None, name="join", parent=None, method="first", verbose=True
) -> Data:
"""Join a list of data objects together.
"""Join a list of data objects into one data object.
The underlying dataset arrays are merged.
Joined datas must have the same transformation applied.
This transformation will define the array order for the joined dataset.
All axes in the applied transformation must be a single variable,
the result will have sorted numbers.
Joined datas must have the same axes and axes order.
The axes define the array structure for the joined dataset.
As such, each axis must
* map to a single Variable
* project along one or no dimension of the data shape (i.e. axis shapes should have no more than one dimension with shape greater than 1)
* be orthogonal to all other axes
Join does not perform any interpolation.
For that, look to ``Data.map_variable`` or ``Data.heal``
Parameters
----------
datas : list of data or WrightTools.Collection
The list or collection of data objects to join together.
The list or collection of data objects to join together. Data must have matching axes.
atol : numeric or list of numeric
The absolute tolerance to use (in ``np.isclose``) to consider points overlapped.
If given as a single number, applies to all axes.
Expand Down

0 comments on commit c28732e

Please sign in to comment.