Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F83598641
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
Wed, Sep 18, 01:02
Size
386 B
Mime Type
text/x-python
Expires
Fri, Sep 20, 01:02 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20675620
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