From d0544a658155a6026eb6eb7a2ed052131929d17e Mon Sep 17 00:00:00 2001 From: Andrew Daniels Date: Fri, 16 Dec 2016 16:05:21 -0500 Subject: [PATCH] MAINT: Define default end_date in assets.db as max int64, for clarity --- zipline/assets/asset_writer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zipline/assets/asset_writer.py b/zipline/assets/asset_writer.py index b2cb38f4..615c9a5c 100644 --- a/zipline/assets/asset_writer.py +++ b/zipline/assets/asset_writer.py @@ -66,7 +66,7 @@ _equities_defaults = { 'symbol': None, 'asset_name': None, 'start_date': 0, - 'end_date': 2 ** 62 - 1, + 'end_date': np.iinfo(np.int64).max, 'first_traded': None, 'auto_close_date': None, # the canonical exchange name, like "NYSE" @@ -81,7 +81,7 @@ _futures_defaults = { 'root_symbol': None, 'asset_name': None, 'start_date': 0, - 'end_date': 2 ** 62 - 1, + 'end_date': np.iinfo(np.int64).max, 'first_traded': None, 'exchange': None, 'notice_date': None, @@ -110,7 +110,7 @@ _equity_supplementary_mappings_defaults = { 'value': None, 'field': None, 'start_date': 0, - 'end_date': 2 ** 62 - 1, + 'end_date': np.iinfo(np.int64).max, }