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
db3e0bfa
Commit
db3e0bfa
authored
6 years ago
by
Philipp Arras
Browse files
Options
Downloads
Patches
Plain Diff
Simplification
parent
dcfab6d7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
nifty5/operators/linear_operator.py
+2
-4
2 additions, 4 deletions
nifty5/operators/linear_operator.py
nifty5/operators/operator.py
+2
-4
2 additions, 4 deletions
nifty5/operators/operator.py
with
4 additions
and
8 deletions
nifty5/operators/linear_operator.py
+
2
−
4
View file @
db3e0bfa
...
...
@@ -263,8 +263,6 @@ class LinearOperator(Operator):
s
=
"
The operator
'
s and field
'
s domains don
'
t match.
"
from
..domain_tuple
import
DomainTuple
from
..multi_domain
import
MultiDomain
if
not
isinstance
(
self
.
_dom
(
mode
),
[
DomainTuple
,
MultiDomain
])
or
isinstance
(
x
.
domain
,
[
DomainTuple
,
MultiDomain
]):
s
+=
"
One of the domains is neither a `DomainTuple` nor a `MultiDomain`.
"
if
not
isinstance
(
self
.
_dom
(
mode
),
[
DomainTuple
,
MultiDomain
]):
s
+=
"
Your operator
'
s domain is neither a `DomainTuple` nor a `MultiDomain`.
"
raise
ValueError
(
s
)
This diff is collapsed.
Click to expand it.
nifty5/operators/operator.py
+
2
−
4
View file @
db3e0bfa
...
...
@@ -70,10 +70,8 @@ class Operator(NiftyMetaBase()):
s
=
"
The operator
'
s and field
'
s domains don
'
t match.
"
from
..domain_tuple
import
DomainTuple
from
..multi_domain
import
MultiDomain
if
not
isinstance
(
self
.
_dom
(
mode
),
[
DomainTuple
,
MultiDomain
])
or
isinstance
(
x
.
domain
,
[
DomainTuple
,
MultiDomain
]):
s
+=
"
One of the domains is neither a `DomainTuple` nor a `MultiDomain`.
"
if
not
isinstance
(
self
.
_dom
(
mode
),
[
DomainTuple
,
MultiDomain
]):
s
+=
"
Your operator
'
s domain is neither a `DomainTuple` nor a `MultiDomain`.
"
raise
ValueError
(
s
)
def
__call__
(
self
,
x
):
...
...
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