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
e20caeab
Commit
e20caeab
authored
Jun 20, 2020
by
Philipp Arras
Browse files
Implement proper constant support 9/n
parent
5a2e38b6
Pipeline
#77012
passed with stages
in 13 minutes and 19 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/extra.py
View file @
e20caeab
...
...
@@ -318,7 +318,7 @@ def _linearization_value_consistency(op, loc):
def
_check_nontrivial_constant
(
op
,
loc
,
tol
,
ntries
,
only_r_differentiable
,
metric_sampling
,
max_combinations
=
np
.
inf
):
if
isinstance
(
op
.
domain
,
DomainTuple
):
return
# FIXME ?
return
keys
=
op
.
domain
.
keys
()
combis
=
[]
for
ll
in
range
(
1
,
len
(
keys
)):
...
...
test/test_operators/test_correlated_fields.py
View file @
e20caeab
...
...
@@ -109,6 +109,6 @@ def testAmplitudesInvariants(sspace, N):
for
ampl
in
fa
.
normalized_amplitudes
:
ift
.
extra
.
check_operator
(
ampl
,
ift
.
from_random
(
ampl
.
domain
),
ntries
=
3
,
max_combinations
=
5
)
ntries
=
1
,
max_combinations
=
3
)
ift
.
extra
.
check_operator
(
op
,
ift
.
from_random
(
op
.
domain
),
ntries
=
3
,
max_combinations
=
5
)
ntries
=
1
,
max_combinations
=
5
)
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