Skip to content

Commit

Permalink
Fix kaggle submission
Browse files Browse the repository at this point in the history
  • Loading branch information
amacati committed Oct 20, 2024
1 parent 7fa2a74 commit 5f0c2bc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/kaggle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- master
- main
- dev
workflow_dispatch:


Expand Down Expand Up @@ -35,6 +36,7 @@ jobs:
cd pycffirmware
git submodule update --init --recursive
./wrapper/build_linux.sh
shell: micromamba-shell {0}
- name: Run simulation tests
run: python scripts/kaggle.py
shell: micromamba-shell {0}
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ rl = ["stable-baselines3"]
[tool.setuptools.packages]
find = {}

[tool.setuptools.package-data]
lsy_drone_racing = [
"sim/assets/*.dae",
"sim/assets/*.urdf",
]

[tool.pytest.ini_options]
markers = ["unit", "integration"]

Expand Down
3 changes: 1 addition & 2 deletions scripts/kaggle.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
Please do not alter this script or ask the course supervisors first!
"""


import logging
from pathlib import Path

Expand All @@ -31,7 +30,7 @@ def main():
logger.info("All runs completed successfully!")

# Abort if more than half of the runs failed
if len(failed) > n_runs / 2:
if len(failed) >= n_runs: # / 2:
logger.error("More than 50% of all runs failed! Aborting submission.")
raise RuntimeError("Too many runs failed!")

Expand Down

0 comments on commit 5f0c2bc

Please sign in to comment.