Skip to content

Commit

Permalink
fix bug in notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
daze authored and daze committed Mar 10, 2018
1 parent c294da1 commit 7007128
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 77 deletions.
149 changes: 73 additions & 76 deletions output/Traj.txt
Original file line number Diff line number Diff line change
@@ -1,76 +1,73 @@
On
0.0 75.11687031270783
0.05 75.49339565848648
0.1 75.87180832028355
0.15 76.25211744940444
0.2 76.63433266778353
0.25 77.01846386079471
0.3 77.40452051952265
0.35 77.79251229347607
0.4 78.18244888340642
0.45 78.57434003914054
0.5 78.96819555760695
0.55 79.36402528507523
0.6 79.76183911730494
0.65 80.1616469996623
0.7 80.56345892737062
0.75 80.96728494574947
0.8 81.37313515046914
0.85 81.78101968780575
0.9 82.19094875489398
0.95 82.60293259998188
1.0 83.016981522687
1.05 83.43310587425401
Off
1.05 83.85131605781336
1.1 83.43310535929777
1.15 83.0169805276168
1.2 82.6029315001843
1.25 82.19094778551916
1.3 81.78101872533377
1.35 81.37313419497387
1.4 80.96728399525003
1.45 80.56345798091832
1.5 80.16164605777713
1.55 79.76183818010855
1.6 79.36402435254878
1.65 78.96819462973578
1.7 78.57433911590608
1.75 78.18244796464573
1.8 77.79251137865518
1.85 77.40451960950065
1.9 77.01846295736786
1.95 76.63433177082038
2.0 76.25211644655855
2.05 75.87180742917934
2.1 75.49339521093752
On
2.1 75.11687033150794
2.15 75.49339567759955
2.2 75.87180833918595
2.25 76.25211746968351
2.3 76.63433268784655
2.35 77.01846388095817
2.4 77.4045205397875
2.45 77.79251231384514
2.5 78.18244890387692
2.55 78.57434005971332
2.6 78.96819557828285
2.65 79.36402530585478
2.7 79.76183913818866
2.75 80.16164702065068
2.8 80.5634589484642
2.85 80.96728496694878
2.9 81.37313517177472
2.95 81.78101970921811
3.0 82.19094877641369
3.05 82.60293262160945
3.1 83.01698154442298
3.15 83.43310589609894
3.2 83.85131607976778
3.25 84.27162255070587
3.3 84.69403581659685
3.35 85.11856643779441
3.4 85.54522502758616
3.45 85.9740222524591
3.5 86.40496883236615
0.0 75.36513494111749
0.05 75.74290472019997
0.1 76.12256805264495
0.15 76.50413412129275
0.2 76.8876125779359
0.25 77.27301334178641
0.3 77.66034593510459
0.35 78.04962003929238
0.4 78.44084538715921
0.45 78.83403176075774
0.5 79.2291889893958
0.55 79.6263269518851
0.6 80.02545557669117
0.65 80.42658484205006
0.7 80.82972477621979
0.75 81.23488545772014
0.8 81.64207701558806
0.85 82.05130962963354
0.9 82.46259353069325
0.95 82.87593900088615
1.0 83.29135637387051
1.05 83.70885603510236
1.1 84.12844842209492
1.1 84.55014402467971
1.15 84.12844790272061
1.2 83.70885503178842
1.25 83.29135526422652
1.3 82.87593802293648
1.35 82.46259255970634
1.4 82.0513086656841
1.45 81.64207605667998
1.5 81.23488450289511
1.55 80.82972382600354
1.6 80.42658389656496
1.65 80.02545463591274
1.7 79.62632601579885
1.75 79.22918805798723
1.8 78.83403083400262
1.85 78.44084446489346
1.9 78.04961912098125
1.95 77.66034502161216
2.0 77.27301243491343
2.05 76.88761167755021
2.1 76.50413311448351
2.1 76.12256715872924
2.15 76.50413358731487
2.2 76.88761259977169
2.25 77.27301347130742
2.3 77.6603459505988
2.35 78.04962005661837
2.4 78.44084540731505
2.45 78.83403178139055
2.5 79.22918900947046
2.55 79.62632697191884
2.6 80.0254555968297
2.65 80.4265848622985
2.7 80.82972479657344
2.75 81.23488547817355
2.8 81.64207703614251
2.85 82.0513096502909
2.9 82.46259355145418
2.95 82.87593902175118
3.0 83.29135639484016
3.05 83.70885605617713
3.1 84.12844844327533
3.15 84.55014404596632
3.2 84.9739534066621
3.25 85.39988712061879
3.3 85.82795583620141
3.35 86.25817025515012
3.4 86.69054113284781
3.45 87.12507927858898
3.5 87.56179555584988
2 changes: 1 addition & 1 deletion src/core/reachtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, tube, variables, modes):

curMode = ""
for line in tube:
if isinstance(line, unicode):
if isinstance(line, unicode) or isinstance(line, str):
curMode = line.split('->')[-1].split(',')[0] # Get current mode name
for var in ['t']+self.variables:
self.tubeDic[curMode][var].append(line)
Expand Down

0 comments on commit 7007128

Please sign in to comment.