Skip to content

have ArrayDataSource.get_data return empty(shape=0,)), not 0.0 if _data is None#578

Merged
aaronayres35 merged 4 commits into
masterfrom
ArrayDataSource-empty-arr-default
Apr 13, 2021
Merged

have ArrayDataSource.get_data return empty(shape=0,)), not 0.0 if _data is None#578
aaronayres35 merged 4 commits into
masterfrom
ArrayDataSource-empty-arr-default

Conversation

@aaronayres35
Copy link
Copy Markdown
Contributor

closes #255

This PR makes ArrayDataSource.get_data return empty(shape=0,)) not 0.0 if _data is None.

Note this is a potentially breaking change if code depended on getting 0.0 by default

@rahulporuri rahulporuri self-requested a review March 19, 2021 12:25
Copy link
Copy Markdown
Contributor

@rahulporuri rahulporuri left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread chaco/array_data_source.py Outdated
@rahulporuri
Copy link
Copy Markdown
Contributor

@aaronayres35 looks like you'll have to merge master in after you merge the github actions PR.

@aaronayres35 aaronayres35 merged commit 2671f64 into master Apr 13, 2021
@aaronayres35 aaronayres35 deleted the ArrayDataSource-empty-arr-default branch April 13, 2021 13:37
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.

ArrayDataSource get_data() returns scalar 0.0 when _data is None

2 participants