Skip to content
This repository was archived by the owner on Jul 15, 2021. It is now read-only.

Inplace - #12

Merged
mschrimpf merged 11 commits into
masterfrom
inplace
Nov 9, 2020
Merged

mschrimpf merged 11 commits into
masterfrom
inplace

Conversation

@jjpr-mit

@jjpr-mit jjpr-mit commented Nov 5, 2020

Copy link
Copy Markdown

No description provided.

Jonathan Prescott-Roy added 6 commits October 21, 2020 15:07
… using inplace. This version of split_group_coords is failing tests, however.
…ing multi_groupby with a single coordinate, which is not what it's made for. Have changed it to raise ValueError, but maybe the right thing is to hand it off to regular groupby in that case. Added a test to actually test multi_groupby functionality, but it's failing.

@mschrimpf mschrimpf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments would be helpful to explain why certain things are necessary (e.g. __new__ and __slots__).
Also it looks like multi_groupby tests have been changed to expect a ValueError instead of passing?

Comment thread brainio_base/assemblies.py Resolved
Comment thread brainio_base/assemblies.py Resolved
Comment thread brainio_base/assemblies.py Resolved
Comment thread tests/test_assemblies.py Outdated
Comment on lines +52 to +44
coords={'a': ['a', 'a', 'b', 'b'],
coords={'a': ['alpha', 'alpha', 'beta', 'beta'],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if these change, the ones below (assert g.equals(...)) should also change no? (this test is skipped)

@mschrimpf mschrimpf Nov 5, 2020 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's just delete this test, it's dead code at this point since it's skipped

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted. I tried making a function to produce DataArrays with more typical coordinates. I'll remove it if it's gross.

Comment thread tests/test_assemblies.py Resolved
@jjpr-mit
jjpr-mit requested a review from mschrimpf November 9, 2020 18:32
@mschrimpf
mschrimpf merged commit 8e09a54 into master Nov 9, 2020
@mschrimpf
mschrimpf deleted the inplace branch November 10, 2020 14:27
mschrimpf added a commit that referenced this pull request Nov 11, 2020
This reverts commit 8e09a54.
@mschrimpf mschrimpf mentioned this pull request Nov 11, 2020
mschrimpf added a commit that referenced this pull request Nov 11, 2020
jjpr-mit pushed a commit that referenced this pull request Dec 4, 2020
* master:
  Revert "Inplace (#12)" (#13)

# Conflicts:
#	brainio_base/assemblies.py
#	tests/test_assemblies.py
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants