Skip to content

Commit

Permalink
Merge pull request #210 from adkinsrs/master
Browse files Browse the repository at this point in the history
Change to allow grouping order to be preserved
  • Loading branch information
davidsebfischer authored Nov 24, 2021
2 parents b8c6ae0 + 0464d2a commit 12f1286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diffxpy/testing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def parse_grouping(data, sample_description, grouping):

def split_x(data, grouping):
grouping = np.asarray(grouping)
groups = np.unique(grouping)
groups = pd.Series(grouping).unique()
x0 = data[np.where(grouping == groups[0])[0]]
x1 = data[np.where(grouping == groups[1])[0]]
return x0, x1
Expand Down

0 comments on commit 12f1286

Please sign in to comment.