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
ift
NIFTy
Commits
469ae0ee
Commit
469ae0ee
authored
May 21, 2017
by
Martin Reinecke
Browse files
remove aggressive warnings
parent
6403cd03
Pipeline
#12732
passed with stage
in 4 minutes and 35 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/operators/fft_operator/transformations/gllmtransformation.py
View file @
469ae0ee
...
...
@@ -100,11 +100,6 @@ class GLLMTransformation(SlicingTransformation):
super
(
GLLMTransformation
,
cls
).
check_codomain
(
domain
,
codomain
)
def
_transformation_of_slice
(
self
,
inp
,
**
kwargs
):
if
inp
.
dtype
not
in
(
np
.
float
,
np
.
complex
):
self
.
logger
.
warn
(
"The input array has dtype: %s. The FFT will "
"be performed at double precision."
%
str
(
inp
.
dtype
))
nlat
=
self
.
domain
.
nlat
nlon
=
self
.
domain
.
nlon
lmax
=
self
.
codomain
.
lmax
...
...
nifty/operators/fft_operator/transformations/hplmtransformation.py
View file @
469ae0ee
...
...
@@ -92,11 +92,6 @@ class HPLMTransformation(SlicingTransformation):
super
(
HPLMTransformation
,
cls
).
check_codomain
(
domain
,
codomain
)
def
_transformation_of_slice
(
self
,
inp
,
**
kwargs
):
if
inp
.
dtype
not
in
(
np
.
float
,
np
.
complex
):
self
.
logger
.
warn
(
"The input array has dtype: %s. The FFT will "
"be performed at double precision."
%
str
(
inp
.
dtype
))
lmax
=
self
.
codomain
.
lmax
mmax
=
lmax
...
...
nifty/operators/fft_operator/transformations/lmgltransformation.py
View file @
469ae0ee
...
...
@@ -106,11 +106,6 @@ class LMGLTransformation(SlicingTransformation):
super
(
LMGLTransformation
,
cls
).
check_codomain
(
domain
,
codomain
)
def
_transformation_of_slice
(
self
,
inp
,
**
kwargs
):
if
inp
.
dtype
not
in
(
np
.
float
,
np
.
complex
):
self
.
logger
.
warn
(
"The input array has dtype: %s. The FFT will "
"be performed at double precision."
%
str
(
inp
.
dtype
))
nlat
=
self
.
codomain
.
nlat
nlon
=
self
.
codomain
.
nlon
lmax
=
self
.
domain
.
lmax
...
...
nifty/operators/fft_operator/transformations/lmhptransformation.py
View file @
469ae0ee
...
...
@@ -94,11 +94,6 @@ class LMHPTransformation(SlicingTransformation):
super
(
LMHPTransformation
,
cls
).
check_codomain
(
domain
,
codomain
)
def
_transformation_of_slice
(
self
,
inp
,
**
kwargs
):
if
inp
.
dtype
not
in
(
np
.
float
,
np
.
complex
):
self
.
logger
.
warn
(
"The input array has dtype: %s. The FFT will "
"be performed at double precision."
%
str
(
inp
.
dtype
))
nside
=
self
.
codomain
.
nside
lmax
=
self
.
domain
.
lmax
mmax
=
lmax
...
...
nifty/operators/fft_operator/transformations/rg_transforms.py
View file @
469ae0ee
...
...
@@ -433,11 +433,6 @@ class FFTW(Transform):
not
all
(
axis
in
range
(
len
(
val
.
shape
))
for
axis
in
axes
):
raise
ValueError
(
"Provided axes does not match array shape"
)
#if val.dtype not in (np.float, np.complex):
# self.logger.warn("The input array has dtype: %s. The FFT will "
# "be performed at double precision." %
# str(val.dtype))
# If the input is a numpy array we transform it locally
if
not
isinstance
(
val
,
distributed_data_object
):
# Cast to a np.ndarray
...
...
@@ -582,11 +577,6 @@ class NUMPYFFT(Transform):
not
all
(
axis
in
range
(
len
(
val
.
shape
))
for
axis
in
axes
):
raise
ValueError
(
"Provided axes does not match array shape"
)
if
val
.
dtype
not
in
(
np
.
float
,
np
.
complex
):
self
.
logger
.
warn
(
"The input array has dtype: %s. The FFT will "
"be performed at double precision."
%
str
(
val
.
dtype
))
return_val
=
val
.
copy_empty
(
global_shape
=
val
.
shape
,
dtype
=
np
.
complex
)
...
...
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