foscat 3.0.40__tar.gz → 3.0.42__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.40 → foscat-3.0.42}/PKG-INFO +1 -7
- {foscat-3.0.40 → foscat-3.0.42}/setup.py +1 -1
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat/FoCUS.py +6 -6
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat/backend.py +9 -1
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat.egg-info/PKG-INFO +1 -7
- {foscat-3.0.40 → foscat-3.0.42}/README.md +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/setup.cfg +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat/CNN.py +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat/CircSpline.py +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat/GCNN.py +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat/GetGPUinfo.py +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat/Softmax.py +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat/Spline1D.py +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat/Synthesis.py +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat/__init__.py +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat/backend_tens.py +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat/loss_backend_tens.py +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat/loss_backend_torch.py +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat/scat.py +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat/scat1D.py +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat/scat2D.py +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat/scat_cov.py +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat/scat_cov1D.py +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat/scat_cov2D.py +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat/scat_cov_map.py +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat/scat_cov_map2D.py +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat.egg-info/SOURCES.txt +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat.egg-info/dependency_links.txt +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/src/foscat.egg-info/requires.txt +0 -0
- {foscat-3.0.40 → foscat-3.0.42}/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.
|
|
3
|
+
Version: 3.0.42
|
|
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
|
|
@@ -9,12 +9,6 @@ Maintainer: Theo Foulquier
|
|
|
9
9
|
Maintainer-email: theo.foulquier@ifremer.fr
|
|
10
10
|
License: MIT
|
|
11
11
|
Keywords: Scattering transform,Component separation,denoising
|
|
12
|
-
Requires-Dist: imageio
|
|
13
|
-
Requires-Dist: imagecodecs
|
|
14
|
-
Requires-Dist: matplotlib
|
|
15
|
-
Requires-Dist: numpy
|
|
16
|
-
Requires-Dist: tensorflow
|
|
17
|
-
Requires-Dist: healpy
|
|
18
12
|
|
|
19
13
|
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.
|
|
20
14
|
A demo package for this process can be found at https://github.com/jmdelouis/FOSCAT_DEMO.
|
|
@@ -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.42',
|
|
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.
|
|
35
|
+
self.__version__ = '3.0.42'
|
|
36
36
|
# P00 coeff for normalization for scat_cov
|
|
37
37
|
self.TMPFILE_VERSION=TMPFILE_VERSION
|
|
38
38
|
self.P1_dic = None
|
|
@@ -1065,7 +1065,7 @@ class FoCUS:
|
|
|
1065
1065
|
normr=np.mean(wresr[idx])
|
|
1066
1066
|
normi=np.mean(wresi[idx])
|
|
1067
1067
|
|
|
1068
|
-
val=wresr[idx]-normr+
|
|
1068
|
+
val=wresr[idx]-normr+1J*(wresi[idx]-normi)
|
|
1069
1069
|
val=val/abs(val).sum()
|
|
1070
1070
|
|
|
1071
1071
|
wav[iv:iv+nval]=val
|
|
@@ -1340,10 +1340,10 @@ class FoCUS:
|
|
|
1340
1340
|
res=v1/vh
|
|
1341
1341
|
if calc_var:
|
|
1342
1342
|
if self.backend.bk_is_complex(vtmp):
|
|
1343
|
-
res2=self.backend.bk_sqrt((self.backend.bk_real(v2)/self.backend.bk_real(vh)
|
|
1343
|
+
res2=self.backend.bk_sqrt(((self.backend.bk_real(v2)/self.backend.bk_real(vh)
|
|
1344
1344
|
-self.backend.bk_real(res)*self.backend.bk_real(res)) + \
|
|
1345
1345
|
(self.backend.bk_imag(v2)/self.backend.bk_real(vh) \
|
|
1346
|
-
|
|
1346
|
+
-self.backend.bk_imag(res)*self.backend.bk_imag(res)))/self.backend.bk_real(vh))
|
|
1347
1347
|
else:
|
|
1348
1348
|
res2=self.backend.bk_sqrt((v2/vh-res*res)/(vh))
|
|
1349
1349
|
return res,res2
|
|
@@ -1361,10 +1361,10 @@ class FoCUS:
|
|
|
1361
1361
|
res=v1/vh
|
|
1362
1362
|
if calc_var:
|
|
1363
1363
|
if self.backend.bk_is_complex(l_x):
|
|
1364
|
-
res2=self.backend.bk_sqrt(self.backend.bk_real(v2)/self.backend.bk_real(vh)
|
|
1364
|
+
res2=self.backend.bk_sqrt((self.backend.bk_real(v2)/self.backend.bk_real(vh)
|
|
1365
1365
|
-self.backend.bk_real(res)*self.backend.bk_real(res) + \
|
|
1366
1366
|
self.backend.bk_imag(v2)/self.backend.bk_real(vh) \
|
|
1367
|
-
-self.backend.bk_imag(res)*self.backend.bk_imag(res))
|
|
1367
|
+
-self.backend.bk_imag(res)*self.backend.bk_imag(res))/self.backend.bk_real(vh))
|
|
1368
1368
|
else:
|
|
1369
1369
|
res2=self.backend.bk_sqrt((v2/vh-res*res)/(vh))
|
|
1370
1370
|
return res,res2
|
|
@@ -292,7 +292,9 @@ class foscat_backend:
|
|
|
292
292
|
if self.BACKEND==self.TENSORFLOW:
|
|
293
293
|
return(self.backend.cast(x>threshold,x.dtype)*x)
|
|
294
294
|
if self.BACKEND==self.TORCH:
|
|
295
|
-
|
|
295
|
+
x.to(x.dtype)
|
|
296
|
+
return (x>threshold)*x
|
|
297
|
+
#return(self.backend.cast(x>threshold,x.dtype)*x)
|
|
296
298
|
if self.BACKEND==self.NUMPY:
|
|
297
299
|
return (x>threshold)*x
|
|
298
300
|
|
|
@@ -787,6 +789,12 @@ class foscat_backend:
|
|
|
787
789
|
else:
|
|
788
790
|
return(x)
|
|
789
791
|
|
|
792
|
+
if isinstance(x,np.int32) or isinstance(x,np.int64) or isinstance(x,int):
|
|
793
|
+
if self.all_bk_type=='float64':
|
|
794
|
+
return(np.float64(x))
|
|
795
|
+
else:
|
|
796
|
+
return(np.float32(x))
|
|
797
|
+
|
|
790
798
|
if self.bk_is_complex(x):
|
|
791
799
|
out_type=self.all_cbk_type
|
|
792
800
|
else:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: foscat
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.42
|
|
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
|
|
@@ -9,12 +9,6 @@ Maintainer: Theo Foulquier
|
|
|
9
9
|
Maintainer-email: theo.foulquier@ifremer.fr
|
|
10
10
|
License: MIT
|
|
11
11
|
Keywords: Scattering transform,Component separation,denoising
|
|
12
|
-
Requires-Dist: imageio
|
|
13
|
-
Requires-Dist: imagecodecs
|
|
14
|
-
Requires-Dist: matplotlib
|
|
15
|
-
Requires-Dist: numpy
|
|
16
|
-
Requires-Dist: tensorflow
|
|
17
|
-
Requires-Dist: healpy
|
|
18
12
|
|
|
19
13
|
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.
|
|
20
14
|
A demo package for this process can be found at https://github.com/jmdelouis/FOSCAT_DEMO.
|
|
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
|