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
13
Merge Requests
13
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
edd81a72
Commit
edd81a72
authored
Jan 29, 2019
by
Martin Reinecke
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'cosm' into 'NIFTy_5'
Various stuff by Philipp A See merge request ift/nifty-dev!206
parents
94e8fc43
aef6ea9b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
11 deletions
+22
-11
.gitlab-ci.yml
.gitlab-ci.yml
+2
-6
Dockerfile
Dockerfile
+1
-1
nifty5/field.py
nifty5/field.py
+4
-4
nifty5/library/correlated_fields.py
nifty5/library/correlated_fields.py
+15
-0
No files found.
.gitlab-ci.yml
View file @
edd81a72
...
...
@@ -51,18 +51,14 @@ test_mpi:
-
mpiexec -n 2 --bind-to none pytest-3 -q test
pages
:
stage
:
release
before_script
:
-
ls
# FIXME Build only for main branch and set stage to release
stage
:
test
script
:
-
python3 setup.py install --user -f
-
sh docs/generate.sh
-
mv docs/build/ public/
artifacts
:
paths
:
-
public
only
:
-
NIFTy_4
before_script
:
-
python3 setup.py install --user -f
...
...
Dockerfile
View file @
edd81a72
...
...
@@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y \
# Packages needed for NIFTy
python3-scipy \
# Documentation build dependencies
python3-sphinx-rtd-theme \
python3-sphinx-rtd-theme
dvipng texlive-latex-base texlive-latex-extra
\
# Testing dependencies
python3-pytest-cov jupyter \
# Optional NIFTy dependencies
...
...
nifty5/field.py
View file @
edd81a72
...
...
@@ -36,8 +36,8 @@ class Field(object):
This object's global shape must match the domain shape
After construction, the object will no longer be writeable!
Note
----
Note
s
----
-
If possible, do not invoke the constructor directly, but use one of the
many convenience functions for instantiation!
"""
...
...
@@ -190,8 +190,8 @@ class Field(object):
def
val
(
self
):
"""dobj.data_object : the data object storing the field's entries.
Note
----
Note
s
----
-
This property is intended for low-level, internal use only. Do not use
from outside of NIFTy's core; there should be better alternatives.
"""
...
...
nifty5/library/correlated_fields.py
View file @
edd81a72
...
...
@@ -50,6 +50,13 @@ def CorrelatedField(target, amplitude_operator, name='xi', codomain=None):
-------
Operator
Correlated field
Notes
-----
In NIFTy, non-harmonic RGSpaces are by definition periodic. Therefore
the operator constructed by this method will output a correlated field
with *periodic* boundary conditions. If a non-periodic field is needed,
one needs to combine this operator with a :class:`FieldZeroPadder`.
"""
tgt
=
DomainTuple
.
make
(
target
)
if
len
(
tgt
)
>
1
:
...
...
@@ -90,6 +97,14 @@ def MfCorrelatedField(target, amplitudes, name='xi'):
-------
Operator
Correlated field
Notes
-----
In NIFTy, non-harmonic RGSpaces are by definition periodic. Therefore
the operator constructed by this method will output a correlated field
with *periodic* boundary conditions. If a non-periodic field is needed,
one needs to combine this operator with a :class:`FieldZeroPadder` or even
two (one for the energy and one for the spatial subdomain)
"""
tgt
=
DomainTuple
.
make
(
target
)
if
len
(
tgt
)
!=
2
:
...
...
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