Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
b7b808bf
Commit
b7b808bf
authored
Sep 19, 2018
by
Martin Reinecke
Browse files
Merge branch 'fix_pickle' into 'NIFTy_5'
Fix pickle See merge request ift/nifty-dev!112
parents
1deb0df3
3d6e53c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/operators/harmonic_operators.py
View file @
b7b808bf
...
...
@@ -289,6 +289,10 @@ class SHTOperator(LinearOperator):
else
:
self
.
sjob
.
set_Healpix_geometry
(
target
.
nside
)
def
__reduce__
(
self
):
return
(
_unpickleSHTOperator
,
(
list
(
self
.
_domain
),
self
.
_target
[
self
.
_space
],
self
.
_space
))
def
apply
(
self
,
x
,
mode
):
self
.
_check_input
(
x
,
mode
)
if
utilities
.
iscomplextype
(
x
.
dtype
):
...
...
@@ -337,6 +341,10 @@ class SHTOperator(LinearOperator):
return
Field
(
tdom
,
dobj
.
ensure_default_distributed
(
odat
))
def
_unpickleSHTOperator
(
*
args
):
return
SHTOperator
(
*
args
)
class
HarmonicTransformOperator
(
LinearOperator
):
"""Transforms between a harmonic domain and a position domain counterpart.
...
...
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