foscat 3.0.18__tar.gz → 3.0.19__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.18 → foscat-3.0.19}/PKG-INFO +1 -1
- {foscat-3.0.18 → foscat-3.0.19}/setup.py +1 -1
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat/FoCUS.py +14 -9
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat/scat.py +1 -0
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat/scat_cov.py +1 -0
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat/scat_cov1D.py +1 -0
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat.egg-info/PKG-INFO +1 -1
- {foscat-3.0.18 → foscat-3.0.19}/README.md +0 -0
- {foscat-3.0.18 → foscat-3.0.19}/setup.cfg +0 -0
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat/CircSpline.py +0 -0
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat/GCNN.py +0 -0
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat/GetGPUinfo.py +0 -0
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat/Softmax.py +0 -0
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat/Spline1D.py +0 -0
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat/Synthesis.py +0 -0
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat/__init__.py +0 -0
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat/backend.py +0 -0
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat/backend_tens.py +0 -0
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat/loss_backend_tens.py +0 -0
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat/loss_backend_torch.py +0 -0
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat/scat1D.py +0 -0
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat/scat2D.py +0 -0
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat/scat_cov2D.py +0 -0
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat/scat_cov_map.py +0 -0
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat/scat_cov_map2D.py +0 -0
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat.egg-info/SOURCES.txt +0 -0
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat.egg-info/dependency_links.txt +0 -0
- {foscat-3.0.18 → foscat-3.0.19}/src/foscat.egg-info/requires.txt +0 -0
- {foscat-3.0.18 → foscat-3.0.19}/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.19',
|
|
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',
|
|
@@ -5,7 +5,7 @@ import foscat.backend as bk
|
|
|
5
5
|
from scipy.interpolate import griddata
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
TMPFILE_VERSION='
|
|
8
|
+
TMPFILE_VERSION='V3_0'
|
|
9
9
|
|
|
10
10
|
class FoCUS:
|
|
11
11
|
def __init__(self,
|
|
@@ -32,7 +32,7 @@ class FoCUS:
|
|
|
32
32
|
mpi_size=1,
|
|
33
33
|
mpi_rank=0):
|
|
34
34
|
|
|
35
|
-
self.__version__ = '3.0.
|
|
35
|
+
self.__version__ = '3.0.19'
|
|
36
36
|
# P00 coeff for normalization for scat_cov
|
|
37
37
|
self.TMPFILE_VERSION=TMPFILE_VERSION
|
|
38
38
|
self.P1_dic = None
|
|
@@ -872,7 +872,7 @@ class FoCUS:
|
|
|
872
872
|
except:
|
|
873
873
|
if self.use_2D==False:
|
|
874
874
|
if self.KERNELSZ*self.KERNELSZ>12*nside*nside:
|
|
875
|
-
l_kernel=
|
|
875
|
+
l_kernel=3
|
|
876
876
|
|
|
877
877
|
aa=np.cos(np.arange(self.NORIENT)/self.NORIENT*np.pi).reshape(1,self.NORIENT)
|
|
878
878
|
bb=np.sin(np.arange(self.NORIENT)/self.NORIENT*np.pi).reshape(1,self.NORIENT)
|
|
@@ -890,14 +890,19 @@ class FoCUS:
|
|
|
890
890
|
lidx=np.arange(12*nside*nside)
|
|
891
891
|
|
|
892
892
|
pw=np.pi/4.0
|
|
893
|
-
pw2=1/2
|
|
894
|
-
|
|
893
|
+
pw2=1/2
|
|
894
|
+
amp=1.0
|
|
895
|
+
|
|
895
896
|
if l_kernel==5:
|
|
896
897
|
pw=np.pi/4.0
|
|
897
|
-
pw2=1/2.
|
|
898
|
+
pw2=1/2.25
|
|
899
|
+
amp=1.0/9.2038
|
|
900
|
+
|
|
898
901
|
elif l_kernel==3:
|
|
899
|
-
pw=1.0
|
|
902
|
+
pw=1.0/np.sqrt(2)
|
|
900
903
|
pw2=1.0
|
|
904
|
+
amp=1/8.45
|
|
905
|
+
|
|
901
906
|
elif l_kernel==7:
|
|
902
907
|
pw=np.pi/4.0
|
|
903
908
|
pw2=1.0/3.0
|
|
@@ -920,7 +925,7 @@ class FoCUS:
|
|
|
920
925
|
w=np.exp(-pw2*delta[pidx]*(nside**2))
|
|
921
926
|
pidx=pidx[np.argsort(-w)[0:l_kernel**2]]
|
|
922
927
|
pidx=pidx[np.argsort(lidx[pidx])]
|
|
923
|
-
|
|
928
|
+
|
|
924
929
|
w=np.exp(-pw2*delta[pidx]*(nside**2))
|
|
925
930
|
iwav[k]=lidx[pidx]
|
|
926
931
|
wwav[k]=w
|
|
@@ -935,7 +940,7 @@ class FoCUS:
|
|
|
935
940
|
wav[k,:,:]=(np.cos(xx*aa+yy*bb)+complex(0.0,1.0)*np.sin(xx*aa+yy*bb))*np.expand_dims(w,-1)
|
|
936
941
|
|
|
937
942
|
wav=wav-np.expand_dims(np.mean(wav,1),1)
|
|
938
|
-
wav=wav/np.expand_dims(np.std(wav,1),1)
|
|
943
|
+
wav=amp*wav/np.expand_dims(np.std(wav,1),1)
|
|
939
944
|
wwav=wwav/np.expand_dims(np.sum(wwav,1),1)
|
|
940
945
|
|
|
941
946
|
nk=l_kernel*l_kernel
|
|
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
|