this is what happens when you cut and this is what happens paste

This commit is contained in:
Stephen Smoogen 2017-02-15 20:33:24 +00:00
parent c9f72584af
commit 9a200b3bf6
2 changed files with 2 additions and 8 deletions

View file

@ -74,10 +74,10 @@ fi
# stuck and you end up with days or weeks of data in a single # stuck and you end up with days or weeks of data in a single
# file. Because the data is pretty small we can get away with adding up the data every day. # file. Because the data is pretty small we can get away with adding up the data every day.
find ${WORKEDIR} -type f | grep raw- | xargs cat | sort -u | awk 'BEGIN{x=0; y=0}; {if (x != $1){ print x,y; x=$1; y=$2} else {y=y+$2}}' > ${WORKEDIR}/worked-all find ${WORKDIR} -type f | grep raw- | xargs cat | sort -u | awk 'BEGIN{x=0; y=0}; {if (x != $1){ print x,y; x=$1; y=$2} else {y=y+$2}}' > ${WORKDIR}/worked-all
awk -f ${LSHARE}/${PROJECT}-data.awk ${WORKEDIR}/worked-all | sort -u > ${WEBDIR}/${PROJECT}data-all.csv awk -f ${LSHARE}/${PROJECT}-data.awk ${WORKDIR}/worked-all | sort -u > ${WEBDIR}/${PROJECT}data-all.csv
# Make the seven day moving average file # Make the seven day moving average file
/usr/local/bin/hotspot-moving_avg.py > ${WEBDIR}/${PROJECT}data-all-7day-ma.csv /usr/local/bin/hotspot-moving_avg.py > ${WEBDIR}/${PROJECT}data-all-7day-ma.csv

View file

@ -26,12 +26,6 @@ import pandas
#import matplotlib.pyplot as plt #import matplotlib.pyplot as plt
import math import math
# Moving Average
import pandas
import matplotlib.pyplot as plt
import math
rolling = 7 rolling = 7
tree = {} tree = {}