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
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
11
Merge Requests
11
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
ff8ae4c1
Commit
ff8ae4c1
authored
Jan 14, 2019
by
Philipp Arras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove usage of `NIFTy` in docs
parent
7bc7f7ba
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
18 additions
and
26 deletions
+18
-26
nifty5/data_objects/numpy_do.py
nifty5/data_objects/numpy_do.py
+1
-1
nifty5/domains/gl_space.py
nifty5/domains/gl_space.py
+1
-1
nifty5/domains/hp_space.py
nifty5/domains/hp_space.py
+1
-1
nifty5/domains/lm_space.py
nifty5/domains/lm_space.py
+1
-1
nifty5/domains/log_rg_space.py
nifty5/domains/log_rg_space.py
+1
-1
nifty5/domains/power_space.py
nifty5/domains/power_space.py
+1
-1
nifty5/domains/rg_space.py
nifty5/domains/rg_space.py
+1
-1
nifty5/domains/structured_domain.py
nifty5/domains/structured_domain.py
+1
-1
nifty5/field.py
nifty5/field.py
+7
-8
nifty5/library/amplitude_operator.py
nifty5/library/amplitude_operator.py
+0
-1
nifty5/operators/diagonal_operator.py
nifty5/operators/diagonal_operator.py
+1
-1
nifty5/operators/endomorphic_operator.py
nifty5/operators/endomorphic_operator.py
+2
-5
nifty5/operators/scaling_operator.py
nifty5/operators/scaling_operator.py
+0
-3
No files found.
nifty5/data_objects/numpy_do.py
View file @
ff8ae4c1
...
...
@@ -15,7 +15,7 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
# Data object module
for NIFTy
that uses simple numpy ndarrays.
# Data object module that uses simple numpy ndarrays.
import
numpy
as
np
from
numpy
import
absolute
,
clip
,
cos
,
cosh
,
empty
,
empty_like
,
exp
,
full
,
log
...
...
nifty5/domains/gl_space.py
View file @
ff8ae4c1
...
...
@@ -21,7 +21,7 @@ from .structured_domain import StructuredDomain
class
GLSpace
(
StructuredDomain
):
"""
NIFTy subclass for Gauss-Legendre pixelizations of the two-sphere
.
"""
Represents a 2-sphere with Gauss-Legendre pixelizations
.
Its harmonic partner domain is the
:class:`~nifty5.domains.lm_space.LMSpace`.
...
...
nifty5/domains/hp_space.py
View file @
ff8ae4c1
...
...
@@ -21,7 +21,7 @@ from .structured_domain import StructuredDomain
class
HPSpace
(
StructuredDomain
):
"""
NIFTy subclass for HEALPix discretizations of the two-sphere
.
"""
Represents 2-sphere with HEALPix discretization
.
Its harmonic partner domain is the
:class:`~nifty5.domains.lm_space.LMSpace`.
...
...
nifty5/domains/lm_space.py
View file @
ff8ae4c1
...
...
@@ -22,7 +22,7 @@ from .structured_domain import StructuredDomain
class
LMSpace
(
StructuredDomain
):
"""
NIFTy subclass for
sets of spherical harmonic coefficients.
"""
Represents
sets of spherical harmonic coefficients.
Its harmonic partner spaces are :class:`~nifty5.domains.hp_space.HPSpace`
and :class:`~nifty5.domains.gl_space.GLSpace`.
...
...
nifty5/domains/log_rg_space.py
View file @
ff8ae4c1
...
...
@@ -24,7 +24,7 @@ from .structured_domain import StructuredDomain
class
LogRGSpace
(
StructuredDomain
):
"""
NIFTy subclass for logarithmic Cartesian grids
.
"""
Represents a logarithmic Cartesian grid
.
Parameters
----------
...
...
nifty5/domains/power_space.py
View file @
ff8ae4c1
...
...
@@ -22,7 +22,7 @@ from .structured_domain import StructuredDomain
class
PowerSpace
(
StructuredDomain
):
"""
NIFTy class for spaces of
power spectra.
"""
Represents non-equidistantly binned spaces for
power spectra.
A power space is the result of a projection of a harmonic domain where
k-modes of equal length get mapped to one power index.
...
...
nifty5/domains/rg_space.py
View file @
ff8ae4c1
...
...
@@ -24,7 +24,7 @@ from .structured_domain import StructuredDomain
class
RGSpace
(
StructuredDomain
):
"""
NIFTy subclass for regular Cartesian grids
.
"""
Represents a regular Cartesian grid
.
Parameters
----------
...
...
nifty5/domains/structured_domain.py
View file @
ff8ae4c1
...
...
@@ -21,7 +21,7 @@ from .domain import Domain
class
StructuredDomain
(
Domain
):
"""The abstract base class for all structured
NIFTy
domains.
"""The abstract base class for all structured domains.
An instance of a space contains information about the manifold's
geometry and enhances the functionality of Domain by methods that
...
...
nifty5/field.py
View file @
ff8ae4c1
...
...
@@ -23,18 +23,15 @@ from .domain_tuple import DomainTuple
class
Field
(
object
):
_scalar_dom
=
DomainTuple
.
scalar_domain
()
"""The discrete representation of a continuous field over multiple spaces.
In NIFTy, Fields are used to store data arrays and carry all the needed
metainformation (i.e. the domain) for operators to be able to work
on them.
Stores data arrays and carry all the needed metainformation (i.e. the
domain) for operators to be able to operate
on them.
Parameters
----------
domain : DomainTuple
the domain of the new Field
val : data_object
This object's global shape must match the domain shape
After construction, the object will no longer be writeable!
...
...
@@ -42,9 +39,11 @@ class Field(object):
Notes
-----
If possible, do not invoke the constructor directly, but use one of the
many convenience functions for
Field construc
tion!
many convenience functions for
instantia
tion!
"""
_scalar_dom
=
DomainTuple
.
scalar_domain
()
def
__init__
(
self
,
domain
,
val
):
if
not
isinstance
(
domain
,
DomainTuple
):
raise
TypeError
(
"domain must be of type DomainTuple"
)
...
...
@@ -337,7 +336,7 @@ class Field(object):
"""
if
not
isinstance
(
x
,
Field
):
raise
TypeError
(
"The multiplier must be an instance of "
+
"the
NIFTy f
ield class"
)
"the
F
ield class"
)
from
.operators.outer_product_operator
import
OuterProduct
return
OuterProduct
(
self
,
x
.
domain
)(
x
)
...
...
@@ -360,7 +359,7 @@ class Field(object):
"""
if
not
isinstance
(
x
,
Field
):
raise
TypeError
(
"The dot-partner must be an instance of "
+
"the
NIFTy f
ield class"
)
"the
F
ield class"
)
if
x
.
_domain
!=
self
.
_domain
:
raise
ValueError
(
"Domain mismatch"
)
...
...
nifty5/library/amplitude_operator.py
View file @
ff8ae4c1
...
...
@@ -69,7 +69,6 @@ def SlopeOperator(domain, sm, sv, im, iv):
'''
Parameters
----------
sm, sv : slope_mean = expected exponent of power law (e.g. -4),
slope_variance (default=1)
...
...
nifty5/operators/diagonal_operator.py
View file @
ff8ae4c1
...
...
@@ -24,7 +24,7 @@ from .endomorphic_operator import EndomorphicOperator
class
DiagonalOperator
(
EndomorphicOperator
):
"""
NIFTy class for diagonal operators
.
"""
Represents a linear operator which is diagonal
.
The NIFTy DiagonalOperator class is a subclass derived from the
EndomorphicOperator. It multiplies an input field pixel-wise with its
...
...
nifty5/operators/endomorphic_operator.py
View file @
ff8ae4c1
...
...
@@ -21,12 +21,9 @@ from .linear_operator import LinearOperator
class
EndomorphicOperator
(
LinearOperator
):
"""NIFTy class for endomorphic operators.
The NIFTy EndomorphicOperator describes linear operators with identical
domain and target.
"""Represents a linear operator which is endomorphic, i.e. operators which
have identical domain and target.
"""
@
property
def
target
(
self
):
"""DomainTuple : returns :attr:`domain`
...
...
nifty5/operators/scaling_operator.py
View file @
ff8ae4c1
...
...
@@ -24,9 +24,6 @@ from .endomorphic_operator import EndomorphicOperator
class
ScalingOperator
(
EndomorphicOperator
):
"""Operator which multiplies a Field with a scalar.
The NIFTy ScalingOperator class is a subclass derived from the
EndomorphicOperator. It multiplies an input field with a given factor.
Parameters
----------
factor : scalar
...
...
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