In [1]:
import sys
sys.path.insert(0,'..')
from notebookFunctions import *
# from .. import notebookFunctions
import matplotlib.pyplot as plt
%matplotlib inline
plt.rcParams['figure.figsize'] = (10,6.180) #golden ratio
# %matplotlib notebook
%load_ext autoreload
%autoreload 2
In [80]:
pre = "/Users/weilu/Research/server/mar_2018/03_week"
temp = 490
location = pre + "/third_combined_expectedDistance_freeEnergy/_350-550/2d_z_qw/force_0.0/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, plot1d=True)
In [81]:
pre = "/Users/weilu/Research/server/mar_2018/03_week"
temp = 490
location = pre + "/third_combined_expectedDistance_freeEnergy/_350-550/2d_z_qw/force_0.0/"
location2 = location + f"evpb-{temp}.dat"
(xi,yi,zi) = plot2d(location2, zmax=100)
plt.plot(xi[path[:,1]], yi[path[:,0]], 'r.-')
plt.figure()
f_on_path = [zi[tuple(p)] for p in reversed(path)]
plt.plot(f_on_path)
Out[81]:
In [100]:
pre = "/Users/weilu/Research/server/mar_2018/03_week"
temp = 490
location = pre + "/second_combined_z_6_freeEnergy/_350-550/2d_z_qw/force_0.0/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, plot1d=True)
In [110]:
pre = "/Users/weilu/Research/server/mar_2018/03_week"
temp = 500
location = pre + "/second_z_6_freeEnergy_5/_350-550/2d_z_qw/force_0.0/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, plot1d=True)
In [45]:
pre = "/Users/weilu/Research/server/mar_2018/03_week"
temp = 490
location = pre + "/second_combined_z_6_freeEnergy/_350-550/2d_z_qw/force_0.0/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(12,4))
In [94]:
pre = "/Users/weilu/Research/server/mar_2018/03_week"
temp = 490
location = pre + "/second_combined_expectedDistance_freeEnergy/_350-550/2d_z_qw/test/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(12,4))
location2 = location + f"evpb-{temp}.dat"
(xi,yi,zi) = plot2d(location2, zmax=100)
plt.plot(xi[path[:,1]], yi[path[:,0]], 'r.-')
plt.figure()
f_on_path = [zi[tuple(p)] for p in reversed(path)]
plt.plot(f_on_path)
Out[94]:
In [52]:
pre = "/Users/weilu/Research/server/mar_2018/03_week"
temp = 500
location = pre + "/second_combined_expectedDistance_freeEnergy/_350-550/2d_z_qw/test2/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(12,4))
In [59]:
pre = "/Users/weilu/Research/server/mar_2018/03_week"
temp = 530
location = pre + "/second_combined_expectedDistance_freeEnergy/_350-550/2d_z_qw/test2/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(12,4))
In [60]:
pre = "/Users/weilu/Research/server/mar_2018/03_week"
temp = 530
location = pre + "/second_combined_expectedDistance_freeEnergy/_350-550/2d_z_qw/test2/"
location2 = location + f"evpb-{temp}.dat"
(xi,yi,zi) = plot2d(location2, zmax=100)
plt.plot(xi[path[:,1]], yi[path[:,0]], 'r.-')
plt.figure()
f_on_path = [zi[tuple(p)] for p in reversed(path)]
plt.plot(f_on_path)
Out[60]:
In [62]:
pre = "/Users/weilu/Research/server/mar_2018/03_week"
temp = 500
location = pre + "/second_combined_expectedDistance_freeEnergy/_350-550/2d_z_qw/only_less_than_50/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(12,4))
In [113]:
pre = "/Users/weilu/Research/server/mar_2018"
temp = 500
location = pre + "/extra_03_week/fourth_with_real_distance/_350-550/2d_z_qw/force_0.0/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(12,4))
location2 = location + f"evpb-{temp}.dat"
(xi,yi,zi) = plot2d(location2, zmax=100)
plt.plot(xi[path[:,1]], yi[path[:,0]], 'r.-')
plt.figure()
f_on_path = [zi[tuple(p)] for p in reversed(path)]
plt.plot(f_on_path)
Out[113]:
In [112]:
pre = "/Users/weilu/Research/server/mar_2018/03_week"
temp = 500
location = pre + "/second_combined_expectedDistanceReal/_350-550/2d_z_qw/force_0.01/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(12,4))
location2 = location + f"evpb-{temp}.dat"
(xi,yi,zi) = plot2d(location2, zmax=100)
plt.plot(xi[path[:,1]], yi[path[:,0]], 'r.-')
plt.figure()
f_on_path = [zi[tuple(p)] for p in reversed(path)]
plt.plot(f_on_path)
Out[112]:
In [87]:
pre = "/Users/weilu/Research/server/mar_2018/03_week"
temp = 500
location = pre + "/second_combined_expectedDistance_freeEnergy/_350-550/2d_z_qw/higher_than_50/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(12,4))
location2 = location + f"evpb-{temp}.dat"
(xi,yi,zi) = plot2d(location2, zmax=100)
plt.plot(xi[path[:,1]], yi[path[:,0]], 'r.-')
plt.figure()
f_on_path = [zi[tuple(p)] for p in reversed(path)]
plt.plot(f_on_path)
Out[87]:
In [89]:
pre = "/Users/weilu/Research/server/mar_2018/03_week"
temp = 500
location = pre + "/second_combined_expectedDistanceReal/_350-550/2d_z_qw/force_0.0/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(12,4))
location2 = location + f"evpb-{temp}.dat"
(xi,yi,zi) = plot2d(location2, zmax=100)
plt.plot(xi[path[:,1]], yi[path[:,0]], 'r.-')
plt.figure()
f_on_path = [zi[tuple(p)] for p in reversed(path)]
plt.plot(f_on_path)
Out[89]:
In [176]:
pre = "/Users/weilu/Research/server/mar_2018/04_week"
temp = 270
location = pre + "/sixth_with_real_distance_2/_280-350/2d_z_qw/single_temp/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(5, 4))
location2 = location + f"evpb-{temp}.dat"
(xi,yi,zi) = plot2d(location2, zmax=100)
plt.plot(xi[path[:,1]], yi[path[:,0]], 'r.-')
plt.figure()
f_on_path = [zi[tuple(p)] for p in reversed(path)]
plt.plot(f_on_path)
Out[176]:
In [179]:
pre = "/Users/weilu/Research/server/mar_2018/04_week"
temp = 270
location = pre + "/sixth_with_real_distance_2/_280-350/2d_z_qw/single_temp_with_force/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(5, 4))
location2 = location + f"evpb-{temp}.dat"
(xi,yi,zi) = plot2d(location2, zmax=100)
plt.plot(xi[path[:,1]], yi[path[:,0]], 'r.-')
plt.figure()
f_on_path = [zi[tuple(p)] for p in reversed(path)]
plt.plot(f_on_path)
Out[179]:
In [208]:
pre = "/Users/weilu/Research/server/mar_2018/04_week"
temp = 300
location = pre + "/sixth_with_real_distance_3/_280-350/2d_qw_dis/force_0.0/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(25, 2), end=(5,25))
location2 = location + f"evpb-{temp}.dat"
(xi,yi,zi) = plot2d(location2, zmax=100)
plt.plot(xi[path[:,1]], yi[path[:,0]], 'r.-')
plt.figure()
f_on_path = [zi[tuple(p)] for p in reversed(path)]
plt.plot(f_on_path)
Out[208]:
In [213]:
pre = "/Users/weilu/Research/server/mar_2018/04_week"
temp = 270
location = pre + "/sixth_with_real_distance_3/_280-350/2d_z_dis/force_0.0/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(5, 14))
location2 = location + f"evpb-{temp}.dat"
(xi,yi,zi) = plot2d(location2, zmax=100)
plt.plot(xi[path[:,1]], yi[path[:,0]], 'r.-')
plt.figure()
f_on_path = [zi[tuple(p)] for p in reversed(path)]
plt.plot(f_on_path)
Out[213]:
In [212]:
pre = "/Users/weilu/Research/server/mar_2018/04_week"
temp = 270
location = pre + "/sixth_with_real_distance_3/_280-350/2d_z_dis/force_0.2/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(5, 14))
location2 = location + f"evpb-{temp}.dat"
(xi,yi,zi) = plot2d(location2, zmax=100)
plt.plot(xi[path[:,1]], yi[path[:,0]], 'r.-')
plt.figure()
f_on_path = [zi[tuple(p)] for p in reversed(path)]
plt.plot(f_on_path)
Out[212]:
In [ ]:
In [214]:
pre = "/Users/weilu/Research/server/mar_2018/04_week"
temp = 260
location = pre + "/sixth_with_real_distance_2/_280-350/2d_z_qw/block_small_bins/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(5, 14))
location2 = location + f"evpb-{temp}.dat"
(xi,yi,zi) = plot2d(location2, zmax=100)
plt.plot(xi[path[:,1]], yi[path[:,0]], 'r.-')
plt.figure()
f_on_path = [zi[tuple(p)] for p in reversed(path)]
plt.plot(f_on_path)
Out[214]:
In [215]:
pre = "/Users/weilu/Research/server/mar_2018/04_week"
temp = 260
location = pre + "/sixth_with_real_distance_2/_280-350/2d_z_qw/without_subsample_force_0.2/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(5, 14))
location2 = location + f"evpb-{temp}.dat"
(xi,yi,zi) = plot2d(location2, zmax=100)
plt.plot(xi[path[:,1]], yi[path[:,0]], 'r.-')
plt.figure()
f_on_path = [zi[tuple(p)] for p in reversed(path)]
plt.plot(f_on_path)
Out[215]:
In [152]:
pre = "/Users/weilu/Research/server/mar_2018/04_week"
temp = 260
location = pre + "/sixth_with_real_distance_2/_280-350/2d_z_qw/quick/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(5, 4))
location2 = location + f"evpb-{temp}.dat"
(xi,yi,zi) = plot2d(location2, zmax=100)
plt.plot(xi[path[:,1]], yi[path[:,0]], 'r.-')
plt.figure()
f_on_path = [zi[tuple(p)] for p in reversed(path)]
plt.plot(f_on_path)
Out[152]:
In [186]:
pre = "/Users/weilu/Research/server/mar_2018/04_week"
temp = 270
location = pre + "/sixth_with_real_distance_2/_280-350/2d_z_qw/another_single_temp/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(5,12))
location2 = location + f"evpb-{temp}.dat"
(xi,yi,zi) = plot2d(location2, zmax=100)
plt.plot(xi[path[:,1]], yi[path[:,0]], 'r.-')
plt.figure()
f_on_path = [zi[tuple(p)] for p in reversed(path)]
plt.plot(f_on_path)
Out[186]:
In [185]:
pre = "/Users/weilu/Research/server/mar_2018/04_week"
temp = 310
location = pre + "/sixth_with_real_distance/_280-350/2d_z_qw/quick/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(25,4))
location2 = location + f"evpb-{temp}.dat"
(xi,yi,zi) = plot2d(location2, zmax=100)
plt.plot(xi[path[:,1]], yi[path[:,0]], 'r.-')
plt.figure()
f_on_path = [zi[tuple(p)] for p in reversed(path)]
plt.plot(f_on_path)
Out[185]:
In [130]:
pre = "/Users/weilu/Research/server/mar_2018/extra_03_week"
temp = 480
location = pre + "/with_force_fourth_with_real_distance/_350-550/2d_z_qw/force_0.1/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(25,4))
location2 = location + f"evpb-{temp}.dat"
(xi,yi,zi) = plot2d(location2, zmax=100)
plt.plot(xi[path[:,1]], yi[path[:,0]], 'r.-')
plt.figure()
f_on_path = [zi[tuple(p)] for p in reversed(path)]
plt.plot(f_on_path)
Out[130]:
In [124]:
pre = "/Users/weilu/Research/server/mar_2018/extra_03_week"
temp = 480
location = pre + "/fourth_with_real_distance/_350-550/2d_z_qw/force_0.0/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(25,4))
location2 = location + f"evpb-{temp}.dat"
(xi,yi,zi) = plot2d(location2, zmax=100)
plt.plot(xi[path[:,1]], yi[path[:,0]], 'r.-')
plt.figure()
f_on_path = [zi[tuple(p)] for p in reversed(path)]
plt.plot(f_on_path)
Out[124]:
In [123]:
pre = "/Users/weilu/Research/server/mar_2018/extra_03_week"
temp = 480
location = pre + "/fourth_with_real_distance/_350-550/2d_z_dis/force_0.0/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(25,4))
location2 = location + f"evpb-{temp}.dat"
(xi,yi,zi) = plot2d(location2, zmax=100)
plt.plot(xi[path[:,1]], yi[path[:,0]], 'r.-')
plt.figure()
f_on_path = [zi[tuple(p)] for p in reversed(path)]
plt.plot(f_on_path)
Out[123]:
In [90]:
pre = "/Users/weilu/Research/server/mar_2018/03_week"
temp = 500
location = pre + "/second_combined_expectedDistanceReal/_350-550/2d_z_qw/k_0.01/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(12,4))
location2 = location + f"evpb-{temp}.dat"
(xi,yi,zi) = plot2d(location2, zmax=100)
plt.plot(xi[path[:,1]], yi[path[:,0]], 'r.-')
plt.figure()
f_on_path = [zi[tuple(p)] for p in reversed(path)]
plt.plot(f_on_path)
Out[90]:
In [83]:
pre = "/Users/weilu/Research/server/mar_2018/03_week"
temp = 500
location = pre + "/second_combined_expectedDistance_freeEnergy/_350-550/2d_z_qw/force_0.0/"
location2 = location + f"pmf-{temp}.dat"
path = shortest_path(location2, start=(12,4))
In [84]:
pre = "/Users/weilu/Research/server/mar_2018/03_week"
temp = 500
location = pre + "/second_combined_expectedDistance_freeEnergy/_350-550/2d_z_qw/force_0.0/"
location2 = location + f"evpb-{temp}.dat"
(xi,yi,zi) = plot2d(location2, zmax=100)
plt.plot(xi[path[:,1]], yi[path[:,0]], 'r.-')
plt.figure()
f_on_path = [zi[tuple(p)] for p in reversed(path)]
plt.plot(f_on_path)
# plt.ylim([0,25])
Out[84]:
In [ ]: