Skip to content

Commit

Permalink
skip competitors for which analysis fails
Browse files Browse the repository at this point in the history
  • Loading branch information
GliderGeek committed Jul 11, 2018
1 parent 469eebc commit de21d9d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Master
- Use opensoar and aerofiles functionalities (#100, #123)
- Do not skip HC contestants
- Skip contestant for which analysis fails

v0.56.3
- Fix aat with fixed sector orientation
Expand Down
8 changes: 7 additions & 1 deletion PySoar/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@ def run(url, source, url_status=None, download_progress_label=None, analysis_pro
return

classification_method = 'pysoar'
competition_day.analyse_flights(classification_method, analysis_progress)
failed_comp_ids = competition_day.analyse_flights(classification_method, analysis_progress,
skip_failed_analyses=True)

# remove failed competitors for which the analysis failed
for competitor in competition_day.competitors:
if competitor.competition_id in failed_comp_ids:
competition_day.competitors.remove(competitor)

for competitor in competition_day.competitors:

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ xlwt==1.3.0
numpy==1.12.0b1
pyinstaller==3.2
aerofiles==0.4.1
opensoar==0.1.0
opensoar==0.1.1

0 comments on commit de21d9d

Please sign in to comment.