foscat 3.0.34__tar.gz → 3.0.35__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 (30) hide show
  1. {foscat-3.0.34 → foscat-3.0.35}/PKG-INFO +1 -1
  2. {foscat-3.0.34 → foscat-3.0.35}/setup.py +1 -1
  3. {foscat-3.0.34 → foscat-3.0.35}/src/foscat/FoCUS.py +1 -1
  4. {foscat-3.0.34 → foscat-3.0.35}/src/foscat/GCNN.py +7 -3
  5. {foscat-3.0.34 → foscat-3.0.35}/src/foscat.egg-info/PKG-INFO +1 -1
  6. {foscat-3.0.34 → foscat-3.0.35}/README.md +0 -0
  7. {foscat-3.0.34 → foscat-3.0.35}/setup.cfg +0 -0
  8. {foscat-3.0.34 → foscat-3.0.35}/src/foscat/CNN.py +0 -0
  9. {foscat-3.0.34 → foscat-3.0.35}/src/foscat/CircSpline.py +0 -0
  10. {foscat-3.0.34 → foscat-3.0.35}/src/foscat/GetGPUinfo.py +0 -0
  11. {foscat-3.0.34 → foscat-3.0.35}/src/foscat/Softmax.py +0 -0
  12. {foscat-3.0.34 → foscat-3.0.35}/src/foscat/Spline1D.py +0 -0
  13. {foscat-3.0.34 → foscat-3.0.35}/src/foscat/Synthesis.py +0 -0
  14. {foscat-3.0.34 → foscat-3.0.35}/src/foscat/__init__.py +0 -0
  15. {foscat-3.0.34 → foscat-3.0.35}/src/foscat/backend.py +0 -0
  16. {foscat-3.0.34 → foscat-3.0.35}/src/foscat/backend_tens.py +0 -0
  17. {foscat-3.0.34 → foscat-3.0.35}/src/foscat/loss_backend_tens.py +0 -0
  18. {foscat-3.0.34 → foscat-3.0.35}/src/foscat/loss_backend_torch.py +0 -0
  19. {foscat-3.0.34 → foscat-3.0.35}/src/foscat/scat.py +0 -0
  20. {foscat-3.0.34 → foscat-3.0.35}/src/foscat/scat1D.py +0 -0
  21. {foscat-3.0.34 → foscat-3.0.35}/src/foscat/scat2D.py +0 -0
  22. {foscat-3.0.34 → foscat-3.0.35}/src/foscat/scat_cov.py +0 -0
  23. {foscat-3.0.34 → foscat-3.0.35}/src/foscat/scat_cov1D.py +0 -0
  24. {foscat-3.0.34 → foscat-3.0.35}/src/foscat/scat_cov2D.py +0 -0
  25. {foscat-3.0.34 → foscat-3.0.35}/src/foscat/scat_cov_map.py +0 -0
  26. {foscat-3.0.34 → foscat-3.0.35}/src/foscat/scat_cov_map2D.py +0 -0
  27. {foscat-3.0.34 → foscat-3.0.35}/src/foscat.egg-info/SOURCES.txt +0 -0
  28. {foscat-3.0.34 → foscat-3.0.35}/src/foscat.egg-info/dependency_links.txt +0 -0
  29. {foscat-3.0.34 → foscat-3.0.35}/src/foscat.egg-info/requires.txt +0 -0
  30. {foscat-3.0.34 → foscat-3.0.35}/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.34
3
+ Version: 3.0.35
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.34',
6
+ version='3.0.35',
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',
@@ -32,7 +32,7 @@ class FoCUS:
32
32
  mpi_size=1,
33
33
  mpi_rank=0):
34
34
 
35
- self.__version__ = '3.0.34'
35
+ self.__version__ = '3.0.35'
36
36
  # P00 coeff for normalization for scat_cov
37
37
  self.TMPFILE_VERSION=TMPFILE_VERSION
38
38
  self.P1_dic = None
@@ -71,7 +71,7 @@ class GCNN:
71
71
  for i in range(self.nscale):
72
72
  totnchan=totnchan+self.chanlist[i]*self.chanlist[i+1]
73
73
  return self.npar*12*self.in_nside**2*self.chanlist[0] \
74
- +totnchan*self.KERNELSZ*self.KERNELSZ+self.chanlist[self.nscale]*self.n_chan_out
74
+ +(totnchan+self.chanlist[i+1]*self.n_chan_out)*self.KERNELSZ*self.KERNELSZ
75
75
 
76
76
  def set_weights(self,x):
77
77
  self.x=x
@@ -107,8 +107,12 @@ class GCNN:
107
107
  im=self.scat_operator.healpix_layer_transpose(im,ww,indices=indices[k],weights=weights[k],axis=1)
108
108
  im=self.scat_operator.backend.bk_relu(im)
109
109
 
110
- ww=self.scat_operator.backend.bk_reshape(x[nn:],[self.chanlist[self.nscale],self.n_chan_out])
111
- im=self.scat_operator.backend.bk_matmul(im,ww)
110
+ ww=self.scat_operator.backend.bk_reshape(x[nn:],[self.KERNELSZ*self.KERNELSZ,self.chanlist[self.nscale],self.n_chan_out])
111
+ if indices is None:
112
+ im=self.scat_operator.healpix_layer(im,ww,axis=1)
113
+ else:
114
+ im=self.scat_operator.healpix_layer(im,ww,indices=indices[self.nscale],weights=weights[self.nscale],axis=1)
115
+
112
116
  if axis==0:
113
117
  im=self.scat_operator.backend.bk_reshape(im,[im.shape[1],im.shape[2]])
114
118
  return im
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: foscat
3
- Version: 3.0.34
3
+ Version: 3.0.35
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
File without changes
File without changes