-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fix Economy/Plot - Does not read stored datasets properly #2112
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we not saving the names on one line? E.g.
│ Stored datasets: │
│ index : dxy │
│ index : jp_n225 │
Becomes:
│ Stored datasets: │
│ index : dxy, jp_n225 │
Makes it a lot more tidier. Other than that, all good with the changes.
don't know why, but that actually makes sense yes, pls check if it's ok now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I'd find that a bit strange. E.g. let's say I am looking at unemployment and the S&P 500. Then I decide.. but wait, what if I compare unemployment with inflation? Now I need to call both unemployment and inflation together to not lose my plot with unemployment. I feel like it handicaps the user a little bit. |
agreed, I'll try to change that to append datasets as well then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Well done :)
Description
This PR fixes #2089. The current help menu is not updating the stored datasets in at least two scenarios.
To solve this I added an helper method that builds the string at each
macro
,treasury
,fred
andindex
calls.Additionally, to keep the user updated the help menu is refreshed so
print_help()
was added after each one of the four command calls if feature flag for help on exit is on. Currently, 1 series at a time just the last one is stored. If user wants to have both he must load both at the same time, for example: index dxy jp_n225.The help description was updated in terminal and website to exclude -st flag, apparently it is not used anymore to store datasets.
How has this been tested?
macro -p RGDP RPUC
treasury 5y 10y
fred -p gdp CORESTICKM159SFRBATL
index dxy jp_n225
plot --y1 dxy --y2 jp_n225
plot --y1 Nominal_10-year --y2 United_States_RGDP
Checklist:
Others
pre-commit install
.pytest tests/...
.