This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/home/dhowarth/distai/dai_testbed/risk_demo_1/RoutingCode/mcp_fair.py", line 116, in <module> | |
visualize(F, pathlist, bwdict) | |
File "/home/dhowarth/distai/dai_testbed/risk_demo_1/RoutingCode/visualization.py", line 70, in visualize | |
draw(G, sorted_paths, bwdict) | |
File "/home/dhowarth/distai/dai_testbed/risk_demo_1/RoutingCode/visualization.py", line 54, in draw | |
nx.draw_networkx_edges(G, pos, edgelist=path, edge_color=[color], width=2, connectionstyle=[f'arc3,rad={offset}']) | |
File "/home/dhowarth/apps/anaconda3/envs/distai/lib/python3.9/site-packages/networkx/drawing/nx_pylab.py", line 913, in draw_networkx_edges | |
edge_viz_obj = _draw_networkx_edges_fancy_arrow_patch() | |
File "/home/dhowarth/apps/anaconda3/envs/distai/lib/python3.9/site-packages/networkx/drawing/nx_pylab.py", line 779, in _draw_networkx_edges_fancy_arrow_patch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = rand(10,2); | |
c = a(:); | |
b = reshape(c',10,2); | |
b == a ; % should return true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 ## | |
2 # Host Database | |
3 # | |
4 # localhost is used to configure the loopback interface | |
5 # when the system is booting. Do not change this entry. | |
6 ## | |
7 127.0.0.1 localhost | |
8 255.255.255.255 broadcasthost | |
9 ::1 localhost | |
10 0.0.0.0 reddit.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "krns4:sentence-18": "krns2-active-15", | |
"krns2:sentence-19": "krns2-active-16", | |
"krns2:sentence-30": "krns2-passive-11", | |
"krns2:sentence-31": "krns2-passive-12", | |
"krns2:sentence-34": "krns2-passive-15", | |
"krns2:sentence-35": "krns2-passive-16", | |
"krns2:sentence-10": "krns2-active-7", | |
"krns2:sentence-11": "krns2-active-8", | |
"krns2:sentence-12": "krns2-active-9", | |
"krns2:sentence-13": "krns2-active-10", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Applying baseline correction ... (mode: mean) | |
Applying baseline correction ... (mode: mean) | |
Applying baseline correction ... (mode: mean) | |
Applying baseline correction ... (mode: mean) | |
Applying baseline correction ... (mode: mean) | |
Applying baseline correction ... (mode: mean) | |
Applying baseline correction ... (mode: mean) | |
Applying baseline correction ... (mode: mean) | |
Applying baseline correction ... (mode: mean) | |
Traceback (most recent call last): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> a = 5 *[[-1,1]] | |
>>> a | |
[[-1, 1], [-1, 1], [-1, 1], [-1, 1], [-1, 1]] | |
>>> a[1][0] = 2 | |
>>> a | |
[[2, 1], [2, 1], [2, 1], [2, 1], [2, 1]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Information on complex Morlet wavelet. | |
Complex Morlet Wavelet | |
Definition: a complex Morlet wavelet is | |
cmor(x) = (pi*Fb)^{-0.5}*exp(2*i*pi*Fc*x)*exp(-(x^2)/Fb) | |
depending on two parameters: | |
Fb is a bandwidth parameter | |
Fc is a wavelet center frequency | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BlogsController < ApplicationController | |
... | |
def show | |
@blog = @blog.find(params[:id]) | |
@blog = @blog.blog_clone if params[:preview] | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BlogController < ApplicationController | |
... | |
def show | |
@blog = @blog.find(params[:id]) | |
@blog = @blog.blog_clone if params[:preview] | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Blog < ActiveRecord::Base | |
has_one :blog_clone | |
... | |
def clone | |
self.blog_clone = BlogClone.new if not self.blog_clone | |
self.blog_clone.header = self.header | |
self.blog_clone.footer = self.footer | |
self.blog_clone.save |
NewerOlder