Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NIFTy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
10
Issues
10
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
NIFTy
Commits
86945e26
Commit
86945e26
authored
Jan 30, 2019
by
Lukas Platz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unified docstring terminology for structured_domain volumes
parent
c6c876cf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
nifty5/domains/structured_domain.py
nifty5/domains/structured_domain.py
+2
-2
nifty5/field.py
nifty5/field.py
+2
-2
No files found.
nifty5/domains/structured_domain.py
View file @
86945e26
...
...
@@ -30,7 +30,7 @@ class StructuredDomain(Domain):
@
property
def
scalar_dvol
(
self
):
"""float or None : uniform
cel
l volume, if applicable
"""float or None : uniform
pixe
l volume, if applicable
Returns the volume factors of this domain as a floating
point scalar, if the volume factors are all identical, otherwise
...
...
@@ -40,7 +40,7 @@ class StructuredDomain(Domain):
@
property
def
dvol
(
self
):
"""float or numpy.ndarray(dtype=float):
Volume factors
"""float or numpy.ndarray(dtype=float):
pixel volume(s)
Returns the volume factors of this domain, either as a floating
point scalar (if the volume factors are all identical) or as a
...
...
nifty5/field.py
View file @
86945e26
...
...
@@ -284,12 +284,12 @@ class Field(object):
return
res
def
weight
(
self
,
power
=
1
,
spaces
=
None
):
"""Weights the pixels of `self` with their invidual pixel
-volume
.
"""Weights the pixels of `self` with their invidual pixel
volumes
.
Parameters
----------
power : number
The pixel
s get weighted with the
volume-factor**power.
The pixel
values get multiplied with their
volume-factor**power.
spaces : None, int or tuple of int
Determines on which sub-domain the operation takes place.
...
...
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