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

Issue #154: "perform_backtest": "false" has no effect #174

Merged
merged 1 commit into from
Feb 4, 2024

Conversation

davidusb-geek
Copy link
Owner

No description provided.

@davidusb-geek davidusb-geek changed the title Addeed more tests but passing correctly Issue #154: "perform_backtest": "false" has no effect Feb 3, 2024
Copy link

codecov bot commented Feb 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d37aac3) 89.96% compared to head (6db8415) 89.96%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #174   +/-   ##
=======================================
  Coverage   89.96%   89.96%           
=======================================
  Files           6        6           
  Lines        1644     1644           
=======================================
  Hits         1479     1479           
  Misses        165      165           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@davidusb-geek
Copy link
Owner Author

Hi @GeoDerp .
Will it be possible for you to check this?
This is related to #154.
I'm able to reproduce the issue by just summoning:

curl -i -H "Content-Type:application/json" -X POST -d '{"perform_backtest": "False"}' http://localhost:5000/action/forecast-model-fit

Which don't take the passed perform_backtest=False and performs the back-testing nevertheless

@davidusb-geek
Copy link
Owner Author

I added some tests to aid debug this in this PR but tests are passsing correctly

@GeoDerp
Copy link
Contributor

GeoDerp commented Feb 3, 2024

I'll see if I can have a look tomorrow (it's 1am currently)

@GeoDerp
Copy link
Contributor

GeoDerp commented Feb 3, 2024

I wonder if it's something dumb like:

curl -i -H "Content-Type:application/json" -X POST -d '{"perform_backtest": "false"}' http://localhost:5000/action/forecast-model-fit

Or

curl -i -H "Content-Type:application/json" -X POST -d '{"perform_backtest": False}' http://localhost:5000/action/forecast-model-fit

@davidusb-geek
Copy link
Owner Author

I've just tested this:

curl -i -H "Content-Type:application/json" -X POST -d '{"perform_backtest": "false"}' http://localhost:5000/action/forecast-model-fit

And still using the "perform_backtest": "true".

This one:

curl -i -H "Content-Type:application/json" -X POST -d '{"perform_backtest": False}' http://localhost:5000/action/forecast-model-fit

just exists as bad request

@GeoDerp
Copy link
Contributor

GeoDerp commented Feb 4, 2024

I think its the:

Needs to be:

if perform_backtest is True:

for some reason.

@davidusb-geek
Copy link
Owner Author

I think its the:

Needs to be:

if perform_backtest is True:

for some reason.

This is very strage. That is basic Python, I don't see how could that not work.
But I will test it with your PR.

@davidusb-geek davidusb-geek merged commit 87d01e2 into master Feb 4, 2024
13 checks passed
@GeoDerp GeoDerp mentioned this pull request Feb 4, 2024
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.

2 participants