In [1]:
%load_ext noworkflow
In [2]:
nip = %now_ip
w = 'w'
trial18 = nip.Trial(18)
trial19 = nip.Trial(19)
open('.18', w).write(str(trial18.script_content))
open('.19', w).write(str(trial19.script_content))
!diff .18 .19 | colordiff
2,3c2,4
< d13, d14 = read('p13.dat'), read('p14.dat')
< PREC = prec13, prec14 = [], []
---
> d12 = read('p12.dat')
> prec12 = []
> PREC = prec12, prec13, prec14
6,7c7
< prec13.append(sum(d13[i]))
< prec14.append(sum(d14[i]))
\ No newline at end of file
---
> prec12.append(sum(d12[i]))
\ No newline at end of file
In [3]:
%%now_run --interactive
import numpy as np
import matplotlib.pyplot as plt
from precipitation import read, prepare
Out[3]:
{"max_duration": {"25": 45}, "nodes": [{"node": {"count": 1, "info": "Trial 25\u003cbr\u003eFunction \u003cb\u003e/tmp/now_run_Jtrv9q/now_run__CKXu0.py\u003c/b\u003e called at line 126\u003cbr/\u003eTotal duration: 45 microseconds for 1 activations\u003cbr/\u003eMean: 45.0 microseconds per activation\u003cbr/\u003e\u003cbr/\u003eActivation #556 from 2015-07-04 04:56:42.025474 to 2015-07-04 04:56:42.025519 (45 microseconds)\u003cbr/\u003eReturned None", "level": 0, "trial_id": 25, "duration": 45, "line": 126, "mean": 45.0}, "index": 0, "name": "/tmp/now_run_Jtrv9q/now_run__CKXu0.py", "caller_id": null, "repr": "S(126-/tmp/now_run_Jtrv9q/now_run__CKXu0.py)"}], "edges": [{"count": 1, "source": 0, "type": "initial", "target": 0}], "min_duration": {"25": 45}}
In [4]:
_.modules(find='precipitation')
Out[4]:
OrderedDict([('id', 1085), ('name', u'precipitation'), ('version', u'1.0.1'), ('path', u'/home/joao/projects/tapp_presentation/precipitation.py'), ('code_hash', u'2490ecc8370cf879b46e3e7dc91b47790e57359a')])
In [5]:
%%now_sql
SELECT name, content_hash_before
FROM file_access
WHERE trial_id = 2
AND name IN ("p13.dat", "p14.dat")
Out[5]:
name content_hash_before p13.dat 9418519556e2bca25481158e60a82d62c20ba54e p14.dat 65f35fc7e0e6862c1344aa18016ff4dcbadb0db9
In [3]:
trial = nip.Trial(2)
trial
Out[3]:
{"max_duration": {"2": 1088260}, "nodes": [{"node": {"count": 1, "info": "Trial 2\u003cbr\u003eFunction \u003cb\u003e/home/joao/projects/tapp_presentation/experiment.py\u003c/b\u003e called at line 126\u003cbr/\u003eTotal duration: 1088260 microseconds for 1 activations\u003cbr/\u003eMean: 1088260.0 microseconds per activation\u003cbr/\u003e\u003cbr/\u003eActivation #56 from 2015-07-04 02:30:51.261815 to 2015-07-04 02:30:52.350075 (1088260 microseconds)\u003cbr/\u003eReturned None", "level": 0, "trial_id": 2, "duration": 1088260, "line": 126, "mean": 1088260.0}, "index": 0, "name": "/home/joao/projects/tapp_presentation/experiment.py", "caller_id": null, "repr": "C(S(126-/home/joao/projects/tapp_presentation/experiment.py), G([S(16-list.append)-1-\u003eC(S(18-bar_graph), G([S(7-prepare)-1-\u003eS(8-savefig)]))], [S(16-sum)-1-\u003eS(16-list.append)], [S(15-list.append)-1-\u003eS(16-sum)], [S(15-sum)-1-\u003eS(15-list.append)], [S(16-list.append)-1-\u003eS(15-sum)], [S(16-sum)-1-\u003eS(16-list.append)], [S(15-list.append)-1-\u003eS(16-sum)], [S(15-sum)-1-\u003eS(15-list.append)], [S(16-list.append)-1-\u003eS(15-sum)], [S(16-sum)-1-\u003eS(16-list.append)], [S(15-list.append)-1-\u003eS(16-sum)], [S(15-sum)-1-\u003eS(15-list.append)], [S(16-list.append)-1-\u003eS(15-sum)], [S(16-sum)-1-\u003eS(16-list.append)], [S(15-list.append)-1-\u003eS(16-sum)], [S(15-sum)-1-\u003eS(15-list.append)], [S(16-list.append)-1-\u003eS(15-sum)], [S(16-sum)-1-\u003eS(16-list.append)], [S(15-list.append)-1-\u003eS(16-sum)], [S(15-sum)-1-\u003eS(15-list.append)], [S(16-list.append)-1-\u003eS(15-sum)], [S(16-sum)-1-\u003eS(16-list.append)], [S(15-list.append)-1-\u003eS(16-sum)], [S(15-sum)-1-\u003eS(15-list.append)], [S(16-list.append)-1-\u003eS(15-sum)], [S(16-sum)-1-\u003eS(16-list.append)], [S(15-list.append)-1-\u003eS(16-sum)], [S(15-sum)-1-\u003eS(15-list.append)], [S(16-list.append)-1-\u003eS(15-sum)], [S(16-sum)-1-\u003eS(16-list.append)], [S(15-list.append)-1-\u003eS(16-sum)], [S(15-sum)-1-\u003eS(15-list.append)], [S(16-list.append)-1-\u003eS(15-sum)], [S(16-sum)-1-\u003eS(16-list.append)], [S(15-list.append)-1-\u003eS(16-sum)], [S(15-sum)-1-\u003eS(15-list.append)], [S(16-list.append)-1-\u003eS(15-sum)], [S(16-sum)-1-\u003eS(16-list.append)], [S(15-list.append)-1-\u003eS(16-sum)], [S(15-sum)-1-\u003eS(15-list.append)], [S(16-list.append)-1-\u003eS(15-sum)], [S(16-sum)-1-\u003eS(16-list.append)], [S(15-list.append)-1-\u003eS(16-sum)], [S(15-sum)-1-\u003eS(15-list.append)], [S(16-list.append)-1-\u003eS(15-sum)], [S(16-sum)-1-\u003eS(16-list.append)], [S(15-list.append)-1-\u003eS(16-sum)], [S(15-sum)-1-\u003eS(15-list.append)], [S(11-read)-1-\u003eS(15-sum)], [S(11-read)-1-\u003eS(11-read)], [S(10-arange)-1-\u003eS(11-read)]))"}, {"node": {"count": 1, "info": "Trial 2\u003cbr\u003eFunction \u003cb\u003ebar_graph\u003c/b\u003e called at line 18\u003cbr/\u003eTotal duration: 1073769 microseconds for 1 activations\u003cbr/\u003eMean: 1073769.0 microseconds per activation\u003cbr/\u003e\u003cbr/\u003eActivation #108 from 2015-07-04 02:30:51.276290 to 2015-07-04 02:30:52.350059 (1073769 microseconds)\u003cbr/\u003eArguments: years=['2013', '2014']\u003cbr/\u003eReturned None", "level": 1, "trial_id": 2, "duration": 1073769, "line": 18, "mean": 1073769.0}, "index": 1, "name": "bar_graph", "caller_id": 56, "repr": "C(S(18-bar_graph), G([S(7-prepare)-1-\u003eS(8-savefig)]))"}, {"node": {"count": 1, "info": "Trial 2\u003cbr\u003eFunction \u003cb\u003esavefig\u003c/b\u003e called at line 8\u003cbr/\u003eTotal duration: 689744 microseconds for 1 activations\u003cbr/\u003eMean: 689744.0 microseconds per activation\u003cbr/\u003e\u003cbr/\u003eActivation #110 from 2015-07-04 02:30:51.658742 to 2015-07-04 02:30:52.348486 (689744 microseconds)\u003cbr/\u003eArguments: args=('out.png',)\u003cbr/\u003eReturned None", "level": 2, "trial_id": 2, "duration": 689744, "line": 8, "mean": 689744.0}, "index": 2, "name": "savefig", "caller_id": 108, "repr": "S(8-savefig)"}, {"node": {"count": 1, "info": "Trial 2\u003cbr\u003eFunction \u003cb\u003eprepare\u003c/b\u003e called at line 7\u003cbr/\u003eTotal duration: 382049 microseconds for 1 activations\u003cbr/\u003eMean: 382049.0 microseconds per activation\u003cbr/\u003e\u003cbr/\u003eActivation #109 from 2015-07-04 02:30:51.276649 to 2015-07-04 02:30:51.658698 (382049 microseconds)\u003cbr/\u003eArguments: plt=\u003cmodule 'matplotlib.pyplot' from '/home/joao/.envs/py27/local/lib/python2.7/site-packages/matplotlib/pyplot.pyc'\u003e, series=([334.70000000000005, 78.1, 228.2, 78.39999999999999, 68.8, 25.3, 101.10000000000001, 5.6, 62.699999999999996, 61.099999999999994, 111.60000000000001, 185.60000000000002], [58.1, 9.1, 80.5, 100.39999999999999, 26.700000000000003, 42.7, 87.5, 18.1, 29.6, 28.4, 59.0, 44.9]), months=array([ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]), colors=['b', 'g', 'r'], names=['2013', '2014'], div=0.1\u003cbr/\u003eReturned None", "level": 2, "trial_id": 2, "duration": 382049, "line": 7, "mean": 382049.0}, "index": 3, "name": "prepare", "caller_id": 108, "repr": "S(7-prepare)"}, {"node": {"count": 12, "info": "Trial 2\u003cbr\u003eFunction \u003cb\u003elist.append\u003c/b\u003e called at line 16\u003cbr/\u003eTotal duration: 69 microseconds for 12 activations\u003cbr/\u003eMean: 5.75 microseconds per activation\u003cbr/\u003e\u003cbr/\u003eActivation #63 from 2015-07-04 02:30:51.273732 to 2015-07-04 02:30:51.273738 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #67 from 2015-07-04 02:30:51.273798 to 2015-07-04 02:30:51.273804 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #71 from 2015-07-04 02:30:51.273862 to 2015-07-04 02:30:51.273867 (5 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #75 from 2015-07-04 02:30:51.273926 to 2015-07-04 02:30:51.273932 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #79 from 2015-07-04 02:30:51.273991 to 2015-07-04 02:30:51.273998 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #83 from 2015-07-04 02:30:51.274057 to 2015-07-04 02:30:51.274062 (5 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #87 from 2015-07-04 02:30:51.274121 to 2015-07-04 02:30:51.274127 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #91 from 2015-07-04 02:30:51.274186 to 2015-07-04 02:30:51.274192 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #95 from 2015-07-04 02:30:51.274251 to 2015-07-04 02:30:51.274257 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #99 from 2015-07-04 02:30:51.274316 to 2015-07-04 02:30:51.274321 (5 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #103 from 2015-07-04 02:30:51.274380 to 2015-07-04 02:30:51.274385 (5 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #107 from 2015-07-04 02:30:51.274444 to 2015-07-04 02:30:51.274450 (6 microseconds)\u003cbr/\u003eReturned None", "level": 1, "trial_id": 2, "duration": 69, "line": 16, "mean": 5.75}, "index": 4, "name": "list.append", "caller_id": 56, "repr": "S(16-list.append)"}, {"node": {"count": 12, "info": "Trial 2\u003cbr\u003eFunction \u003cb\u003esum\u003c/b\u003e called at line 16\u003cbr/\u003eTotal duration: 81 microseconds for 12 activations\u003cbr/\u003eMean: 6.75 microseconds per activation\u003cbr/\u003e\u003cbr/\u003eActivation #62 from 2015-07-04 02:30:51.273715 to 2015-07-04 02:30:51.273721 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #66 from 2015-07-04 02:30:51.273781 to 2015-07-04 02:30:51.273788 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #70 from 2015-07-04 02:30:51.273845 to 2015-07-04 02:30:51.273852 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #74 from 2015-07-04 02:30:51.273909 to 2015-07-04 02:30:51.273916 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #78 from 2015-07-04 02:30:51.273974 to 2015-07-04 02:30:51.273981 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #82 from 2015-07-04 02:30:51.274040 to 2015-07-04 02:30:51.274046 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #86 from 2015-07-04 02:30:51.274104 to 2015-07-04 02:30:51.274111 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #90 from 2015-07-04 02:30:51.274169 to 2015-07-04 02:30:51.274176 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #94 from 2015-07-04 02:30:51.274234 to 2015-07-04 02:30:51.274241 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #98 from 2015-07-04 02:30:51.274299 to 2015-07-04 02:30:51.274306 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #102 from 2015-07-04 02:30:51.274363 to 2015-07-04 02:30:51.274370 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #106 from 2015-07-04 02:30:51.274428 to 2015-07-04 02:30:51.274434 (6 microseconds)\u003cbr/\u003eReturned None", "level": 1, "trial_id": 2, "duration": 81, "line": 16, "mean": 6.75}, "index": 5, "name": "sum", "caller_id": 56, "repr": "S(16-sum)"}, {"node": {"count": 12, "info": "Trial 2\u003cbr\u003eFunction \u003cb\u003elist.append\u003c/b\u003e called at line 15\u003cbr/\u003eTotal duration: 73 microseconds for 12 activations\u003cbr/\u003eMean: 6.08333333333 microseconds per activation\u003cbr/\u003e\u003cbr/\u003eActivation #61 from 2015-07-04 02:30:51.273697 to 2015-07-04 02:30:51.273704 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #65 from 2015-07-04 02:30:51.273765 to 2015-07-04 02:30:51.273771 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #69 from 2015-07-04 02:30:51.273830 to 2015-07-04 02:30:51.273836 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #73 from 2015-07-04 02:30:51.273894 to 2015-07-04 02:30:51.273900 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #77 from 2015-07-04 02:30:51.273959 to 2015-07-04 02:30:51.273965 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #81 from 2015-07-04 02:30:51.274024 to 2015-07-04 02:30:51.274030 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #85 from 2015-07-04 02:30:51.274089 to 2015-07-04 02:30:51.274095 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #89 from 2015-07-04 02:30:51.274154 to 2015-07-04 02:30:51.274160 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #93 from 2015-07-04 02:30:51.274219 to 2015-07-04 02:30:51.274225 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #97 from 2015-07-04 02:30:51.274284 to 2015-07-04 02:30:51.274290 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #101 from 2015-07-04 02:30:51.274348 to 2015-07-04 02:30:51.274354 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #105 from 2015-07-04 02:30:51.274412 to 2015-07-04 02:30:51.274418 (6 microseconds)\u003cbr/\u003eReturned None", "level": 1, "trial_id": 2, "duration": 73, "line": 15, "mean": 6.083333333333333}, "index": 6, "name": "list.append", "caller_id": 56, "repr": "S(15-list.append)"}, {"node": {"count": 12, "info": "Trial 2\u003cbr\u003eFunction \u003cb\u003esum\u003c/b\u003e called at line 15\u003cbr/\u003eTotal duration: 86 microseconds for 12 activations\u003cbr/\u003eMean: 7.16666666667 microseconds per activation\u003cbr/\u003e\u003cbr/\u003eActivation #60 from 2015-07-04 02:30:51.273673 to 2015-07-04 02:30:51.273684 (11 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #64 from 2015-07-04 02:30:51.273749 to 2015-07-04 02:30:51.273755 (6 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #68 from 2015-07-04 02:30:51.273814 to 2015-07-04 02:30:51.273821 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #72 from 2015-07-04 02:30:51.273877 to 2015-07-04 02:30:51.273884 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #76 from 2015-07-04 02:30:51.273942 to 2015-07-04 02:30:51.273949 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #80 from 2015-07-04 02:30:51.274007 to 2015-07-04 02:30:51.274014 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #84 from 2015-07-04 02:30:51.274072 to 2015-07-04 02:30:51.274079 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #88 from 2015-07-04 02:30:51.274137 to 2015-07-04 02:30:51.274144 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #92 from 2015-07-04 02:30:51.274201 to 2015-07-04 02:30:51.274208 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #96 from 2015-07-04 02:30:51.274267 to 2015-07-04 02:30:51.274274 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #100 from 2015-07-04 02:30:51.274331 to 2015-07-04 02:30:51.274338 (7 microseconds)\u003cbr/\u003eReturned None\u003cbr/\u003e\u003cbr/\u003eActivation #104 from 2015-07-04 02:30:51.274396 to 2015-07-04 02:30:51.274402 (6 microseconds)\u003cbr/\u003eReturned None", "level": 1, "trial_id": 2, "duration": 86, "line": 15, "mean": 7.166666666666667}, "index": 7, "name": "sum", "caller_id": 56, "repr": "S(15-sum)"}, {"node": {"count": 2, "info": "Trial 2\u003cbr\u003eFunction \u003cb\u003eread\u003c/b\u003e called at line 11\u003cbr/\u003eTotal duration: 11126 microseconds for 2 activations\u003cbr/\u003eMean: 5563.0 microseconds per activation\u003cbr/\u003e\u003cbr/\u003eActivation #58 from 2015-07-04 02:30:51.262150 to 2015-07-04 02:30:51.268688 (6538 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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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, 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 #59 from 2015-07-04 02:30:51.268907 to 2015-07-04 02:30:51.273495 (4588 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.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0.0, 8.6, 3.2, 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, 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": 2, "duration": 11126, "line": 11, "mean": 5563.0}, "index": 8, "name": "read", "caller_id": 56, "repr": "S(11-read)"}, {"node": {"count": 1, "info": "Trial 2\u003cbr\u003eFunction \u003cb\u003earange\u003c/b\u003e called at line 10\u003cbr/\u003eTotal duration: 73 microseconds for 1 activations\u003cbr/\u003eMean: 73.0 microseconds per activation\u003cbr/\u003e\u003cbr/\u003eActivation #57 from 2015-07-04 02:30:51.261943 to 2015-07-04 02:30:51.262016 (73 microseconds)\u003cbr/\u003eReturned None", "level": 1, "trial_id": 2, "duration": 73, "line": 10, "mean": 73.0}, "index": 9, "name": "arange", "caller_id": 56, "repr": "S(10-arange)"}], "edges": [{"count": 1, "source": 0, "type": "initial", "target": 0}, {"count": 1, "source": 1, "type": "call", "target": 3}, {"count": 1, "source": 2, "type": "return", "target": 1}, {"count": 1, "source": 3, "type": "sequence", "target": 2}, {"count": 1, "source": 0, "type": "call", "target": 9}, {"count": 1, "source": 1, "type": "return", "target": 0}, {"count": 1, "source": 4, "type": "sequence", "target": 1}, {"count": 12, "source": 5, "type": "sequence", "target": 4}, {"count": 12, "source": 6, "type": "sequence", "target": 5}, {"count": 12, "source": 7, "type": "sequence", "target": 6}, {"count": 11, "source": 4, "type": "sequence", "target": 7}, {"count": 1, "source": 8, "type": "sequence", "target": 7}, {"count": 1, "source": 8, "type": "sequence", "target": 8}, {"count": 1, "source": 9, "type": "sequence", "target": 8}], "min_duration": {"2": 69}}
In [7]:
%%now_prolog {trial.id}
indirect_activation({trial.id}, bar_graph, X),
duration({trial.id}, X, Y)
Out[7]:
[{u'X': u'prepare', u'Y': 0.3820490837097168},
{u'X': u'savefig', u'Y': 0.6897439956665039}]
In [7]:
print(
nip.persistence.get('9138b1e2c0f6b80ab7ac902835e7bc88ea585c7a')
)
83743;01/01/2012;1200;7.8;
83743;02/01/2012;1200;44.2;
83743;03/01/2012;1200;30.6;
83743;04/01/2012;1200;0;
83743;05/01/2012;1200;0;
83743;06/01/2012;1200;0;
83743;07/01/2012;1200;46.2;
83743;08/01/2012;1200;0;
83743;09/01/2012;1200;2.2;
83743;10/01/2012;1200;0.1;
83743;11/01/2012;1200;0.8;
83743;12/01/2012;1200;0.3;
83743;13/01/2012;1200;0;
83743;14/01/2012;1200;0;
83743;15/01/2012;1200;0.6;
83743;16/01/2012;1200;8.3;
83743;17/01/2012;1200;0.1;
83743;18/01/2012;1200;0;
83743;19/01/2012;1200;0;
83743;20/01/2012;1200;24;
83743;21/01/2012;1200;0;
83743;22/01/2012;1200;0;
83743;23/01/2012;1200;0;
83743;24/01/2012;1200;0;
83743;25/01/2012;1200;0;
83743;26/01/2012;1200;0;
83743;27/01/2012;1200;6.3;
83743;28/01/2012;1200;34.4;
83743;29/01/2012;1200;4.5;
83743;30/01/2012;1200;10.5;
83743;31/01/2012;1200;0;
83743;01/02/2012;1200;5.9;
83743;02/02/2012;1200;0;
83743;03/02/2012;1200;0;
83743;04/02/2012;1200;0;
83743;05/02/2012;1200;0;
83743;06/02/2012;1200;0;
83743;07/02/2012;1200;0;
83743;08/02/2012;1200;0;
83743;09/02/2012;1200;0;
83743;10/02/2012;1200;0;
83743;11/02/2012;1200;20.6;
83743;12/02/2012;1200;5;
83743;13/02/2012;1200;4.6;
83743;14/02/2012;1200;0;
83743;15/02/2012;1200;13.1;
83743;16/02/2012;1200;0;
83743;17/02/2012;1200;0;
83743;18/02/2012;1200;0;
83743;19/02/2012;1200;0;
83743;20/02/2012;1200;0;
83743;21/02/2012;1200;0;
83743;22/02/2012;1200;0;
83743;23/02/2012;1200;13.6;
83743;24/02/2012;1200;0;
83743;25/02/2012;1200;0;
83743;26/02/2012;1200;0;
83743;27/02/2012;1200;0;
83743;28/02/2012;1200;0;
83743;29/02/2012;1200;0;
83743;01/03/2012;1200;0;
83743;02/03/2012;1200;0;
83743;03/03/2012;1200;0;
83743;04/03/2012;1200;0.5;
83743;05/03/2012;1200;0;
83743;06/03/2012;1200;0;
83743;07/03/2012;1200;0;
83743;08/03/2012;1200;0;
83743;09/03/2012;1200;0;
83743;10/03/2012;1200;0;
83743;11/03/2012;1200;0;
83743;12/03/2012;1200;0.3;
83743;13/03/2012;1200;1.1;
83743;14/03/2012;1200;0;
83743;15/03/2012;1200;2.6;
83743;16/03/2012;1200;4.3;
83743;17/03/2012;1200;5.9;
83743;18/03/2012;1200;0.8;
83743;19/03/2012;1200;0;
83743;20/03/2012;1200;0;
83743;21/03/2012;1200;0;
83743;22/03/2012;1200;0;
83743;23/03/2012;1200;18.5;
83743;24/03/2012;1200;7.8;
83743;25/03/2012;1200;32.2;
83743;26/03/2012;1200;0;
83743;27/03/2012;1200;0;
83743;28/03/2012;1200;0;
83743;29/03/2012;1200;9.6;
83743;30/03/2012;1200;0.5;
83743;31/03/2012;1200;0;
83743;01/04/2012;1200;0;
83743;02/04/2012;1200;0;
83743;03/04/2012;1200;0;
83743;04/04/2012;1200;0;
83743;05/04/2012;1200;3.5;
83743;06/04/2012;1200;0;
83743;07/04/2012;1200;0;
83743;08/04/2012;1200;0;
83743;09/04/2012;1200;0;
83743;10/04/2012;1200;15.9;
83743;11/04/2012;1200;0;
83743;12/04/2012;1200;0;
83743;13/04/2012;1200;0;
83743;14/04/2012;1200;0;
83743;15/04/2012;1200;0;
83743;16/04/2012;1200;8.6;
83743;17/04/2012;1200;1.3;
83743;18/04/2012;1200;0;
83743;19/04/2012;1200;0;
83743;20/04/2012;1200;0;
83743;21/04/2012;1200;0;
83743;22/04/2012;1200;4.6;
83743;23/04/2012;1200;4.9;
83743;24/04/2012;1200;0;
83743;25/04/2012;1200;0;
83743;26/04/2012;1200;0;
83743;27/04/2012;1200;0;
83743;28/04/2012;1200;0;
83743;29/04/2012;1200;3.7;
83743;30/04/2012;1200;2.9;
83743;01/05/2012;1200;42;
83743;02/05/2012;1200;11;
83743;03/05/2012;1200;0.4;
83743;04/05/2012;1200;0.8;
83743;05/05/2012;1200;0;
83743;06/05/2012;1200;0;
83743;07/05/2012;1200;0;
83743;08/05/2012;1200;7.5;
83743;09/05/2012;1200;0;
83743;10/05/2012;1200;0;
83743;11/05/2012;1200;0;
83743;12/05/2012;1200;0;
83743;13/05/2012;1200;0;
83743;14/05/2012;1200;17.3;
83743;15/05/2012;1200;21.9;
83743;16/05/2012;1200;2.3;
83743;17/05/2012;1200;17.5;
83743;18/05/2012;1200;5.6;
83743;19/05/2012;1200;0;
83743;20/05/2012;1200;0;
83743;21/05/2012;1200;0;
83743;22/05/2012;1200;0;
83743;23/05/2012;1200;0;
83743;24/05/2012;1200;0;
83743;25/05/2012;1200;0;
83743;26/05/2012;1200;0;
83743;27/05/2012;1200;2.5;
83743;28/05/2012;1200;0;
83743;29/05/2012;1200;0;
83743;30/05/2012;1200;0;
83743;31/05/2012;1200;0;
83743;01/06/2012;1200;0;
83743;02/06/2012;1200;0.6;
83743;03/06/2012;1200;0;
83743;04/06/2012;1200;0;
83743;05/06/2012;1200;0;
83743;06/06/2012;1200;3.3;
83743;07/06/2012;1200;4.7;
83743;08/06/2012;1200;11.8;
83743;09/06/2012;1200;4.1;
83743;10/06/2012;1200;3.2;
83743;11/06/2012;1200;0;
83743;12/06/2012;1200;4.1;
83743;13/06/2012;1200;0;
83743;14/06/2012;1200;0;
83743;15/06/2012;1200;0;
83743;16/06/2012;1200;0;
83743;17/06/2012;1200;0;
83743;18/06/2012;1200;0;
83743;19/06/2012;1200;0;
83743;20/06/2012;1200;0;
83743;21/06/2012;1200;4.7;
83743;22/06/2012;1200;32.7;
83743;23/06/2012;1200;0;
83743;24/06/2012;1200;0;
83743;25/06/2012;1200;0;
83743;26/06/2012;1200;1.9;
83743;27/06/2012;1200;0;
83743;28/06/2012;1200;0;
83743;29/06/2012;1200;0;
83743;30/06/2012;1200;0;
83743;01/07/2012;1200;0;
83743;02/07/2012;1200;0;
83743;03/07/2012;1200;0;
83743;04/07/2012;1200;0;
83743;05/07/2012;1200;0;
83743;06/07/2012;1200;0;
83743;07/07/2012;1200;0;
83743;08/07/2012;1200;0.5;
83743;09/07/2012;1200;6.6;
83743;10/07/2012;1200;0;
83743;11/07/2012;1200;0;
83743;12/07/2012;1200;0;
83743;13/07/2012;1200;13;
83743;14/07/2012;1200;0;
83743;15/07/2012;1200;0;
83743;16/07/2012;1200;0.5;
83743;17/07/2012;1200;0.7;
83743;18/07/2012;1200;2.5;
83743;19/07/2012;1200;1.6;
83743;20/07/2012;1200;0.8;
83743;21/07/2012;1200;0;
83743;22/07/2012;1200;0;
83743;23/07/2012;1200;0;
83743;24/07/2012;1200;0;
83743;25/07/2012;1200;0;
83743;26/07/2012;1200;0;
83743;27/07/2012;1200;0;
83743;28/07/2012;1200;0;
83743;29/07/2012;1200;0;
83743;30/07/2012;1200;0;
83743;31/07/2012;1200;0;
83743;01/08/2012;1200;0;
83743;02/08/2012;1200;0;
83743;03/08/2012;1200;0;
83743;04/08/2012;1200;0;
83743;05/08/2012;1200;0;
83743;06/08/2012;1200;11;
83743;07/08/2012;1200;0;
83743;08/08/2012;1200;0;
83743;09/08/2012;1200;0;
83743;10/08/2012;1200;0;
83743;11/08/2012;1200;0;
83743;12/08/2012;1200;0;
83743;13/08/2012;1200;0;
83743;14/08/2012;1200;0;
83743;15/08/2012;1200;0.3;
83743;16/08/2012;1200;0;
83743;17/08/2012;1200;0;
83743;18/08/2012;1200;0;
83743;19/08/2012;1200;0;
83743;20/08/2012;1200;0;
83743;21/08/2012;1200;0;
83743;22/08/2012;1200;0;
83743;23/08/2012;1200;0;
83743;24/08/2012;1200;0;
83743;25/08/2012;1200;0;
83743;26/08/2012;1200;0;
83743;27/08/2012;1200;0;
83743;28/08/2012;1200;0;
83743;29/08/2012;1200;6.6;
83743;30/08/2012;1200;0;
83743;31/08/2012;1200;0;
83743;01/09/2012;1200;0;
83743;02/09/2012;1200;0;
83743;03/09/2012;1200;0;
83743;04/09/2012;1200;1;
83743;05/09/2012;1200;0;
83743;06/09/2012;1200;0;
83743;07/09/2012;1200;0;
83743;08/09/2012;1200;0;
83743;09/09/2012;1200;0;
83743;10/09/2012;1200;0;
83743;11/09/2012;1200;0;
83743;12/09/2012;1200;0;
83743;13/09/2012;1200;0;
83743;14/09/2012;1200;1.6;
83743;15/09/2012;1200;0;
83743;16/09/2012;1200;0;
83743;17/09/2012;1200;0;
83743;18/09/2012;1200;0;
83743;19/09/2012;1200;0;
83743;20/09/2012;1200;0;
83743;21/09/2012;1200;0.8;
83743;22/09/2012;1200;17.4;
83743;23/09/2012;1200;0;
83743;24/09/2012;1200;0;
83743;25/09/2012;1200;0;
83743;26/09/2012;1200;64.7;
83743;27/09/2012;1200;2.4;
83743;28/09/2012;1200;0;
83743;29/09/2012;1200;0;
83743;30/09/2012;1200;0;
83743;01/10/2012;1200;0;
83743;02/10/2012;1200;0;
83743;03/10/2012;1200;0;
83743;04/10/2012;1200;0;
83743;05/10/2012;1200;0;
83743;06/10/2012;1200;0;
83743;07/10/2012;1200;0;
83743;08/10/2012;1200;0;
83743;09/10/2012;1200;0;
83743;10/10/2012;1200;0;
83743;11/10/2012;1200;0;
83743;12/10/2012;1200;17;
83743;13/10/2012;1200;14.1;
83743;14/10/2012;1200;1.6;
83743;15/10/2012;1200;0;
83743;16/10/2012;1200;0;
83743;17/10/2012;1200;0;
83743;18/10/2012;1200;0;
83743;19/10/2012;1200;0;
83743;20/10/2012;1200;0;
83743;21/10/2012;1200;0;
83743;22/10/2012;1200;24;
83743;23/10/2012;1200;0;
83743;24/10/2012;1200;9.7;
83743;25/10/2012;1200;0;
83743;26/10/2012;1200;0;
83743;27/10/2012;1200;0;
83743;28/10/2012;1200;0;
83743;29/10/2012;1200;0;
83743;30/10/2012;1200;0;
83743;31/10/2012;1200;0;
83743;01/11/2012;1200;0;
83743;02/11/2012;1200;0.4;
83743;03/11/2012;1200;1.2;
83743;04/11/2012;1200;0.1;
83743;05/11/2012;1200;0;
83743;06/11/2012;1200;2;
83743;07/11/2012;1200;0;
83743;08/11/2012;1200;0;
83743;09/11/2012;1200;0;
83743;10/11/2012;1200;1.6;
83743;11/11/2012;1200;4.9;
83743;12/11/2012;1200;0;
83743;13/11/2012;1200;0.6;
83743;14/11/2012;1200;36.2;
83743;15/11/2012;1200;8.5;
83743;16/11/2012;1200;3.6;
83743;17/11/2012;1200;3.7;
83743;18/11/2012;1200;4;
83743;19/11/2012;1200;0;
83743;20/11/2012;1200;0.3;
83743;21/11/2012;1200;0.6;
83743;22/11/2012;1200;0;
83743;23/11/2012;1200;0;
83743;24/11/2012;1200;0;
83743;25/11/2012;1200;3.3;
83743;26/11/2012;1200;9.1;
83743;27/11/2012;1200;3.8;
83743;28/11/2012;1200;9.3;
83743;29/11/2012;1200;0;
83743;30/11/2012;1200;0;
83743;01/12/2012;1200;0;
83743;02/12/2012;1200;0;
83743;03/12/2012;1200;3.9;
83743;04/12/2012;1200;0;
83743;05/12/2012;1200;0;
83743;06/12/2012;1200;0;
83743;07/12/2012;1200;0;
83743;08/12/2012;1200;0;
83743;09/12/2012;1200;0;
83743;10/12/2012;1200;0;
83743;11/12/2012;1200;0;
83743;12/12/2012;1200;0.2;
83743;13/12/2012;1200;0.3;
83743;14/12/2012;1200;11.2;
83743;15/12/2012;1200;14.5;
83743;16/12/2012;1200;3;
83743;17/12/2012;1200;3;
83743;18/12/2012;1200;0;
83743;19/12/2012;1200;0;
83743;20/12/2012;1200;0.3;
83743;21/12/2012;1200;0;
83743;22/12/2012;1200;0;
83743;23/12/2012;1200;0;
83743;24/12/2012;1200;0;
83743;25/12/2012;1200;0;
83743;26/12/2012;1200;0;
83743;27/12/2012;1200;0;
83743;28/12/2012;1200;0;
83743;29/12/2012;1200;0;
83743;30/12/2012;1200;0;
83743;31/12/2012;1200;0.6;
In [ ]:
Content source: gems-uff/noworkflow
Similar notebooks: