Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Reinecke
ducc
Commits
6d179b23
Commit
6d179b23
authored
May 29, 2020
by
Martin Reinecke
Browse files
various fixes
parent
025e08dd
Pipeline
#75772
passed with stages
in 13 minutes and 24 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cxxbase.cc
View file @
6d179b23
...
...
@@ -3,6 +3,7 @@
#include
"mr_util/infra/threading.cc"
#include
"mr_util/math/pointing.cc"
#include
"mr_util/math/geom_utils.cc"
#include
"mr_util/math/space_filling.cc"
#include
"mr_util/sharp/sharp.cc"
#include
"mr_util/sharp/sharp_almhelpers.cc"
#include
"mr_util/sharp/sharp_core.cc"
...
...
@@ -20,7 +21,7 @@
using
namespace
mr
;
PYBIND11_MODULE
(
cxxbase1
,
m
)
PYBIND11_MODULE
(
PKGNAME
,
m
)
{
add_pypocketfft
(
m
);
add_pysharp
(
m
);
...
...
pyHealpix/pyHealpix.cc
View file @
6d179b23
...
...
@@ -351,7 +351,7 @@ void add_pyHealpix(py::module &msup)
auto
m
=
msup
.
def_submodule
(
"pyHealpix"
);
m
.
doc
()
=
pyHealpix_DS
;
py
::
class_
<
Pyhpbase
>
(
m
,
"Healpix_Base"
)
py
::
class_
<
Pyhpbase
>
(
m
,
"Healpix_Base"
,
py
::
module_local
()
)
.
def
(
py
::
init
<
int
,
const
string
&>
(),
"nside"
_a
,
"scheme"
_a
)
.
def
(
"order"
,
[](
Pyhpbase
&
self
)
{
return
self
.
base
.
Order
();
},
order_DS
)
...
...
pyinterpol_ng/pyinterpol_ng.cc
View file @
6d179b23
...
...
@@ -242,7 +242,7 @@ void add_pyinterpol_ng(py::module &msup)
m
.
doc
()
=
pyinterpol_ng_DS
;
using
inter_d
=
PyInterpolator
<
double
>
;
py
::
class_
<
inter_d
>
(
m
,
"PyInterpolator"
,
pyinterpolator_DS
)
py
::
class_
<
inter_d
>
(
m
,
"PyInterpolator"
,
py
::
module_local
(),
pyinterpolator_DS
)
.
def
(
py
::
init
<
const
py
::
array
&
,
const
py
::
array
&
,
bool
,
int64_t
,
int64_t
,
double
,
double
,
int
>
(),
initnormal_DS
,
"sky"
_a
,
"beam"
_a
,
"separate"
_a
,
"lmax"
_a
,
"kmax"
_a
,
"epsilon"
_a
,
"ofactor"
_a
=
1.5
,
"nthreads"
_a
=
0
)
...
...
@@ -253,7 +253,7 @@ void add_pyinterpol_ng(py::module &msup)
.
def
(
"getSlm"
,
&
inter_d
::
pygetSlm
,
getSlm_DS
,
"beam"
_a
)
.
def
(
"support"
,
&
inter_d
::
support
);
using
inter_f
=
PyInterpolator
<
float
>
;
py
::
class_
<
inter_f
>
(
m
,
"PyInterpolator_f"
,
pyinterpolator_DS
)
py
::
class_
<
inter_f
>
(
m
,
"PyInterpolator_f"
,
py
::
module_local
(),
pyinterpolator_DS
)
.
def
(
py
::
init
<
const
py
::
array
&
,
const
py
::
array
&
,
bool
,
int64_t
,
int64_t
,
float
,
float
,
int
>
(),
initnormal_DS
,
"sky"
_a
,
"beam"
_a
,
"separate"
_a
,
"lmax"
_a
,
"kmax"
_a
,
"epsilon"
_a
,
"ofactor"
_a
=
1.5
f
,
"nthreads"
_a
=
0
)
...
...
pysharp/pysharp.cc
View file @
6d179b23
...
...
@@ -274,7 +274,7 @@ void add_pysharp(py::module &msup)
auto
m
=
msup
.
def_submodule
(
"pysharp"
);
m
.
doc
()
=
pysharp_DS
;
py
::
class_
<
py_sharpjob
<
double
>>
(
m
,
"sharpjob_d"
)
py
::
class_
<
py_sharpjob
<
double
>>
(
m
,
"sharpjob_d"
,
py
::
module_local
()
)
.
def
(
py
::
init
<>
())
.
def
(
"set_nthreads"
,
&
py_sharpjob
<
double
>::
set_nthreads
,
"nthreads"
_a
)
.
def
(
"set_gauss_geometry"
,
&
py_sharpjob
<
double
>::
set_gauss_geometry
,
...
...
setup.py
View file @
6d179b23
...
...
@@ -17,7 +17,7 @@ include_dirs = ['./src/',
_deferred_pybind11_include
()]
extra_compile_args
=
[
'--std=c++17'
,
'-march=native'
,
'-ffast-math'
,
'-O3'
]
python_module_link_args
=
[]
define_macros
=
[]
define_macros
=
[
(
"PKGNAME"
,
pkgname
)
]
if
sys
.
platform
==
'darwin'
:
import
distutils.sysconfig
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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