diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/analytics/basket_index.py | 3 | ||||
| m--------- | python/pyisda | 0 |
2 files changed, 1 insertions, 2 deletions
diff --git a/python/analytics/basket_index.py b/python/analytics/basket_index.py index d595eef6..d340b531 100644 --- a/python/analytics/basket_index.py +++ b/python/analytics/basket_index.py @@ -12,9 +12,8 @@ from pandas.tseries.offsets import BDay def make_index(t, d, args): instance = t.__new__(t) - for k, v in d.items(): - setattr(instance, k, v) CreditIndex.__init__(instance, *args) + instance.__dict__.update(d) return instance class BasketIndex(CreditIndex): diff --git a/python/pyisda b/python/pyisda -Subproject 57155a1f81128e204b64c84853c70492264c391 +Subproject 87bce7a101ca0a411c86e39a0f3c6904824b172 |
