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
ce8611e7
Commit
ce8611e7
authored
Jan 07, 2019
by
Martin Reinecke
Browse files
cosmetics
parent
cf9bc7ae
Changes
4
Hide whitespace changes
Inline
Side-by-side
nifty5/logger.py
View file @
ce8611e7
...
...
@@ -15,6 +15,7 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
def
_logger_init
():
import
logging
from
.
import
dobj
...
...
nifty5/minimization/kl_energy.py
View file @
ce8611e7
...
...
@@ -58,7 +58,7 @@ class KL_Energy(Energy):
def
at
(
self
,
position
):
return
KL_Energy
(
position
,
self
.
_h
,
0
,
self
.
_constants
,
self
.
_constants_samples
,
_samples
=
self
.
_samples
)
_samples
=
self
.
_samples
)
@
property
def
value
(
self
):
...
...
nifty5/operators/operator.py
View file @
ce8611e7
...
...
@@ -192,7 +192,6 @@ class _OpChain(_CombinedOperator):
x
=
op
(
x
)
return
x
def
__repr__
(
self
):
subs
=
"
\n
"
.
join
(
sub
.
__repr__
()
for
sub
in
self
.
_ops
)
return
"_OpChain:
\n
"
+
indent
(
subs
)
...
...
@@ -225,7 +224,6 @@ class _OpProd(Operator):
makeOp
(
lin2
.
_val
)(
lin1
.
_jac
),
False
)
return
lin1
.
new
(
lin1
.
_val
*
lin2
.
_val
,
op
(
x
.
jac
))
def
__repr__
(
self
):
subs
=
"
\n
"
.
join
(
sub
.
__repr__
()
for
sub
in
(
self
.
_op1
,
self
.
_op2
))
return
"_OpProd:
\n
"
+
indent
(
subs
)
...
...
nifty5/sugar.py
View file @
ce8611e7
...
...
@@ -265,6 +265,7 @@ for f in ["sqrt", "exp", "log", "tanh", "positive_tanh", "conjugate"]:
return
func2
setattr
(
_current_module
,
f
,
func
(
f
))
def
get_default_codomain
(
domainoid
,
space
=
None
):
"""For `RGSpace`, returns the harmonic partner domain.
For `DomainTuple`, returns a copy of the object in which the domain
...
...
Write
Preview
Supports
Markdown
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