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
6638ae34
Commit
6638ae34
authored
May 26, 2017
by
Pumpe, Daniel (dpumpe)
Browse files
Field.power_synthesize working again as, RGSpace.hermitian_fixed_spaces was uncommented.
parent
dd80d59d
Pipeline
#13004
passed with stage
in 5 minutes and 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/spaces/rg_space/rg_space.py
View file @
6638ae34
...
...
@@ -120,17 +120,17 @@ class RGSpace(Space):
return
(
hermitian_part
,
anti_hermitian_part
)
#
def hermitian_fixed_points(self):
#
shape = self.shape
#
mid_index = np.array(shape)//2
#
ndlist = [2 if (shape[i] % 2 == 0) else 1 for i in xrange(len(shape))]
#
ndlist = tuple(ndlist)
#
odd_axes_list = np.array([1 if (shape[i] % 2 == 1) else 0
#
for i in xrange(len(shape))])
#
fixed_points = []
#
for i in np.ndindex(ndlist):
#
fixed_points += [tuple((i+odd_axes_list) * mid_index)]
#
return fixed_points
def
hermitian_fixed_points
(
self
):
shape
=
self
.
shape
mid_index
=
np
.
array
(
shape
)
//
2
ndlist
=
[
2
if
(
shape
[
i
]
%
2
==
0
)
else
1
for
i
in
xrange
(
len
(
shape
))]
ndlist
=
tuple
(
ndlist
)
odd_axes_list
=
np
.
array
([
1
if
(
shape
[
i
]
%
2
==
1
)
else
0
for
i
in
xrange
(
len
(
shape
))])
fixed_points
=
[]
for
i
in
np
.
ndindex
(
ndlist
):
fixed_points
+=
[
tuple
((
i
+
odd_axes_list
)
*
mid_index
)]
return
fixed_points
def
_hermitianize_correct_variance
(
self
,
hermitian_part
,
anti_hermitian_part
,
axes
):
...
...
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