Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
isaak yansane-sisk
wendelin
Commits
015d4f28
Commit
015d4f28
authored
Jul 03, 2015
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another map reduce example.
parent
ec299ba6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletion
+36
-1
bt5/erp5_wendelin_examples/ExtensionTemplateItem/portal_components/extension.erp5.WendelinExamples.py
...Item/portal_components/extension.erp5.WendelinExamples.py
+8
-1
bt5/erp5_wendelin_examples/SkinTemplateItem/portal_skins/erp5_wendelin_examples/DataArray_calculateArraySliceAverageAndStore.xml
...examples/DataArray_calculateArraySliceAverageAndStore.xml
+28
-0
No files found.
bt5/erp5_wendelin_examples/ExtensionTemplateItem/portal_components/extension.erp5.WendelinExamples.py
View file @
015d4f28
...
...
@@ -212,5 +212,12 @@ def game_of_life(self):
for
i
in
range
(
4
):
iterate_2
(
Z
)
print_list
.
append
(
str
(
Z
))
return
'
\
n
\
n
'
.
join
(
print_list
)
return
'
\
n
\
n
'
.
join
(
print_list
)
\ No newline at end of file
def
DataArray_calculateArraySliceAverageAndStore
(
self
,
start
,
end
):
"""
Compute average on a data array slice and store result on an Active Process.
"""
zarray
=
self
.
getArray
()
return
np
.
average
(
zarray
[
start
:
end
])
\ No newline at end of file
bt5/erp5_wendelin_examples/SkinTemplateItem/portal_skins/erp5_wendelin_examples/DataArray_calculateArraySliceAverageAndStore.xml
0 → 100644
View file @
015d4f28
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ExternalMethod"
module=
"Products.ExternalMethod.ExternalMethod"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_function
</string>
</key>
<value>
<string>
DataArray_calculateArraySliceAverageAndStore
</string>
</value>
</item>
<item>
<key>
<string>
_module
</string>
</key>
<value>
<string>
WendelinExamples
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
DataArray_calculateArraySliceAverageAndStore
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment