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
ece7b47f
There was a problem fetching the pipeline summary.
Commit
ece7b47f
authored
7 years ago
by
Philipp Arras
Browse files
Options
Downloads
Patches
Plain Diff
More renamings
parent
1bd43e72
No related branches found
No related tags found
2 merge requests
!265
WIP: Even more fun with linear operators
,
!263
WIP: Draw sample2
Pipeline
#
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
nifty4/models/__init__.py
+3
-3
3 additions, 3 deletions
nifty4/models/__init__.py
nifty4/models/constant.py
+2
-2
2 additions, 2 deletions
nifty4/models/constant.py
nifty4/models/variable.py
+2
-2
2 additions, 2 deletions
nifty4/models/variable.py
with
7 additions
and
7 deletions
nifty4/models/__init__.py
+
3
−
3
View file @
ece7b47f
from
.constant
import
Constant
Model
from
.constant
import
Constant
from
.local_nonlinearity
import
LocalModel
from
.model
import
LinearModel
,
Model
from
.
position
import
PositionModel
from
.
variable
import
Variable
__all__
=
[
'
Model
'
,
'
Constant
Model
'
,
'
LocalModel
'
,
'
PositionModel
'
,
__all__
=
[
'
Model
'
,
'
Constant
'
,
'
LocalModel
'
,
'
Variable
'
,
'
LinearModel
'
]
This diff is collapsed.
Click to expand it.
nifty4/models/constant.py
+
2
−
2
View file @
ece7b47f
...
...
@@ -2,9 +2,9 @@ from ..operators import MultiSkyGradientOperator
from
.model
import
Model
class
Constant
Model
(
Model
):
class
Constant
(
Model
):
def
__init__
(
self
,
position
,
constant
):
super
(
Constant
Model
,
self
).
__init__
(
position
)
super
(
Constant
,
self
).
__init__
(
position
)
self
.
_constant
=
constant
self
.
_value
=
self
.
_constant
...
...
This diff is collapsed.
Click to expand it.
nifty4/models/
position
.py
→
nifty4/models/
variable
.py
+
2
−
2
View file @
ece7b47f
...
...
@@ -3,12 +3,12 @@ import nifty4 as ift
from
.model
import
Model
class
PositionModel
(
Model
):
class
Variable
(
Model
):
"""
Returns the MultiField.
"""
def
__init__
(
self
,
position
):
super
(
PositionModel
,
self
).
__init__
(
position
)
super
(
Variable
,
self
).
__init__
(
position
)
self
.
_value
=
position
self
.
_gradient
=
ift
.
ScalingOperator
(
1.
,
position
.
domain
)
...
...
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