Scott Sanderson
09cc54e08a
ENH: Improve error message on bad return.
2017-06-07 17:07:19 -04:00
Scott Sanderson
709735de51
TEST: Test map returning None.
2017-06-07 15:28:15 -04:00
Scott Sanderson
3ed396b08c
MAINT: s/NotImplementedError/TypeError.
2017-06-07 15:23:27 -04:00
Scott Sanderson
6bb31b2544
TEST: Test map ignores missing with None.
2017-06-07 14:16:17 -04:00
Scott Sanderson
5b9d5fecfb
ENH: Add relabel method to string classifiers.
...
- Adds a `map` method to `LabelArray` that maps a unary function over
the categories of a LabelArray, shrinking the underyling codes if
possible.
- Adds a new `.relabel` method to string-dtype classifiers that maps a
unary function over the unique elements of the underlying LabelArray.
This is useful for things like cleaning noisy label data.
2017-06-07 13:14:12 -04:00
Scott Sanderson
15a0b05681
MAINT: Add validator to validate_column.
...
Who validates the validators?
2017-06-07 11:50:37 -04:00
Scott Sanderson
ae97d97920
MAINT: Simplify ArrayPredicate.
...
Just use `params` instead of custom `_init` and `_static_identity`.
2017-06-07 11:49:37 -04:00
Freddie Vargus
cabe0b691c
Merge pull request #1812 from quantopian/google-finance-for-benchmarking
...
BUG/MAINT: Switch over to Google for benchmarking
2017-06-05 12:09:55 -04:00
Freddie Vargus
a12c34c39c
MAINT: Skip more rows to match change in treasury data format
...
I'm not sure what the raw csv pulled from the federal reserve looked like before, but when trying to download fresh treasure data (data not stored in `./zipline`), there is an error that says "Time Period not in list". After checking the raw csv now, it looks like there are 5 header rows rather than just 1, so skipping those rows removes that error.
2017-06-05 11:44:01 -04:00
Ana Ruelas
30813860f5
Merge pull request #1811 from quantopian/run-chunked-pipeline
...
Run chunked pipeline
2017-06-02 17:29:15 -04:00
Ana Ruelas
6b19e45db4
ENH: Use context manager to suppress nan-categorical warning
2017-06-02 16:48:26 -04:00
Ana Ruelas
69d1269fc4
ENH: Include sharedoc function
2017-06-02 16:48:26 -04:00
Ana Ruelas
a88df2be0d
ENH: Add run_chunked_pipeline method to PipelineEngine
2017-06-02 16:48:09 -04:00
Ana Ruelas
bdd1f158a3
ENH: Add function for running pipelines in chunks
2017-06-02 16:47:55 -04:00
Ana Ruelas
897de69a2c
ENH: Add function to concatenate list of dataframes with categoricals
...
STY: Alphabetized import list
2017-06-02 16:47:37 -04:00
Miguel Sánchez de León Peque
c03bed30b6
Add missing Python 3.5 references (now supported)
...
Add this version to the Conda build matrix and to the setup.py file.
2017-06-02 16:47:36 -04:00
Freddie Vargus
7a6f45b971
TST: Change start date to fit benchmark start date
2017-06-01 23:35:11 -04:00
Freddie Vargus
f957545e47
TST: Sort test examples to debug more easily
2017-06-01 23:35:11 -04:00
Freddie Vargus
776677fcdf
BUG/MAINT: Switch over to Google for benchmarking
...
MAINT: Remove mentions of Yahoo & ^GSPC
MAINT: Fill in missing dates
MAINT/BLD: Rebuild example data to match new benchmark
2017-06-01 23:35:10 -04:00
Freddie Vargus
9fe8076bbc
Merge pull request #1809 from Peque/py35
...
BLD: Add some missing Python 3.5 references
2017-05-28 21:37:14 -04:00
Freddie Vargus
77235a6eaa
MAINT: Remove label=omit from treasury link
...
MAINT: Switch to https
2017-05-26 13:57:51 -04:00
Eddie Hebert
c1280daaa3
MAINT: Remove environment as an argument to benchmark source. ( #1816 )
...
MAINT: Remove environment as an argument to benchmark source.
To allow the BenchmarkSource class to be more easily used in contexts other than
a TradingAlgorithm, remove the TradingEnvironment as an argument to the
benchmark source.
Instead:
- Pass a benchmark Asset, instead of a bencmark sid; so that the asset_finder
does not need to be passed to the benchmark source.
- Pass the pre-calculated benchmark_returns instead of an env,
which contains the benchmark_returns; a consumer can let the benchmark_returns
stay as the default of `None` when using an asset.
We may want to further refactor and make two different classes, instead of
relying on a combination of existence/non-existence of benchmark_asset and
benchmark_returns. That refactoring should be easier to do with this change.
2017-05-25 16:11:25 -04:00
Samantha Klonaris
a3fe687b15
Merge pull request #1815 from quantopian/get-array-benchmark-source
...
ENH: Add get_range to BenchmarkSource
2017-05-25 10:51:48 -04:00
Samantha Klonaris
655bf0f4cb
ENH: Add get_range to BenchmarkSource
2017-05-25 10:14:40 -04:00
Freddie Vargus
0a481d4d6c
BLD: Modify conda label for Travis CI ( #1814 )
...
* BLD: Modify conda label for Travis CI
We've been unnecessarily building packages that are already in the ci channel because conda build isn't respecting the full URL for that channel when using --skip-existing. We updated it to be just the name of the channel.
2017-05-24 22:37:03 -04:00
Freddie Vargus
a5ec24e006
BLD: Swap conda build args to check CI label/channel first
...
BLD: Change url to just channel/label path
2017-05-24 19:44:37 -04:00
David Michalowicz
d760a84468
Merge pull request #1788 from quantopian/rounding-cutoff-2
...
Do not explicitly round asset prices
2017-05-24 11:30:00 -04:00
dmichalowicz
41aa212617
BUG: Some futures prices need more precision when rounding
2017-05-24 08:18:52 -04:00
Freddie Vargus
28060bf11f
Merge pull request #1806 from ChrisPappalardo/pycon2017_sprints_docker
...
DOC: Add instructions for common Docker build failures
2017-05-23 17:05:12 -07:00
Andrew Liang
d4054f7522
Merge pull request #1782 from quantopian/no_slippage_comparison
...
MAINT: Remove __eq__ implementation from slippage
2017-05-23 15:39:36 -04:00
cap
688d29716a
updated dockerfiles with instructions for dealing with common build failures and updated base image from python 2.7 to 3.5
2017-05-23 09:57:25 -07:00
Miguel Sánchez de León Peque
a219e9910e
Add missing Python 3.5 references (now supported)
...
Add this version to the Conda build matrix and to the setup.py file.
2017-05-23 09:39:21 +02:00
Andrew Liang
a382dda034
MAINT: Remove __eq__ implementation from slippage
2017-05-22 23:00:24 -04:00
Scott Sanderson
beba243e2e
Merge pull request #1802 from Peque/calendar_bug
...
Fix bug in TradingCalendar initialization
2017-05-22 16:47:51 -07:00
Freddie Vargus
c6fa1cad2e
Merge pull request #1701 from quantopian/py35-support
...
BLD: Update CI files for py35
2017-05-22 14:48:35 -07:00
Freddie Vargus
c4a50eda82
DOC: Update beginner tutorial
2017-05-22 12:56:10 -07:00
Miguel Sánchez de León Peque
64f991b400
Fix bug in TradingCalendar initialization
...
A TypeError exception was raised with message "Cannot join tz-naive with
tz-aware DatetimeIndex". Removing old unnecessary workaround in
`holidays_at_time` function (Pandas already fixed that before 0.18)
fixes this issue.
2017-05-22 13:27:01 +02:00
Freddie Vargus
c2e011440e
MAINT: Remove .bumpversion.cfg because we haven't used it lately
2017-05-21 11:32:08 -07:00
Ana Ruelas
4c3074c368
Merge pull request #1798 from quantopian/with-equity-pipeline-engine
...
With equity pipeline engine
2017-05-19 10:48:15 -04:00
Ana Ruelas
dbf037e1d3
ENH: Add WithEquityPricingPipelineEngine test fixture
2017-05-19 10:04:30 -04:00
Scott Sanderson
5115b14557
Merge pull request #1794 from Peque/peque
...
Fix docstring in TradingEnvironment class
2017-05-19 05:52:56 -07:00
Richard Frank
be8ea7c54c
Merge pull request #1793 from quantopian/tests-without-yahoo
...
TST: Don't require downloading of data for tests
2017-05-18 13:27:08 -04:00
Richard Frank
8734224701
TST: Use testing market data with run_algorithm
...
so env doesn't need to download it
2017-05-18 12:54:06 -04:00
Richard Frank
3ca5a15859
TST: Use fixture's data with tmp_trading_env
...
instead of env needing to download it
2017-05-18 12:54:05 -04:00
Richard Frank
955862b4b3
TST: Use fixture's trading env for FakeDataPortal or TradingAlgo
...
to avoid a new trading env needing to download data unnecessarily
2017-05-18 11:55:48 -04:00
Miguel Sánchez de León Peque
60f04b7345
Fix docstring in TradingEnvironment class
2017-05-17 18:42:36 +02:00
Freddie Vargus
ecd86aa799
BLD: Update CI files for py35
...
BLD: Move setuptools_scm recipe earlier
in build process. We order alphabetically.
BLD: Update to newest Cython version
BLD: Update version of matplotlib
BLD: Pin matplotlib dependency
2017-05-16 15:33:27 -04:00
Scott Sanderson
ca26208569
Merge pull request #1791 from quantopian/cleanup-latest-flake8
...
MAINT/STY: Upgrade flake8 and fix new failures.
2017-05-15 11:39:51 -07:00
Scott Sanderson
22df0a9cb9
MAINT/STY: Upgrade flake8 and fix new failures.
2017-05-15 11:45:04 -04:00
David Michalowicz
2b292c4e25
Merge pull request #1789 from quantopian/more-commission-cleanup
...
Refactor commission model class hierarchies
2017-05-12 13:55:39 -04:00