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
d77f45fe
Commit
d77f45fe
authored
Jul 12, 2016
by
theos
Browse files
Modified naming of vol to volume_total
parent
76de9882
Changes
1
Hide whitespace changes
Inline
Side-by-side
space.py
View file @
d77f45fe
...
...
@@ -321,13 +321,14 @@ class Space(object):
return
dof
@
property
def
vol
(
self
):
collapsed_distances
=
[
np
.
sum
(
x
)
for
x
in
self
.
distances
]
return
reduce
(
lambda
x
,
y
:
x
*
y
,
collapsed_distances
)
def
vol
ume_total
(
self
):
raise
NotImplementedError
(
about
.
_errors
.
cstring
(
"ERROR: There is no generic volume for the Space base class."
)
)
@
property
def
vol_split
(
self
):
return
self
.
distances
def
volume_pixel
(
self
):
raise
NotImplementedError
(
about
.
_errors
.
cstring
(
"ERROR: There is no generic volume for the Space base class."
))
@
property
def
meta_volume
(
self
):
...
...
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