mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-29 13:00:42 +08:00
MAINT: Remove default values from dump_treasury_curves.
We never call the function without passing them explicitly.
This commit is contained in:
1 parent
0bc96a772d
commit
854b6638b2
1 file changed
+3
-3
@@ -72,17 +72,17 @@ def get_cache_filepath(name):
|
||||
return os.path.join(cr, name)
|
||||
|
||||
|
||||
def dump_treasury_curves(module='treasuries', filename='treasury_curves.csv'):
|
||||
def dump_treasury_curves(module_name, filename):
|
||||
"""
|
||||
Dumps data to be used with zipline.
|
||||
|
||||
Puts source treasury and data into zipline.
|
||||
"""
|
||||
try:
|
||||
m = importlib.import_module("." + module, package='zipline.data')
|
||||
m = importlib.import_module("." + module_name, package='zipline.data')
|
||||
except ImportError:
|
||||
raise NotImplementedError(
|
||||
'Treasury curve {0} module not implemented'.format(module))
|
||||
'Treasury curve {0} module not implemented'.format(module_name))
|
||||
|
||||
tr_data = {}
|
||||
|
||||
|
||||
Reference in new issue
Block a user