Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
f69589b8
Commit
f69589b8
authored
Nov 06, 2017
by
Martin Reinecke
Browse files
add fill() method
parent
900722fe
Pipeline
#21115
passed with stage
in 4 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/data_objects/my_own_do.py
View file @
f69589b8
...
...
@@ -49,6 +49,9 @@ class data_object(object):
else
:
return
data_object
(
data
)
def
fill
(
self
,
fill_value
):
self
.
_data
.
fill
(
fill_value
)
def
sum
(
self
,
axis
=
None
):
return
self
.
_contraction_helper
(
"sum"
,
axis
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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