Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Commit

Permalink
Rename to match GitHub, add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sco1 committed Jul 27, 2017
1 parent 7c33fd5 commit e6846da
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# pyAltiForce
Python Parsing for AltiForce GoPro Backpack CSVs

The CSV file is processed and a plot of time vs. total acceleration is displayed.

## Usage
Calling `pyAltiForce` from the command line with no arguments opens a file selection GUI for the user to select a single CSV file to process and display.

Calling `pyAltiForce` with the optional `-f` or `--file` flag will allow the user to specify a single CSV file to process.

Examples Include:

python pyAltiForce -f './Data/GOPR0024.CSV'
python pyAltiForce --file 'C:/My Data/GOPR0024.CSV'
5 changes: 3 additions & 2 deletions AltiForce.py → pyAltiForce.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import argparse
from pathlib import Path

class AltiForce():
class pyAltiForce():
def __init__(self, filepath):
self.filepath = filepath
self.loadCSV()
Expand Down Expand Up @@ -45,6 +45,7 @@ def plotdata(self):
ax1.plot(x, y1, 'g-')
ax2.plot(x, y2, 'b-')

fig.suptitle(self.filepath.name)
ax1.set_xlabel('Time (seconds)')
ax1.set_ylabel('Altitude (feet)', color='g')
ax2.set_ylabel('Z Acceleration (Gees)', color='b')
Expand All @@ -71,7 +72,7 @@ def plotdata(self):
root.destroy()

if filepath.exists():
mydata = AltiForce(filepath)
mydata = pyAltiForce(filepath)
mydata.plotdata()
else:
raise(ValueError)

0 comments on commit e6846da

Please sign in to comment.