Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120423161
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
Fri, Jul 4, 06:53
Size
303 B
Mime Type
text/x-python
Expires
Sun, Jul 6, 06:53 (2 d)
Engine
blob
Format
Raw Data
Handle
27186579
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