-
Notifications
You must be signed in to change notification settings - Fork 3
/
quickstart.py
30 lines (25 loc) · 1.01 KB
/
quickstart.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from ssscoring.calc import aggregateResults
from ssscoring.calc import convertFlySight2SSScoring
from ssscoring.calc import getFlySightDataFromCSV
from ssscoring.calc import processAllJumpFiles
from ssscoring.calc import processJump
from ssscoring.calc import roundedAggregateResults
from ssscoring.constants import FT_IN_M
from ssscoring.flysight import getAllSpeedJumpFilesFrom
import os
DATA_LAKE = './resources' # can be anywhere
dropZoneAltMSL = 100
dropZoneAltMSLMeters = dropZoneAltMSL/FT_IN_M
jumpFile = os.path.join('resources', 'test-data-00.CSV')
rawData, tag = getFlySightDataFromCSV(jumpFile)
jumpResult = processJump(
convertFlySight2SSScoring(
rawData,
altitudeDZMeters = dropZoneAltMSLMeters))
print('%s - score = %5.2f' % (tag, jumpResult.score))
print(jumpResult.table)
print()
jumpFiles = getAllSpeedJumpFilesFrom(DATA_LAKE)
jumpResults = processAllJumpFiles(jumpFiles, altitudeDZMeters = dropZoneAltMSLMeters)
results = roundedAggregateResults(aggregateResults(jumpResults))
print(results)