MRT3216 / roboscout_2016

A full suite of tools to collect and analyze FRC game data for the 2016 competition (Stronghold) [very much a WIP, please help]
5 stars 3 forks source link

Databases #2

Open adamsong opened 8 years ago

adamsong commented 8 years ago

The database file referenced by the analysis is not the same file as that used by the gathering. Due to the copying of config files from the root config to the child configs using config modification would be difficult without a code change (unless I am missing something). The solution that I have used is to symlink between the two. If that is to be the permanent solution then that should be reflected in the documentation.

vampjaz commented 8 years ago

I'll admit, the code was restructured and is now very messy. The reason I haven't used a symlink is because they aren't compatible with Windows systems.

adamsong commented 8 years ago

Now I am curious, how did you get this to work?

ArchdukeTim commented 8 years ago

@adamsong an easy way is to copy/paste the data.db file from gathering to analysis. Then you just run python team.py #### and it works

vampjaz commented 8 years ago

The idea is that the data would be synced over airsync, that is why you see airsync_server.py and airsync_client.py in the data folders.

Of course, if you don't have wireless serial bridges, things like symlinking, rsync, copying, etc. will work...

vampjaz commented 8 years ago

Analysis code needs the config file to import the database schema, but you're right, it probably should have its own config file.

Nathan904 commented 8 years ago

I just tried to use this on my raspberry pi for our team, and got this error while running the program: line 5 ImportError: No module named flask

vampjaz commented 8 years ago

@Nathan904 Then it seems you need to install Flask: sudo pip install flask