Commit 6638ae34 authored by Pumpe, Daniel (dpumpe)'s avatar 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
......@@ -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):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment