Initialize Experiment


In [1]:
%load_ext noworkflow
import numpy as np
import matplotlib.pyplot as plt
from precipitation import read, prepare
%matplotlib inline
"Initialized"


Out[1]:
'Initialized'

Bar graph plot function

  • PREC contains the precipitation data
  • MONTHS defines the interval
  • years is a list of legends

In [2]:
def bar_graph(years):
    global PREC, MONTHS
    prepare(PREC, MONTHS, years, plt)
    plt.savefig("out.png")

Experiment


In [3]:
%%now_run --interactive
MONTHS = np.arange(12) + 1
d13, d14 = read('p13.dat'), read('p14.dat')
PREC = prec13, prec14 = [], []

for i in MONTHS:
    prec13.append(sum(d13[i]))
    prec14.append(sum(d14[i]))


Out[3]:
{"max_duration": {"14": 12177}, "nodes": [{"node": {"count": 1, "info": "Trial 14\u003cbr\u003eFunction \u003cb\u003e/tmp/now_run_GUaisw/now_run_9i15HV.py\u003c/b\u003e called at line 126\u003cbr/\u003eTotal duration: 12177 microseconds for 1 activations\u003cbr/\u003eMean: 12177.0 microseconds per activation\u003cbr/\u003e\u003cbr/\u003eActivation #289 from 2015-07-04 03:38:12.300079 to 2015-07-04 03:38:12.312256 (12177 microseconds)\u003cbr/\u003eReturned None", "level": 0, "trial_id": 14, "duration": 12177, "line": 126, "mean": 12177.0}, "index": 0, "name": "/tmp/now_run_GUaisw/now_run_9i15HV.py", "caller_id": null, "repr": "C(S(126-/tmp/now_run_GUaisw/now_run_9i15HV.py), G([S(7-sum)-1-\u003eS(7-list.append)], [S(6-list.append)-1-\u003eS(7-sum)], [S(6-sum)-1-\u003eS(6-list.append)], [S(7-list.append)-1-\u003eS(6-sum)], [S(7-sum)-1-\u003eS(7-list.append)], [S(6-list.append)-1-\u003eS(7-sum)], [S(6-sum)-1-\u003eS(6-list.append)], [S(7-list.append)-1-\u003eS(6-sum)], [S(7-sum)-1-\u003eS(7-list.append)], [S(6-list.append)-1-\u003eS(7-sum)], [S(6-sum)-1-\u003eS(6-list.append)], [S(7-list.append)-1-\u003eS(6-sum)], [S(7-sum)-1-\u003eS(7-list.append)], [S(6-list.append)-1-\u003eS(7-sum)], [S(6-sum)-1-\u003eS(6-list.append)], [S(7-list.append)-1-\u003eS(6-sum)], [S(7-sum)-1-\u003eS(7-list.append)], [S(6-list.append)-1-\u003eS(7-sum)], [S(6-sum)-1-\u003eS(6-list.append)], [S(7-list.append)-1-\u003eS(6-sum)], [S(7-sum)-1-\u003eS(7-list.append)], [S(6-list.append)-1-\u003eS(7-sum)], [S(6-sum)-1-\u003eS(6-list.append)], [S(7-list.append)-1-\u003eS(6-sum)], [S(7-sum)-1-\u003eS(7-list.append)], [S(6-list.append)-1-\u003eS(7-sum)], [S(6-sum)-1-\u003eS(6-list.append)], [S(7-list.append)-1-\u003eS(6-sum)], [S(7-sum)-1-\u003eS(7-list.append)], [S(6-list.append)-1-\u003eS(7-sum)], [S(6-sum)-1-\u003eS(6-list.append)], [S(7-list.append)-1-\u003eS(6-sum)], [S(7-sum)-1-\u003eS(7-list.append)], [S(6-list.append)-1-\u003eS(7-sum)], [S(6-sum)-1-\u003eS(6-list.append)], [S(7-list.append)-1-\u003eS(6-sum)], [S(7-sum)-1-\u003eS(7-list.append)], [S(6-list.append)-1-\u003eS(7-sum)], [S(6-sum)-1-\u003eS(6-list.append)], [S(7-list.append)-1-\u003eS(6-sum)], [S(7-sum)-1-\u003eS(7-list.append)], [S(6-list.append)-1-\u003eS(7-sum)], [S(6-sum)-1-\u003eS(6-list.append)], [S(7-list.append)-1-\u003eS(6-sum)], [S(7-sum)-1-\u003eS(7-list.append)], [S(6-list.append)-1-\u003eS(7-sum)], [S(6-sum)-1-\u003eS(6-list.append)], [S(2-read)-1-\u003eS(6-sum)], [S(2-read)-1-\u003eS(2-read)], [S(1-arange)-1-\u003eS(2-read)]))"}, {"node": {"count": 12, "info": "Trial 14\u003cbr\u003eFunction \u003cb\u003elist.append\u003c/b\u003e called at line 7\u003cbr/\u003eTotal duration: 73 microseconds for 12 activations\u003cbr/\u003eMean: 6.08333333333 microseconds per activation\u003cbr/\u003e\u003cbr/\u003eActivation #296 from 2015-07-04 03:38:12.311416 to 2015-07-04 03:38:12.311422 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #300 from 2015-07-04 03:38:12.311585 to 2015-07-04 03:38:12.311593 (8 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #304 from 2015-07-04 03:38:12.311653 to 2015-07-04 03:38:12.311659 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #308 from 2015-07-04 03:38:12.311717 to 2015-07-04 03:38:12.311723 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #312 from 2015-07-04 03:38:12.311780 to 2015-07-04 03:38:12.311786 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #316 from 2015-07-04 03:38:12.311844 to 2015-07-04 03:38:12.311849 (5 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #320 from 2015-07-04 03:38:12.311908 to 2015-07-04 03:38:12.311913 (5 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #324 from 2015-07-04 03:38:12.311973 to 2015-07-04 03:38:12.311979 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #328 from 2015-07-04 03:38:12.312041 to 2015-07-04 03:38:12.312047 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #332 from 2015-07-04 03:38:12.312106 to 2015-07-04 03:38:12.312112 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #336 from 2015-07-04 03:38:12.312170 to 2015-07-04 03:38:12.312177 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #340 from 2015-07-04 03:38:12.312235 to 2015-07-04 03:38:12.312241 (6 microseconds)\u003cbr/\u003eReturned None", "level": 1, "trial_id": 14, "duration": 73, "line": 7, "mean": 6.083333333333333}, "index": 1, "name": "list.append", "caller_id": 289, "repr": "S(7-list.append)"}, {"node": {"count": 12, "info": "Trial 14\u003cbr\u003eFunction \u003cb\u003esum\u003c/b\u003e called at line 7\u003cbr/\u003eTotal duration: 82 microseconds for 12 activations\u003cbr/\u003eMean: 6.83333333333 microseconds per activation\u003cbr/\u003e\u003cbr/\u003eActivation #295 from 2015-07-04 03:38:12.311398 to 2015-07-04 03:38:12.311405 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #299 from 2015-07-04 03:38:12.311468 to 2015-07-04 03:38:12.311475 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #303 from 2015-07-04 03:38:12.311635 to 2015-07-04 03:38:12.311642 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #307 from 2015-07-04 03:38:12.311700 to 2015-07-04 03:38:12.311706 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #311 from 2015-07-04 03:38:12.311764 to 2015-07-04 03:38:12.311770 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #315 from 2015-07-04 03:38:12.311827 to 2015-07-04 03:38:12.311834 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #319 from 2015-07-04 03:38:12.311890 to 2015-07-04 03:38:12.311897 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #323 from 2015-07-04 03:38:12.311956 to 2015-07-04 03:38:12.311963 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #327 from 2015-07-04 03:38:12.312024 to 2015-07-04 03:38:12.312031 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #331 from 2015-07-04 03:38:12.312089 to 2015-07-04 03:38:12.312096 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #335 from 2015-07-04 03:38:12.312154 to 2015-07-04 03:38:12.312161 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #339 from 2015-07-04 03:38:12.312219 to 2015-07-04 03:38:12.312226 (7 microseconds)\u003cbr/\u003eReturned None", "level": 1, "trial_id": 14, "duration": 82, "line": 7, "mean": 6.833333333333333}, "index": 2, "name": "sum", "caller_id": 289, "repr": "S(7-sum)"}, {"node": {"count": 12, "info": "Trial 14\u003cbr\u003eFunction \u003cb\u003elist.append\u003c/b\u003e called at line 6\u003cbr/\u003eTotal duration: 72 microseconds for 12 activations\u003cbr/\u003eMean: 6.0 microseconds per activation\u003cbr/\u003e\u003cbr/\u003eActivation #294 from 2015-07-04 03:38:12.311379 to 2015-07-04 03:38:12.311386 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #298 from 2015-07-04 03:38:12.311452 to 2015-07-04 03:38:12.311458 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #302 from 2015-07-04 03:38:12.311620 to 2015-07-04 03:38:12.311626 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #306 from 2015-07-04 03:38:12.311684 to 2015-07-04 03:38:12.311690 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #310 from 2015-07-04 03:38:12.311749 to 2015-07-04 03:38:12.311755 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #314 from 2015-07-04 03:38:12.311811 to 2015-07-04 03:38:12.311817 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #318 from 2015-07-04 03:38:12.311875 to 2015-07-04 03:38:12.311881 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #322 from 2015-07-04 03:38:12.311941 to 2015-07-04 03:38:12.311947 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #326 from 2015-07-04 03:38:12.312009 to 2015-07-04 03:38:12.312015 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #330 from 2015-07-04 03:38:12.312074 to 2015-07-04 03:38:12.312080 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #334 from 2015-07-04 03:38:12.312139 to 2015-07-04 03:38:12.312144 (5 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #338 from 2015-07-04 03:38:12.312204 to 2015-07-04 03:38:12.312210 (6 microseconds)\u003cbr/\u003eReturned None", "level": 1, "trial_id": 14, "duration": 72, "line": 6, "mean": 6.0}, "index": 3, "name": "list.append", "caller_id": 289, "repr": "S(6-list.append)"}, {"node": {"count": 12, "info": "Trial 14\u003cbr\u003eFunction \u003cb\u003esum\u003c/b\u003e called at line 6\u003cbr/\u003eTotal duration: 88 microseconds for 12 activations\u003cbr/\u003eMean: 7.33333333333 microseconds per activation\u003cbr/\u003e\u003cbr/\u003eActivation #293 from 2015-07-04 03:38:12.311353 to 2015-07-04 03:38:12.311365 (12 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #297 from 2015-07-04 03:38:12.311434 to 2015-07-04 03:38:12.311441 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #301 from 2015-07-04 03:38:12.311604 to 2015-07-04 03:38:12.311611 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #305 from 2015-07-04 03:38:12.311668 to 2015-07-04 03:38:12.311675 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #309 from 2015-07-04 03:38:12.311733 to 2015-07-04 03:38:12.311740 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #313 from 2015-07-04 03:38:12.311795 to 2015-07-04 03:38:12.311802 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #317 from 2015-07-04 03:38:12.311859 to 2015-07-04 03:38:12.311865 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #321 from 2015-07-04 03:38:12.311924 to 2015-07-04 03:38:12.311931 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #325 from 2015-07-04 03:38:12.311989 to 2015-07-04 03:38:12.311996 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #329 from 2015-07-04 03:38:12.312058 to 2015-07-04 03:38:12.312065 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #333 from 2015-07-04 03:38:12.312122 to 2015-07-04 03:38:12.312129 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #337 from 2015-07-04 03:38:12.312187 to 2015-07-04 03:38:12.312194 (7 microseconds)\u003cbr/\u003eReturned None", "level": 1, "trial_id": 14, "duration": 88, "line": 6, "mean": 7.333333333333333}, "index": 4, "name": "sum", "caller_id": 289, "repr": "S(6-sum)"}, {"node": {"count": 2, "info": "Trial 14\u003cbr\u003eFunction \u003cb\u003eread\u003c/b\u003e called at line 2\u003cbr/\u003eTotal duration: 10234 microseconds for 2 activations\u003cbr/\u003eMean: 5117.0 microseconds per activation\u003cbr/\u003e\u003cbr/\u003eActivation #291 from 2015-07-04 03:38:12.300204 to 2015-07-04 03:38:12.305866 (5662 microseconds)\u003cbr/\u003eArguments: filename='p13.dat'\u003cbr/\u003eReturned defaultdict(\u003ctype 'list'\u003e, {1: [0.0, 0.0, 6.8, 11.0, 0.2, 0.0, 0.0, 0.0, 0.0, 2.2,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0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.0, 2.6, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 9: [0.0, 0.0, 0.0, 15.3, 39.3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.6, 0.0, 0.0, 0.0, 0.0, 0.0, 0.4, 2.3, 0.7, 0.0, 0.0, 2.5, 0.6], 10: [0.0, 0.3, 2.9, 0.0, 13.1, 0.0, 0.0, 3.7, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 12.4, 13.9, 2.4, 10.7, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.6, 0.0, 1.1, 0.0, 0.0, 0.0], 11: [0.0, 0.0, 0.0, 0.0, 0.0, 0.8, 36.8, 10.5, 0.0, 0.0, 0.0, 0.0, 7.6, 0.0, 0.0, 0.0, 0.2, 8.3, 0.0, 0.0, 0.0, 0.0, 17.3, 8.9, 4.8, 13.7, 2.4, 0.0, 0.0, 0.3], 12: [9.4, 5.5, 0.0, 0.0, 0.0, 21.5, 0.0, 0.0, 0.0, 0.0, 109.8, 20.6, 1.4, 0.0, 0.0, 0.0, 0.3, 0.0, 8.8, 0.0, 0.0, 0.0, 0.0, 0.0, 0.9, 0.0, 0.0, 0.0, 0.0, 0.0, 7.4]})\u003cbr/\u003e\u003cbr/\u003eActivation #292 from 2015-07-04 03:38:12.306085 to 2015-07-04 03:38:12.310657 (4572 microseconds)\u003cbr/\u003eArguments: filename='p14.dat'\u003cbr/\u003eReturned defaultdict(\u003ctype 'list'\u003e, {1: [7.1, 0.8, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 5.2, 0.0, 0.0, 43.8, 1.2, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0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.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2, 4.1, 0.0, 0.0], 9: [0.4, 0.0, 4.8, 14.3, 1.3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.9, 4.3, 0.0, 0.0, 0.0, 0.0, 0.6, 0.0, 0.0, 0.0], 10: [0.0, 16.2, 0.7, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.0, 1.9, 1.1, 0.0, 0.0, 0.0, 0.0, 6.5, 0.0, 0.0, 0.0, 0.0], 11: [6.5, 0.0, 0.0, 0.0, 0.0, 0.6, 0.0, 0.0, 3.5, 0.0, 0.0, 0.0, 1.6, 5.1, 7.1, 17.5, 0.2, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 6.3, 0.0, 0.0, 4.4, 2.7, 3.5, 0.0], 12: [0.0, 0.0, 0.0, 0.0, 26.2, 0.6, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 8.0, 4.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1, 2.1, 3.9, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]})", "level": 1, "trial_id": 14, "duration": 10234, "line": 2, "mean": 5117.0}, "index": 5, "name": "read", "caller_id": 289, "repr": "S(2-read)"}, {"node": {"count": 1, "info": "Trial 14\u003cbr\u003eFunction \u003cb\u003earange\u003c/b\u003e called at line 1\u003cbr/\u003eTotal duration: 30 microseconds for 1 activations\u003cbr/\u003eMean: 30.0 microseconds per activation\u003cbr/\u003e\u003cbr/\u003eActivation #290 from 2015-07-04 03:38:12.300115 to 2015-07-04 03:38:12.300145 (30 microseconds)\u003cbr/\u003eReturned None", "level": 1, "trial_id": 14, "duration": 30, "line": 1, "mean": 30.0}, "index": 6, "name": "arange", "caller_id": 289, "repr": "S(1-arange)"}], "edges": [{"count": 1, "source": 0, "type": "initial", "target": 0}, {"count": 1, "source": 0, "type": "call", "target": 6}, {"count": 1, "source": 1, "type": "return", "target": 0}, {"count": 12, "source": 2, "type": "sequence", "target": 1}, {"count": 12, "source": 3, "type": "sequence", "target": 2}, {"count": 12, "source": 4, "type": "sequence", "target": 3}, {"count": 11, "source": 1, "type": "sequence", "target": 4}, {"count": 1, "source": 5, "type": "sequence", "target": 4}, {"count": 1, "source": 5, "type": "sequence", "target": 5}, {"count": 1, "source": 6, "type": "sequence", "target": 5}], "min_duration": {"14": 30}}

In [4]:
bar_graph(['2013', '2014'])



In [ ]: