Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
29933473
Commit
29933473
authored
May 10, 2020
by
Martin Reinecke
Browse files
Merge branch 'fix_makeop' into 'NIFTy_6'
Fix makeOp See merge request
!457
parents
e71ecace
e01faa70
Pipeline
#74642
passed with stages
in 30 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty6/sugar.py
View file @
29933473
...
...
@@ -350,7 +350,7 @@ def makeOp(input, dom=None):
if
not
dom
==
input
.
domain
:
raise
ValueError
(
"domain mismatch"
)
if
input
.
domain
is
DomainTuple
.
scalar_domain
():
return
ScalingOperator
(
input
.
domain
,
float
(
input
.
val
)
)
return
ScalingOperator
(
input
.
domain
,
input
.
val
[()]
)
if
isinstance
(
input
,
Field
):
return
DiagonalOperator
(
input
)
if
isinstance
(
input
,
MultiField
):
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment