Page MenuHomec4science

dummy_file.py
No OneTemporary

File Metadata

Created
Fri, Oct 18, 15:05

dummy_file.py

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Nov 16 16:55:48 2021
@author: ekinkubilay
"""
#import numpy as np
#f = np.genfromtxt("points.txt", comments="#", delimiter=" ", usecols=(0,1,2))
points = []
f = open('points.txt')
lines = f.readlines()
for line in lines:
print(line)
line = line.split(',')
coord = (float(line[0]), float(line[1]), float(line[2]))
points.append(coord)
f.close()
"""
x = -51
y = 8
for i in range(25):
x += 1
print('({}, {}, 0),'.format(np.round(x,1),np.round(y,1)))
y -= 8
print('({}, {}, 0),'.format(np.round(x,1),np.round(y,1)))
x += 0.8
print('({}, {}, 0),'.format(np.round(x,1),np.round(y,1)))
y += 8
print('({}, {}, 0),'.format(np.round(x,1),np.round(y,1)))
x = 5
y = 8
for i in range(25):
x += 1
print('({}, {}, 0),'.format(np.round(x,1),np.round(y,1)))
y -= 8
print('({}, {}, 0),'.format(np.round(x,1),np.round(y,1)))
x += 0.8
print('({}, {}, 0),'.format(np.round(x,1),np.round(y,1)))
y += 8
print('({}, {}, 0),'.format(np.round(x,1),np.round(y,1)))
"""

Event Timeline