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.
Files changed (29) hide show
  1. {foscat-3.0.18 → foscat-3.0.19}/PKG-INFO +1 -1
  2. {foscat-3.0.18 → foscat-3.0.19}/setup.py +1 -1
  3. {foscat-3.0.18 → foscat-3.0.19}/src/foscat/FoCUS.py +14 -9
  4. {foscat-3.0.18 → foscat-3.0.19}/src/foscat/scat.py +1 -0
  5. {foscat-3.0.18 → foscat-3.0.19}/src/foscat/scat_cov.py +1 -0
  6. {foscat-3.0.18 → foscat-3.0.19}/src/foscat/scat_cov1D.py +1 -0
  7. {foscat-3.0.18 → foscat-3.0.19}/src/foscat.egg-info/PKG-INFO +1 -1
  8. {foscat-3.0.18 → foscat-3.0.19}/README.md +0 -0
  9. {foscat-3.0.18 → foscat-3.0.19}/setup.cfg +0 -0
  10. {foscat-3.0.18 → foscat-3.0.19}/src/foscat/CircSpline.py +0 -0
  11. {foscat-3.0.18 → foscat-3.0.19}/src/foscat/GCNN.py +0 -0
  12. {foscat-3.0.18 → foscat-3.0.19}/src/foscat/GetGPUinfo.py +0 -0
  13. {foscat-3.0.18 → foscat-3.0.19}/src/foscat/Softmax.py +0 -0
  14. {foscat-3.0.18 → foscat-3.0.19}/src/foscat/Spline1D.py +0 -0
  15. {foscat-3.0.18 → foscat-3.0.19}/src/foscat/Synthesis.py +0 -0
  16. {foscat-3.0.18 → foscat-3.0.19}/src/foscat/__init__.py +0 -0
  17. {foscat-3.0.18 → foscat-3.0.19}/src/foscat/backend.py +0 -0
  18. {foscat-3.0.18 → foscat-3.0.19}/src/foscat/backend_tens.py +0 -0
  19. {foscat-3.0.18 → foscat-3.0.19}/src/foscat/loss_backend_tens.py +0 -0
  20. {foscat-3.0.18 → foscat-3.0.19}/src/foscat/loss_backend_torch.py +0 -0
  21. {foscat-3.0.18 → foscat-3.0.19}/src/foscat/scat1D.py +0 -0
  22. {foscat-3.0.18 → foscat-3.0.19}/src/foscat/scat2D.py +0 -0
  23. {foscat-3.0.18 → foscat-3.0.19}/src/foscat/scat_cov2D.py +0 -0
  24. {foscat-3.0.18 → foscat-3.0.19}/src/foscat/scat_cov_map.py +0 -0
  25. {foscat-3.0.18 → foscat-3.0.19}/src/foscat/scat_cov_map2D.py +0 -0
  26. {foscat-3.0.18 → foscat-3.0.19}/src/foscat.egg-info/SOURCES.txt +0 -0
  27. {foscat-3.0.18 → foscat-3.0.19}/src/foscat.egg-info/dependency_links.txt +0 -0
  28. {foscat-3.0.18 → foscat-3.0.19}/src/foscat.egg-info/requires.txt +0 -0
  29. {foscat-3.0.18 → foscat-3.0.19}/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.0.18
3
+ Version: 3.0.19
4
4
  Summary: Generate synthetic Healpix or 2D data using Cross Scattering Transform
5
5
  Home-page: https://github.com/jmdelouis/FOSCAT
6
6
  Author: Jean-Marc DELOUIS
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
3
3
 
4
4
  setup(
5
5
  name='foscat',
6
- version='3.0.18',
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='V2_6'
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.18'
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=2*nside
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.0
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.0
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
@@ -3,6 +3,7 @@ import numpy as np
3
3
  import pickle
4
4
  import foscat.backend as bk
5
5
  import healpy as hp
6
+ import sys
6
7
 
7
8
  # Vérifier si TensorFlow est importé et défini
8
9
  tf_defined = 'tensorflow' in sys.modules
@@ -3,6 +3,7 @@ import numpy as np
3
3
  import foscat.backend as bk
4
4
  import pickle
5
5
  import healpy as hp
6
+ import sys
6
7
 
7
8
  # Vérifier si TensorFlow est importé et défini
8
9
  tf_defined = 'tensorflow' in sys.modules
@@ -3,6 +3,7 @@ import numpy as np
3
3
  import foscat.backend as bk
4
4
  import pickle
5
5
  import matplotlib.pyplot as plt
6
+ import sys
6
7
 
7
8
 
8
9
  # Vérifier si TensorFlow est importé et défini
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: foscat
3
- Version: 3.0.18
3
+ Version: 3.0.19
4
4
  Summary: Generate synthetic Healpix or 2D data using Cross Scattering Transform
5
5
  Home-page: https://github.com/jmdelouis/FOSCAT
6
6
  Author: Jean-Marc DELOUIS
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