Skip to content

Commit 216fba6

Browse files
committed
Unpolarized class
1 parent 1c215d7 commit 216fba6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

astromodels/core/polarization.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,12 @@ def __call__(self, energies, stokes):
153153
# #angle = 0.5 * np.arctan2(se)
154154
#
155155
#
156+
class Unpolarized(Polarization):
157+
def __init__(self):
158+
super(Unpolarized, self).__init__(polarization_type="unpolarized")
159+
160+
def __call__(self, *args, **kwargs):
161+
return 1
156162

157163

158164
class StokesParameter(Node):

0 commit comments

Comments
 (0)