Skip to content
GitLab
Menu
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
c2c4a98f
Commit
c2c4a98f
authored
Apr 05, 2019
by
Reimar H Leike
Browse files
deleted senseless requirement in GaussianEnergy
parent
a523358e
Pipeline
#46468
passed with stages
in 8 minutes and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty5/operators/energy_operators.py
View file @
c2c4a98f
...
...
@@ -20,6 +20,7 @@ import numpy as np
from
..
import
utilities
from
..domain_tuple
import
DomainTuple
from
..field
import
Field
from
..multi_field
import
MultiField
from
..linearization
import
Linearization
from
..sugar
import
makeDomain
,
makeOp
from
.linear_operator
import
LinearOperator
...
...
@@ -122,7 +123,8 @@ class GaussianEnergy(EnergyOperator):
def
__init__
(
self
,
mean
=
None
,
covariance
=
None
,
domain
=
None
):
if
mean
is
not
None
and
not
isinstance
(
mean
,
Field
):
raise
TypeError
if
not
isinstance
(
mean
,
MultiField
):
raise
TypeError
if
covariance
is
not
None
and
not
isinstance
(
covariance
,
LinearOperator
):
raise
TypeError
...
...
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