Skip to content

Commit 8cf8562

Browse files
committed
Removing symbol that Python did not like
1 parent 6df94f4 commit 8cf8562

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

powerspectrum/healpy_ext.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pylint: disable=E1101, C0103, R0912, R0913, R0914, R0915, W0212
22

3-
#Copyright © 2016 United States Government as represented by the Administrator
3+
#Copyright 2016 United States Government as represented by the Administrator
44
#of the National Aeronautics and Space Administration. All Rights Reserved.
55

66

powerspectrum/modemixing_matrices.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pylint: disable=E1101, C0103, R0912, R0913, R0914, R0915, W0212
22

3-
#Copyright © 2016 United States Government as represented by the Administrator
3+
#Copyright 2016 United States Government as represented by the Administrator
44
#of the National Aeronautics and Space Administration. All Rights Reserved.
55

66
'''
@@ -164,6 +164,7 @@ def apply_coupling(cls_in, Mscal, Mpol, Mcross, inverse=True):
164164
TT, EE, BB, TE, EB, TB = 0, 1, 2, 3, 4, 5
165165
doV = False
166166
elif ncls == 4:
167+
doV = False
167168
TT, EE, BB, TE = 0, 1, 2, 3
168169

169170
cls_out = np.empty([ncls, nell])
@@ -202,7 +203,9 @@ def apply_coupling(cls_in, Mscal, Mpol, Mcross, inverse=True):
202203

203204
cls_out[EE, :] = polvect_out[0:nell]
204205
cls_out[BB, :] = polvect_out[nell:2*nell]
205-
cls_out[EB, :] = polvect_out[2*nell:]
206+
207+
if ncls > 4:
208+
cls_out[EB, :] = polvect_out[2*nell:]
206209

207210
crossvect = np.zeros(2*nell)
208211
crossvect[:nell] = cls_in[TE]
@@ -212,7 +215,9 @@ def apply_coupling(cls_in, Mscal, Mpol, Mcross, inverse=True):
212215
crossvect_out = np.dot(B_cross, crossvect)
213216

214217
cls_out[TE, :] = crossvect_out[:nell]
215-
cls_out[TB, :] = crossvect_out[nell:]
218+
219+
if ncls > 4:
220+
cls_out[TB, :] = crossvect_out[nell:]
216221

217222
if doV:
218223
crossvect[:nell] = cls_in[EV]

powerspectrum/pyspice.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pylint: disable=E1101, C0103, R0912, R0913, R0914, R0915, W0212
22

3-
#Copyright © 2016 United States Government as represented by the Administrator
3+
#Copyright 2016 United States Government as represented by the Administrator
44
#of the National Aeronautics and Space Administration. All Rights Reserved.
55

66
'''This module implements the polspice code in Python. This mainly a port

util/wignercoupling.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pylint: disable=E1101, C0103, R0912, R0913, R0914, R0915, W0212
22

3-
#Copyright © 2016 United States Government as represented by the Administrator
3+
#Copyright 2016 United States Government as represented by the Administrator
44
#of the National Aeronautics and Space Administration. All Rights Reserved.
55

66
'''Module to calculate Wigner 3j/6j/9j Symbols and associated functions using

0 commit comments

Comments
 (0)