Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79886324
generate_points_loop.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, Aug 28, 19:30
Size
303 B
Mime Type
text/x-python
Expires
Fri, Aug 30, 19:30 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20248404
Attached To
rLIBMULTISCALE LibMultiScale
generate_points_loop.py
View Options
import
numpy
as
np
def
compute
(
**
kwargs
):
pts
=
5
min_pos
=
-
200
max_pos
=
200
delta
=
(
max_pos
-
min_pos
)
/
(
pts
-
1
)
print
(
delta
)
pos
=
np
.
empty
((
pts
,
3
))
for
i
in
range
(
pts
):
pos
[
i
,
0
]
=
min_pos
+
delta
*
i
pos
[
i
,
1
]
=
0.
pos
[
i
,
2
]
=
0.
return
pos
Event Timeline
Log In to Comment