foscat 3.1.0__tar.gz → 3.1.1__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.1.0 → foscat-3.1.1}/PKG-INFO +1 -1
- {foscat-3.1.0 → foscat-3.1.1}/setup.py +1 -1
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat/FoCUS.py +12 -6
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat.egg-info/PKG-INFO +1 -1
- {foscat-3.1.0 → foscat-3.1.1}/README.md +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/setup.cfg +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat/CNN.py +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat/CircSpline.py +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat/GCNN.py +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat/GetGPUinfo.py +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat/Softmax.py +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat/Spline1D.py +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat/Synthesis.py +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat/__init__.py +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat/backend.py +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat/backend_tens.py +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat/loss_backend_tens.py +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat/loss_backend_torch.py +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat/scat.py +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat/scat1D.py +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat/scat2D.py +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat/scat_cov.py +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat/scat_cov1D.old.py +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat/scat_cov1D.py +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat/scat_cov2D.py +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat/scat_cov_map.py +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat/scat_cov_map2D.py +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat.egg-info/SOURCES.txt +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat.egg-info/dependency_links.txt +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/src/foscat.egg-info/requires.txt +0 -0
- {foscat-3.1.0 → foscat-3.1.1}/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.1.
|
|
6
|
+
version='3.1.1',
|
|
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',
|
|
@@ -33,7 +33,7 @@ class FoCUS:
|
|
|
33
33
|
mpi_size=1,
|
|
34
34
|
mpi_rank=0):
|
|
35
35
|
|
|
36
|
-
self.__version__ = '3.1.
|
|
36
|
+
self.__version__ = '3.1.1'
|
|
37
37
|
# P00 coeff for normalization for scat_cov
|
|
38
38
|
self.TMPFILE_VERSION=TMPFILE_VERSION
|
|
39
39
|
self.P1_dic = None
|
|
@@ -251,11 +251,17 @@ class FoCUS:
|
|
|
251
251
|
if KERNELSZ==5:
|
|
252
252
|
xx=np.arange(5)-2
|
|
253
253
|
w=np.exp(-0.25*(xx)**2)
|
|
254
|
-
c=np.cos((xx)*np.pi/2)
|
|
255
|
-
s=np.sin((xx)*np.pi/2)
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
254
|
+
c=w*np.cos((xx)*np.pi/2)
|
|
255
|
+
s=w*np.sin((xx)*np.pi/2)
|
|
256
|
+
|
|
257
|
+
w=w/np.sum(w)
|
|
258
|
+
c=c-np.mean(c)
|
|
259
|
+
s=s-np.mean(s)
|
|
260
|
+
r=np.sum(np.sqrt(c*c+s*s))
|
|
261
|
+
c=c/r
|
|
262
|
+
s=s/r
|
|
263
|
+
self.ww_RealT[1]=self.backend.constant(np.array(c).reshape(xx.shape[0],1,1))
|
|
264
|
+
self.ww_ImagT[1]=self.backend.constant(np.array(s).reshape(xx.shape[0],1,1))
|
|
259
265
|
self.ww_SmoothT[1] = self.backend.constant(np.array(w).reshape(xx.shape[0],1,1))
|
|
260
266
|
|
|
261
267
|
else:
|
|
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
|