sagesharp / foss-heartbeat

(Unmaintained) FOSS Heartbeat analyses the health of a community of contributors. :heartbeat:
https://sarahsharp.github.io/foss-heartbeat/
Other
315 stars 38 forks source link

mean requires at least one data point #49

Open emmairwin opened 6 years ago

emmairwin commented 6 years ago

On running

python ghstats.py zerda-android-l10n mozilla-l10n docs/

I found this happened for many repos. I have this error: I get this or #48 with all attempts, so I wonder if there's a connection

raise StatisticsError(u'mean requires at least one data point') File "ghstats.py", line 396, in main() File "ghstats.py", line 393, in main createGraphs(args.owner, args.repository, args.htmldir) File "ghstats.py", line 366, in createGraphs os.path.join(repoPath, i[0] + 's-rampup.html')) File "ghstats.py", line 232, in graphRampTime '{:.2f}'.format(len(deltas)/(len(deltas)+len(nocontribs))*100) + '%') File "/usr/local/lib/python2.7/site-packages/statistics/init.py", line 294, in mean raise StatisticsError(u'mean requires at least one data point') statistics.StatisticsError: mean requires at least one data point