74f3e0f30dfbd833678ffd16150a2c6e4edd2fce,pygsp/graphs.py,Airfoil,__init__,#Airfoil#,791
Before Change
class Airfoil(Graph):
def __init__(self):
mat = io.loadmat(os.path.dirname(os.path.realpath(__file__)) + "/misc/airfoil.mat")
i_inds = mat["i_inds"]
j_inds = mat["j_inds"]
self.A = sparse.coo_matrix((np.ones((12289)), (np.reshape(i_inds, (12289)), np.reshape(j_inds, (12289)))), shape=(4254, 4254))
self.W = (self.A + sparse.csc_matrix.getH(self.A))/2
x = mat["x"]
y = mat["y"]
self.coords = np.array([x, y])
self.gtype = "Airfoil"
plotting = {}
After Change
def __init__(self):
airfoil = PointsCloud("airfoil")
i_inds = airfoil.i_inds
j_inds = airfoil.j_inds
self.A = sparse.coo_matrix((np.ones((12289)), (np.reshape(i_inds, (12289)), np.reshape(j_inds, (12289)))), shape=(4254, 4254))
self.W = (self.A + sparse.csc_matrix.getH(self.A))/2
x = airfoil.x
y = airfoil.y
self.coords = np.array([x, y])
self.gtype = "Airfoil"
self.plotting = {"limits": np.array([-1e-4, 1.01*np.max(x), -1e-4, 1.01*np.max(y)]),
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 16
Instances
Project Name: epfl-lts2/pygsp
Commit Name: 74f3e0f30dfbd833678ffd16150a2c6e4edd2fce
Time: 2015-01-06
Author: basile.chatillon@epfl.ch
File Name: pygsp/graphs.py
Class Name: Airfoil
Method Name: __init__
Project Name: epfl-lts2/pygsp
Commit Name: 74f3e0f30dfbd833678ffd16150a2c6e4edd2fce
Time: 2015-01-06
Author: basile.chatillon@epfl.ch
File Name: pygsp/graphs.py
Class Name: Logo
Method Name: __init__
Project Name: epfl-lts2/pygsp
Commit Name: 74f3e0f30dfbd833678ffd16150a2c6e4edd2fce
Time: 2015-01-06
Author: basile.chatillon@epfl.ch
File Name: pygsp/graphs.py
Class Name: Airfoil
Method Name: __init__
Project Name: epfl-lts2/pygsp
Commit Name: 74f3e0f30dfbd833678ffd16150a2c6e4edd2fce
Time: 2015-01-06
Author: basile.chatillon@epfl.ch
File Name: pygsp/graphs.py
Class Name: DavidSensorNet
Method Name: __init__