2019-02-05 15:50:10 +00:00
|
|
|
|
2019-02-08 21:42:33 +00:00
|
|
|
#Titan Robotics Team 2022: Data Analysis Script
|
2019-02-05 15:50:10 +00:00
|
|
|
#Written by Arthur Lu & Jacob Levine
|
|
|
|
#Notes:
|
|
|
|
#setup:
|
|
|
|
|
2019-02-19 15:44:51 +00:00
|
|
|
__version__ = "1.0.2.000"
|
2019-02-05 15:50:10 +00:00
|
|
|
|
|
|
|
__changelog__ = """changelog:
|
2019-02-19 15:44:51 +00:00
|
|
|
1.0.2.000:
|
|
|
|
- added data reading from folder
|
|
|
|
- nearly crashed computer reading from 20 GiB of data
|
2019-02-05 15:50:10 +00:00
|
|
|
1.0.1.000:
|
|
|
|
- added data reading from file
|
|
|
|
- added superstructure to code
|
|
|
|
1.0.0.000:
|
|
|
|
- added import statements (revolutionary)
|
|
|
|
"""
|
|
|
|
|
|
|
|
__author__ = (
|
|
|
|
"Arthur Lu <arthurlu@ttic.edu>, "
|
|
|
|
"Jacob Levine <jlevine@ttic.edu>,"
|
|
|
|
)
|
|
|
|
|
2019-02-05 15:42:00 +00:00
|
|
|
import analysis
|
|
|
|
import titanlearn
|
2019-02-05 15:50:10 +00:00
|
|
|
import visualization
|
2019-02-19 15:44:51 +00:00
|
|
|
import os
|
|
|
|
import glob
|
2019-02-05 15:50:10 +00:00
|
|
|
|
2019-02-19 15:44:51 +00:00
|
|
|
#get all the data
|
|
|
|
source_dir = 'data'
|
|
|
|
file_list = glob.glob(source_dir + '/*.CSV')
|
|
|
|
data = []
|
|
|
|
for file_path in file_list:
|
|
|
|
data.append(analysis.load_csv(file_path))
|
|
|
|
|
|
|
|
#unhelpful comment
|
2019-02-19 19:21:06 +00:00
|
|
|
#for d in data: #unpacks 3d array into 2d
|
2019-02-19 15:44:51 +00:00
|
|
|
# print (d)
|