This file contains 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
#!/usr/bin/env python | |
import sys | |
from pybel import readfile | |
import numpy as np | |
if __name__ == "__main__": | |
if len(sys.argv) < 2: | |
sys.exit("Expecting one argument. Abort.") |
This file contains 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
#!/usr/bin/python | |
import numpy as np | |
from scipy.linalg import norm | |
def read_vector(nome): | |
p = np.zeros(3) | |
for i in range(3): | |
p[i] = float(raw_input("%s_%d = " % (nome, i))) |
NewerOlder