foscat 3.0.43__tar.gz → 3.0.45__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.43 → foscat-3.0.45}/PKG-INFO +1 -1
- {foscat-3.0.43 → foscat-3.0.45}/setup.py +1 -1
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat/FoCUS.py +1 -1
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat/scat_cov.py +14 -14
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat.egg-info/PKG-INFO +1 -1
- {foscat-3.0.43 → foscat-3.0.45}/README.md +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/setup.cfg +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat/CNN.py +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat/CircSpline.py +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat/GCNN.py +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat/GetGPUinfo.py +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat/Softmax.py +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat/Spline1D.py +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat/Synthesis.py +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat/__init__.py +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat/backend.py +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat/backend_tens.py +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat/loss_backend_tens.py +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat/loss_backend_torch.py +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat/scat.py +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat/scat1D.py +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat/scat2D.py +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat/scat_cov1D.py +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat/scat_cov2D.py +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat/scat_cov_map.py +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat/scat_cov_map2D.py +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat.egg-info/SOURCES.txt +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat.egg-info/dependency_links.txt +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/src/foscat.egg-info/requires.txt +0 -0
- {foscat-3.0.43 → foscat-3.0.45}/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.45',
|
|
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',
|
|
@@ -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):
|
|
@@ -1836,12 +1836,12 @@ class funct(FOC.FoCUS):
|
|
|
1836
1836
|
if not cross:
|
|
1837
1837
|
s0,vs0 = self.masked_mean(I1,vmask,axis=1,calc_var=True)
|
|
1838
1838
|
else:
|
|
1839
|
-
s0,vs0 =
|
|
1839
|
+
s0,vs0 = self.masked_mean(I1-I2,vmask,axis=1,calc_var=True)
|
|
1840
1840
|
else:
|
|
1841
1841
|
if not cross:
|
|
1842
1842
|
s0 = self.masked_mean(I1,vmask,axis=1)
|
|
1843
1843
|
else:
|
|
1844
|
-
s0 =
|
|
1844
|
+
s0 = self.masked_mean(I1-I2,vmask,axis=1)
|
|
1845
1845
|
|
|
1846
1846
|
|
|
1847
1847
|
#### COMPUTE S1, P00, C01 and C11
|
|
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
|