Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77592448
read_data.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Aug 15, 09:00
Size
386 B
Mime Type
text/x-python
Expires
Sat, Aug 17, 09:00 (2 d)
Engine
blob
Format
Raw Data
Handle
19893239
Attached To
R11910 Additive Manufacturing Work
read_data.py
View Options
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Nov 17 12:36:17 2021
@author: ekinkubilay
"""
def
read_data
(
file_name
):
points
=
[]
f
=
open
(
file_name
)
lines
=
f
.
readlines
()
for
line
in
lines
:
line
=
line
.
split
(
','
)
coord
=
(
float
(
line
[
0
]),
float
(
line
[
1
]),
float
(
line
[
2
]))
points
.
append
(
coord
)
f
.
close
()
return
points
Event Timeline
Log In to Comment