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

Fixes#355: [Pdr acc] CORS, Debug Mode, the first day issue on the calculation #358

Merged
merged 24 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
mypy issues
  • Loading branch information
kdetry committed Oct 31, 2023
commit 2f4c5f68d73706fd89525743205d0d60cbaa1e67
3 changes: 3 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,6 @@ ignore_missing_imports = True

[mypy-pdr_backend.predictoor.examples.*]
ignore_missing_imports = True

[mypy-flask.*]
ignore_missing_imports = True
2 changes: 1 addition & 1 deletion pdr_backend/accuracy/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
get_all_contracts,
FilterMode,
)
from utils.get_start_end_params import get_start_end_params
from pdr_backend.accuracy.utils.get_start_end_params import get_start_end_params

app = Flask(__name__)
JSON_FILE_PATH = "pdr_backend/accuracy/output/predictions_data.json"
Expand Down
2 changes: 1 addition & 1 deletion pdr_backend/util/predictoor_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def get_pure_stats(all_predictions: List[Prediction]):
stats = {"pair_timeframe": {}, "predictoor": {}}
stats: dict[str, dict] = {"pair_timeframe": {}, "predictoor": {}}
correct_predictions = 0

for prediction in all_predictions:
Expand Down
51 changes: 0 additions & 51 deletions pdr_backend/util/test/test_csvs.py

This file was deleted.

62 changes: 0 additions & 62 deletions pdr_backend/util/test/test_subgraph_predictions.py

This file was deleted.

3 changes: 1 addition & 2 deletions scripts/get_predictoor_info.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import sys
from pdr_backend.util.csvs import write_csv
from pdr_backend.util.predictoor_stats import get_cli_statistics
from pdr_backend.util.subgraph_predictions import get_all_predictions
from pdr_backend.accuracy.utils.filter_mode import FilterMode
from pdr_backend.util.subgraph_predictions import get_all_predictions, FilterMode
from pdr_backend.predictoor.approach3.timeutil import timestr_to_ut

if __name__ == "__main__":
Expand Down
Loading