Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix/make_rv #349

Merged
merged 6 commits into from
May 16, 2022
Merged

bugfix/make_rv #349

merged 6 commits into from
May 16, 2022

Conversation

Ksteeds
Copy link
Contributor

@Ksteeds Ksteeds commented May 12, 2022

rel_xcats bug uncovered.

@Ksteeds Ksteeds self-assigned this May 12, 2022
@Ksteeds
Copy link
Contributor Author

Ksteeds commented May 12, 2022

cids_eufx = ['CHF', 'HUF', 'NOK', 'PLN', 'RON', 'SEK'] # EUR benchmark

addendum = lambda s_1, s_2: s_1 + s_2

cry = ['EQCRR_NSA', 'FXCRR_NSA']
rel_xcats = ["vEUR", "vEUR"]
rel_xcats_add = list(map(addendum, cry, rel_xcats))

df_mrv = make_relative_value(df, xcats=cry, cids=cids_eufx, rel_xcats=rel_xcats_add)

@Ksteeds Ksteeds linked an issue May 12, 2022 that may be closed by this pull request
@Ksteeds
Copy link
Contributor Author

Ksteeds commented May 12, 2022

Updates to address bug #345.

Believe the issue is ascribed to a failure to include sufficient assert statements around 'rel_xcats' category.

@rsueppel rsueppel self-requested a review May 16, 2022 14:29
Copy link
Contributor

@rsueppel rsueppel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, maybe add more unit test on calculation

@rsueppel rsueppel merged commit 62d1ac0 into develop May 16, 2022
@lsimonsen lsimonsen deleted the bugfix/make_rv branch June 1, 2022 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make_relative_value + unit test for bloack of relative values
2 participants