Skip to content

Commit c28732e

Browse files
authored
Merge pull request #1098 from wright-group/ddkohler-patch-1
Update _join.py
2 parents 364830a + 1fd8582 commit c28732e

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

WrightTools/data/_join.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,23 @@
2727
def join(
2828
datas, *, atol=None, rtol=None, name="join", parent=None, method="first", verbose=True
2929
) -> Data:
30-
"""Join a list of data objects together.
30+
"""Join a list of data objects into one data object.
31+
The underlying dataset arrays are merged.
3132
32-
Joined datas must have the same transformation applied.
33-
This transformation will define the array order for the joined dataset.
34-
All axes in the applied transformation must be a single variable,
35-
the result will have sorted numbers.
33+
Joined datas must have the same axes and axes order.
34+
The axes define the array structure for the joined dataset.
35+
As such, each axis must
36+
* map to a single Variable
37+
* 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)
38+
* be orthogonal to all other axes
3639
3740
Join does not perform any interpolation.
3841
For that, look to ``Data.map_variable`` or ``Data.heal``
3942
4043
Parameters
4144
----------
4245
datas : list of data or WrightTools.Collection
43-
The list or collection of data objects to join together.
46+
The list or collection of data objects to join together. Data must have matching axes.
4447
atol : numeric or list of numeric
4548
The absolute tolerance to use (in ``np.isclose``) to consider points overlapped.
4649
If given as a single number, applies to all axes.

0 commit comments

Comments
 (0)