Skip to content

Instantly share code, notes, and snippets.

View rasathus's full-sized avatar

Chris Fane rasathus

View GitHub Profile
@rasathus
rasathus / avg.py
Created September 24, 2012 21:28
Sonar averaging wrapper
#/bin/python
import subprocess
sonar = subprocess.Popen(['./sonar'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = sonar.communicate()
split_output = out.split('\n')
results_list = []
for line in split_output: