Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
ducc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Simon Perkins
ducc
Commits
1164fa5a
Commit
1164fa5a
authored
Jun 03, 2020
by
Martin Reinecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more renaming
parent
24cef791
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
12 deletions
+3
-12
pyinterpol_ng/demo.py
pyinterpol_ng/demo.py
+1
-10
pyinterpol_ng/test/test_interpol_ng.py
pyinterpol_ng/test/test_interpol_ng.py
+2
-2
No files found.
pyinterpol_ng/demo.py
View file @
1164fa5a
import
pyinterpol_ng
import
ducc_0_1.pyinterpol_ng
as
pyinterpol_ng
import
numpy
as
np
import
time
...
...
@@ -28,15 +28,6 @@ def myalmdot(a1,a2,lmax,mmax,spin):
return
np
.
vdot
(
compress_alm
(
a1
,
lmax
),
compress_alm
(
np
.
conj
(
a2
),
lmax
))
def
convolve
(
alm1
,
alm2
,
lmax
):
job
=
pysharp
.
sharpjob_d
()
job
.
set_triangular_alm_info
(
lmax
,
lmax
)
job
.
set_gauss_geometry
(
lmax
+
1
,
2
*
lmax
+
1
)
map
=
job
.
alm2map
(
alm1
)
*
job
.
alm2map
(
alm2
)
job
.
set_triangular_alm_info
(
0
,
0
)
return
job
.
map2alm
(
map
)[
0
]
*
np
.
sqrt
(
4
*
np
.
pi
)
lmax
=
1024
kmax
=
13
ncomp
=
1
...
...
pyinterpol_ng/test/test_interpol_ng.py
View file @
1164fa5a
...
...
@@ -2,7 +2,7 @@ import numpy as np
import
pytest
from
numpy.testing
import
assert_
import
ducc_0_1.pyinterpol_ng
as
pyinterpol_ng
import
ducc_0_1.
pysharp
as
pysharp
import
ducc_0_1.
sht
as
sht
pmp
=
pytest
.
mark
.
parametrize
...
...
@@ -31,7 +31,7 @@ def random_alm(lmax, mmax, ncomp):
def
convolve
(
alm1
,
alm2
,
lmax
):
job
=
pysharp
.
sharpjob_d
()
job
=
sht
.
sharpjob_d
()
job
.
set_triangular_alm_info
(
lmax
,
lmax
)
job
.
set_gauss_geometry
(
lmax
+
1
,
2
*
lmax
+
1
)
map
=
job
.
alm2map
(
alm1
)
*
job
.
alm2map
(
alm2
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment