Page MenuHomec4science

dummy_file.py
No OneTemporary

File Metadata

Created
Tue, Jul 16, 22:01

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
import argparse
parser = argparse.ArgumentParser(description='Create Part Geometry and Save')
parser.add_argument("data_file", type=str, help='filename of the geometry data')
parser.add_argument("save_file", type=str, help='name of the step file to be saved')
args = parser.parse_args()
print(args.data_file)
#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