Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NIFTy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ift
NIFTy
Commits
758c8ef5
There was a problem fetching the pipeline summary.
Commit
758c8ef5
authored
8 years ago
by
Theo Steininger
Browse files
Options
Downloads
Plain Diff
Merge branch 'space_docstring' into space_docstrings
# Conflicts: # nifty/spaces/space/space.py
parents
e5d5cd39
26eb1cae
No related branches found
No related tags found
1 merge request
!83
Space docstrings
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nifty/spaces/space/space.py
+34
-8
34 additions, 8 deletions
nifty/spaces/space/space.py
with
34 additions
and
8 deletions
nifty/spaces/space/space.py
+
34
−
8
View file @
758c8ef5
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
__future__
import
division
"""
from __future__ import division
import abc
import abc
...
@@ -24,17 +24,43 @@ from nifty.domain_object import DomainObject
...
@@ -24,17 +24,43 @@ from nifty.domain_object import DomainObject
class Space(DomainObject):
class Space(DomainObject):
def
__init__
(
self
):
"""
The
abstract
base
class
for
all
NIFTy
spaces
.
"""
An
instance
of
a
space
contains
information
about
the
manifolds
geometry
and
enhances
the
functionality
of
DomainObject
by
methods
that
are
needed
for
powerspectrum
analysis
and
smoothing
.
Parameters
Parameters
----------
----------
None
.
None
Returns
Attributes
-------
----------
None.
dim
:
np
.
int
"""
Total
number
of
dimensionality
,
i
.
e
.
the
number
of
pixels
.
harmonic
:
bool
Specifies
whether
the
space
is
a
signal
or
harmonic
space
.
total_volume
:
np
.
float
The
total
volume
of
the
space
.
shape
:
tuple
of
np
.
ints
The
shape
of
the
space
'
s data array.
Raises
------
TypeError
Raised if instantiated directly.
Notes
-----
`Space` is an abstract base class. In order to allow for instantiation the
methods `get_distance_array`, `total_volume` and `copy` must be implemented
as well as the abstract methods inherited from `DomainObject`.
See Also
--------
distributor
"""
def __init__(self):
super(Space, self).__init__()
super(Space, self).__init__()
@abc.abstractproperty
@abc.abstractproperty
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment