Commit 9132580c authored by abbasaa's avatar abbasaa
Browse files

removed executables

parent 026151c6
pqr_file = open("./off/1mag.pqr0.51.01.0.off", 'r')
pqr_lines = pqr_file.readlines()
pqr_file.close()
pqr_lines.pop(0)
num_vertices = int(pqr_lines[0].split()[0])
pqr_lines.pop(0)
min_x = 10.
min_y = 10.
min_z = 10.
for i, line in enumerate(pqr_lines):
if i == num_vertices:
break
x, y, z = float(line.split()[0]), float(line.split()[1]), float(line.split()[2])
if x < min_x:
min_x = x
if y < min_y:
min_y = y
if z < min_z:
min_z = z
print("min_x: ", str(min_x))
print("min_y: ", str(min_y))
print("min_z: ", str(min_z))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment