MAINT: Remove default values from dump_treasury_curves.

We never call the function without passing them explicitly.
This commit is contained in:
Scott Sanderson
2015-10-25 16:37:59 -04:00
parent 0bc96a772d
commit 854b6638b2
+3 -3
View File
@@ -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 = {}