Skip to content

BUG: don't propagate subtypes from np.where - #5105

Merged
charris merged 1 commit into
numpy:masterfrom
juliantaylor:where-no-subtype
Sep 23, 2014
Merged

charris merged 1 commit into
numpy:masterfrom
juliantaylor:where-no-subtype

Conversation

@juliantaylor

Copy link
Copy Markdown
Contributor

the C implementation cannot preserve subclass attributes, this needs a
python wrapper using indexing for subclasses.
closes gh-5095

@juliantaylor

Copy link
Copy Markdown
Contributor Author

rebased for backport

supporting subclasses should be possibly and I'll probably do so, so no tests

the C implementation cannot preserve subclass attributes, this needs a
python wrapper using indexing for subclasses.
closes numpygh-5095
@juliantaylor juliantaylor changed the title BUG: don't propagte subtypes from np.where BUG: don't propagate subtypes from np.where Sep 23, 2014
@charris

charris commented Sep 23, 2014

Copy link
Copy Markdown
Member

LGTM pending travis. I've wondered if the iterator works correctly with subtypes.

charris added a commit that referenced this pull request Sep 23, 2014
BUG: don't propagate subtypes from np.where
@charris
charris merged commit 04d507f into numpy:master Sep 23, 2014
juliantaylor added a commit that referenced this pull request Sep 23, 2014
BUG: don't propagate subtypes from np.where
@juliantaylor
juliantaylor deleted the where-no-subtype branch September 23, 2014 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG np.where half-initializes subclass of output

2 participants