Skip to content

Commit

Permalink
removed difficulty trend mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Srayman committed Jul 6, 2019
1 parent d29d420 commit 3eec72e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions node_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,6 @@ async def main():
data['difficulty_trend_max'] = str(max(map(float,response['difficulty_trend'])))
data['difficulty_trend_median'] = str(statistics.median(map(float,response['difficulty_trend'])))
data['difficulty_trend_mean'] = str(statistics.mean(map(float,response['difficulty_trend'])))
try:
data['difficulty_trend_mode'] = str(statistics.mode(map(float,response['difficulty_trend'])))
except:
print('Mode Error - returning mean as mode')
data['difficulty_trend_mode'] = str(statistics.mean(map(float,response['difficulty_trend'])))
data['alarm_operations_count'] = response3['node']['alarm']['operations']['count']
data['ledger_bootstrap_weights_count'] = response3['node']['ledger']['bootstrap_weights']['count']
data['active_roots_count'] = response3['node']['active']['roots']['count']
Expand Down

0 comments on commit 3eec72e

Please sign in to comment.