X Tutup
Skip to content

Clean up stock sample data.#7645

Merged
NelleV merged 1 commit intomatplotlib:masterfrom
QuLogic:sample-data-cleanup
Jan 13, 2017
Merged

Clean up stock sample data.#7645
NelleV merged 1 commit intomatplotlib:masterfrom
QuLogic:sample-data-cleanup

Conversation

@QuLogic
Copy link
Copy Markdown
Member

@QuLogic QuLogic commented Dec 19, 2016

This is a followup to #7559 with the cleanup of the stock sample data that was taken out of there.

AAPL and INTC are no longer required without stock_demo.py, plus there are 3 copies of AAPL data. Convert datetime.date to np.datetime64 to increase portability of the files.

While using np.datetime64 in the NumPy files is more portable across Python versions, Matplotlib still really only supports datetime objects, so I've had to convert back after loading. This is a bit suboptimal (but not really worse than the existing setup), so now that we depend on NumPy 1.7 which has had a few improvements, it may be time to look into importing the np.datetime64 converter.

@QuLogic QuLogic added this to the 2.1 (next point release) milestone Dec 19, 2016
AAPL and INTC are no longer required without stock_demo.py, plus there
are 3 copies of AAPL data. Convert datetime.date to np.datetime64 to
increase portability of the files.
@QuLogic QuLogic force-pushed the sample-data-cleanup branch from 46d69a7 to 9ba1fd5 Compare December 27, 2016 01:26
Copy link
Copy Markdown
Member

@Kojoley Kojoley left a comment

Choose a reason for hiding this comment

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

Disclaimer: I've checked examples only on Py3.5

@NelleV NelleV changed the title Clean up stock sample data. [MRG+1] Clean up stock sample data. Dec 31, 2016
@codecov-io
Copy link
Copy Markdown

Current coverage is 62.16% (diff: 100%)

Merging #7645 into master will increase coverage by 0.09%

@@             master      #7645   diff @@
==========================================
  Files           174        174          
  Lines         56021      56664   +643   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits          34773      35225   +452   
- Misses        21248      21439   +191   
  Partials          0          0          

Powered by Codecov. Last update ab98852...9ba1fd5

@NelleV
Copy link
Copy Markdown
Member

NelleV commented Jan 13, 2017

Thanks for the clean up!
This looks good.

@NelleV NelleV merged commit b1f4820 into matplotlib:master Jan 13, 2017
@QuLogic QuLogic deleted the sample-data-cleanup branch January 13, 2017 01:40
@QuLogic QuLogic changed the title [MRG+1] Clean up stock sample data. Clean up stock sample data. Jan 13, 2017
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.

4 participants

X Tutup