foscat 3.0.44__tar.gz → 3.0.46__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.0.44 → foscat-3.0.46}/PKG-INFO +1 -1
- {foscat-3.0.44 → foscat-3.0.46}/setup.py +1 -1
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat/FoCUS.py +1 -1
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat/backend.py +3 -3
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat/scat_cov.py +12 -12
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat.egg-info/PKG-INFO +1 -1
- {foscat-3.0.44 → foscat-3.0.46}/README.md +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/setup.cfg +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat/CNN.py +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat/CircSpline.py +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat/GCNN.py +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat/GetGPUinfo.py +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat/Softmax.py +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat/Spline1D.py +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat/Synthesis.py +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat/__init__.py +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat/backend_tens.py +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat/loss_backend_tens.py +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat/loss_backend_torch.py +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat/scat.py +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat/scat1D.py +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat/scat2D.py +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat/scat_cov1D.py +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat/scat_cov2D.py +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat/scat_cov_map.py +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat/scat_cov_map2D.py +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat.egg-info/SOURCES.txt +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat.egg-info/dependency_links.txt +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat.egg-info/requires.txt +0 -0
- {foscat-3.0.44 → foscat-3.0.46}/src/foscat.egg-info/top_level.txt +0 -0
|
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
|
|
|
3
3
|
|
|
4
4
|
setup(
|
|
5
5
|
name='foscat',
|
|
6
|
-
version='3.0.
|
|
6
|
+
version='3.0.46',
|
|
7
7
|
description='Generate synthetic Healpix or 2D data using Cross Scattering Transform' ,
|
|
8
8
|
long_description='Utilize the Cross Scattering Transform (described in https://arxiv.org/abs/2207.12527) to synthesize Healpix or 2D data that is suitable for component separation purposes, such as denoising. \n A demo package for this process can be found at https://github.com/jmdelouis/FOSCAT_DEMO. \n Complete doc can be found at https://foscat-documentation.readthedocs.io/en/latest/index.html. \n\n List of developers : J.-M. Delouis, T. Foulquier, L. Mousset, T. Odaka, F. Paul, E. Allys ' ,
|
|
9
9
|
license='MIT',
|
|
@@ -379,14 +379,14 @@ class foscat_backend:
|
|
|
379
379
|
xr=self.bk_real(x)
|
|
380
380
|
xi=self.bk_imag(x)
|
|
381
381
|
|
|
382
|
-
r=self.backend.sign(xr)*self.backend.sqrt(xr*xr)
|
|
383
|
-
i=self.backend.sign(xi)*self.backend.sqrt(xi*xi)
|
|
382
|
+
r=self.backend.sign(xr)*self.backend.sqrt(self.backend.sign(xr)*xr)
|
|
383
|
+
i=self.backend.sign(xi)*self.backend.sqrt(self.backend.sign(xi)*xi)
|
|
384
384
|
if self.BACKEND==self.TORCH:
|
|
385
385
|
return r
|
|
386
386
|
else:
|
|
387
387
|
return self.bk_complex(r,i)
|
|
388
388
|
else:
|
|
389
|
-
return self.backend.sign(x)*self.backend.sqrt(x*x)
|
|
389
|
+
return self.backend.sign(x)*self.backend.sqrt(self.backend.sign(x)*x)
|
|
390
390
|
|
|
391
391
|
def bk_square_comp(self,x):
|
|
392
392
|
if x.dtype==self.all_cbk_type:
|
|
@@ -77,22 +77,22 @@ class scat_cov:
|
|
|
77
77
|
return val
|
|
78
78
|
# ---------------------------------------------−---------
|
|
79
79
|
def flatten(self):
|
|
80
|
-
tmp=[self.conv2complex(self.backend.bk_reshape(self.S0[0],
|
|
80
|
+
tmp=[self.conv2complex(self.backend.bk_reshape(self.S0,[self.S1.shape[0],self.S0.shape[1]]))]
|
|
81
81
|
if self.S1 is not None:
|
|
82
|
-
tmp=tmp+[self.conv2complex(self.backend.bk_reshape(self.S1
|
|
83
|
-
[self.S1.shape[1]*self.S1.shape[2]*self.S1.shape[3]]))]
|
|
84
|
-
tmp=tmp+[self.conv2complex(self.backend.bk_reshape(self.P00
|
|
85
|
-
[self.S1.shape[1]*self.S1.shape[2]*self.S1.shape[3]])),
|
|
86
|
-
self.conv2complex(self.backend.bk_reshape(self.C01
|
|
87
|
-
[self.C01.shape[1]*self.C01.shape[2]*self.C01.shape[3]*self.C01.shape[4]]))]
|
|
82
|
+
tmp=tmp+[self.conv2complex(self.backend.bk_reshape(self.S1,
|
|
83
|
+
[self.S1.shape[0],self.S1.shape[1]*self.S1.shape[2]*self.S1.shape[3]]))]
|
|
84
|
+
tmp=tmp+[self.conv2complex(self.backend.bk_reshape(self.P00,
|
|
85
|
+
[self.S1.shape[0],self.S1.shape[1]*self.S1.shape[2]*self.S1.shape[3]])),
|
|
86
|
+
self.conv2complex(self.backend.bk_reshape(self.C01,
|
|
87
|
+
[self.C01.shape[0],self.C01.shape[1]*self.C01.shape[2]*self.C01.shape[3]*self.C01.shape[4]]))]
|
|
88
88
|
if self.C10 is not None:
|
|
89
|
-
tmp=tmp+[self.conv2complex(self.backend.bk_reshape(self.C10
|
|
90
|
-
[self.C01.shape[1]*self.C01.shape[2]*self.C01.shape[3]*self.C01.shape[4]]))]
|
|
89
|
+
tmp=tmp+[self.conv2complex(self.backend.bk_reshape(self.C10,
|
|
90
|
+
[self.C01.shape[0],self.C01.shape[1]*self.C01.shape[2]*self.C01.shape[3]*self.C01.shape[4]]))]
|
|
91
91
|
|
|
92
|
-
tmp=tmp+[self.conv2complex(self.backend.bk_reshape(self.C11
|
|
93
|
-
[self.C11.shape[1]*self.C11.shape[2]*self.C11.shape[3]*self.C11.shape[4]*self.C11.shape[5]]))]
|
|
92
|
+
tmp=tmp+[self.conv2complex(self.backend.bk_reshape(self.C11,
|
|
93
|
+
[self.C01.shape[0],self.C11.shape[1]*self.C11.shape[2]*self.C11.shape[3]*self.C11.shape[4]*self.C11.shape[5]]))]
|
|
94
94
|
|
|
95
|
-
return self.backend.bk_concat(tmp,
|
|
95
|
+
return self.backend.bk_concat(tmp,1)
|
|
96
96
|
|
|
97
97
|
# ---------------------------------------------−---------
|
|
98
98
|
def flattenMask(self):
|
|
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
|