foscat 3.3.5__tar.gz → 3.3.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {foscat-3.3.5/src/foscat.egg-info → foscat-3.3.6}/PKG-INFO +1 -1
- {foscat-3.3.5 → foscat-3.3.6}/pyproject.toml +1 -1
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat/FoCUS.py +1 -1
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat/alm.py +12 -2
- {foscat-3.3.5 → foscat-3.3.6/src/foscat.egg-info}/PKG-INFO +1 -1
- {foscat-3.3.5 → foscat-3.3.6}/LICENCE +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/README.md +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/setup.cfg +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat/CNN.py +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat/CircSpline.py +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat/GCNN.py +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat/Softmax.py +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat/Spline1D.py +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat/Synthesis.py +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat/__init__.py +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat/alm_tools.py +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat/backend.py +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat/backend_tens.py +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat/loss_backend_tens.py +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat/loss_backend_torch.py +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat/scat.py +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat/scat1D.py +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat/scat2D.py +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat/scat_cov.py +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat/scat_cov1D.py +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat/scat_cov2D.py +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat/scat_cov_map.py +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat/scat_cov_map2D.py +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat.egg-info/SOURCES.txt +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat.egg-info/dependency_links.txt +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat.egg-info/requires.txt +0 -0
- {foscat-3.3.5 → foscat-3.3.6}/src/foscat.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: foscat
|
|
3
|
-
Version: 3.3.
|
|
3
|
+
Version: 3.3.6
|
|
4
4
|
Summary: Generate synthetic Healpix or 2D data using Cross Scattering Transform
|
|
5
5
|
Author-email: Jean-Marc DELOUIS <jean.marc.delouis@ifremer.fr>
|
|
6
6
|
Maintainer-email: Theo Foulquier <theo.foulquier@ifremer.fr>
|
|
@@ -296,9 +296,17 @@ class alm():
|
|
|
296
296
|
l_U=self.backend.bk_gather(im[2],idx)
|
|
297
297
|
ft_im_Pp=self.comp_tf(self.backend.bk_complex(l_Q,l_U),ph)
|
|
298
298
|
ft_im_Pm=self.comp_tf(self.backend.bk_complex(l_Q,-l_U),ph)
|
|
299
|
+
if map2 is not None:
|
|
300
|
+
l_Q=self.backend.bk_gather(map2[1],idx)
|
|
301
|
+
l_U=self.backend.bk_gather(map2[2],idx)
|
|
302
|
+
ft_im2_Pp=self.comp_tf(self.backend.bk_complex(l_Q,l_U),ph)
|
|
303
|
+
ft_im2_Pm=self.comp_tf(self.backend.bk_complex(l_Q,-l_U),ph)
|
|
299
304
|
else:
|
|
300
305
|
ft_im_Pp=self.comp_tf(self.backend.bk_complex(im[1],im[2]),ph)
|
|
301
306
|
ft_im_Pm=self.comp_tf(self.backend.bk_complex(im[1],-im[2]),ph)
|
|
307
|
+
if map2 is not None:
|
|
308
|
+
ft_im2_Pp=self.comp_tf(self.backend.bk_complex(map2[1],map2[2]),ph)
|
|
309
|
+
ft_im2_Pm=self.comp_tf(self.backend.bk_complex(map2[1],-map2[2]),ph)
|
|
302
310
|
|
|
303
311
|
for m in range(lmax+1):
|
|
304
312
|
|
|
@@ -325,8 +333,8 @@ class alm():
|
|
|
325
333
|
tmpp2=self.backend.bk_reduce_sum(plmp*ft_im2_Pp[:,m],1)
|
|
326
334
|
tmpm2=self.backend.bk_reduce_sum(plmm*ft_im2_Pm[:,m],1)
|
|
327
335
|
|
|
328
|
-
almE2=-(
|
|
329
|
-
almB2=(
|
|
336
|
+
almE2=-(tmpp2+tmpm2)/2.0
|
|
337
|
+
almB2=(tmpp2-tmpm2)/(2J)
|
|
330
338
|
else:
|
|
331
339
|
almE2=almE
|
|
332
340
|
almB2=almB
|
|
@@ -337,10 +345,12 @@ class alm():
|
|
|
337
345
|
tmpTE=self.backend.bk_real((tmp*self.backend.bk_conjugate(almE2)))
|
|
338
346
|
tmpTB=-self.backend.bk_real((tmp*self.backend.bk_conjugate(almB2)))
|
|
339
347
|
tmpEB=-self.backend.bk_real((almE*self.backend.bk_conjugate(almB2)))
|
|
348
|
+
|
|
340
349
|
if map2 is not None:
|
|
341
350
|
tmpTE=(tmpTE+self.backend.bk_real((tmp2*self.backend.bk_conjugate(almE))))/2
|
|
342
351
|
tmpTB=(tmpTB-self.backend.bk_real((tmp2*self.backend.bk_conjugate(almB))))/2
|
|
343
352
|
tmpEB=(tmpEB-self.backend.bk_real((almE2*self.backend.bk_conjugate(almB))))/2
|
|
353
|
+
|
|
344
354
|
|
|
345
355
|
if m==0:
|
|
346
356
|
l_cl=self.backend.bk_concat([tmpTT,tmpEE,tmpBB,tmpTE,tmpEB,tmpTB],0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: foscat
|
|
3
|
-
Version: 3.3.
|
|
3
|
+
Version: 3.3.6
|
|
4
4
|
Summary: Generate synthetic Healpix or 2D data using Cross Scattering Transform
|
|
5
5
|
Author-email: Jean-Marc DELOUIS <jean.marc.delouis@ifremer.fr>
|
|
6
6
|
Maintainer-email: Theo Foulquier <theo.foulquier@ifremer.fr>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|