Commit c1b6a1ab authored by Theo Steininger's avatar Theo Steininger

Merge branch 'misc_tweaks' into 'master'

Misc tweaks

See merge request !138
parents 45c8584b df8dce00
Pipeline #13150 passed with stages
in 11 minutes and 22 seconds
#!/bin/bash
git clone https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git
(cd pyHealpix && autoreconf -i && ./configure --enable-openmp --enable-native-optimizations && make -j4 install)
(cd pyHealpix && autoreconf -i && ./configure --enable-openmp && make -j4 install)
rm -rf pyHealpix
......@@ -37,7 +37,7 @@ class GLLMTransformation(SlicingTransformation):
if module != 'pyHealpix':
raise ValueError("Unsupported SHT module.")
if 'pyHealpix' not in gdi:
if pyHealpix is None:
raise ImportError(
"The module pyHealpix is needed but not available.")
......
......@@ -38,7 +38,7 @@ class HPLMTransformation(SlicingTransformation):
if module != 'pyHealpix':
raise ValueError("Unsupported SHT module.")
if 'pyHealpix' not in gdi:
if pyHealpix is None:
raise ImportError(
"The module pyHealpix is needed but not available")
......
......@@ -37,7 +37,7 @@ class LMGLTransformation(SlicingTransformation):
if module != 'pyHealpix':
raise ValueError("Unsupported SHT module.")
if 'pyHealpix' not in gdi:
if pyHealpix is None:
raise ImportError(
"The module pyHealpix is needed but not available.")
......
......@@ -36,7 +36,7 @@ class LMHPTransformation(SlicingTransformation):
if module != 'pyHealpix':
raise ValueError("Unsupported SHT module.")
if gdi.get('pyHealpix') is None:
if pyHealpix is None:
raise ImportError(
"The module pyHealpix is needed but not available.")
......
......@@ -13,7 +13,7 @@ class GLMollweide(Heatmap):
def __init__(self, data, xsize=800, color_map=None,
webgl=False, smoothing=False):
# smoothing 'best', 'fast', False
if 'pyHealpix' not in gdi:
if pyHealpix is None:
raise ImportError(
"The module pyHealpix is needed but not available.")
self.xsize = xsize
......
......@@ -12,7 +12,7 @@ pyHealpix = gdi.get('pyHealpix')
class HPMollweide(Heatmap):
def __init__(self, data, xsize=800, color_map=None, webgl=False,
smoothing=False): # smoothing 'best', 'fast', False
if 'pyHealpix' not in gdi:
if pyHealpix is None:
raise ImportError(
"The module pyHealpix is needed but not available.")
self.xsize = xsize
......
......@@ -31,7 +31,7 @@ class PlotterBase(Loggable, object):
__metaclass__ = abc.ABCMeta
def __init__(self, interactive=False, path='.', title=""):
if 'plotly' not in gdi:
if plotly is None:
raise ImportError("The module plotly is needed but not available.")
self.interactive = interactive
self.path = path
......
......@@ -45,7 +45,7 @@ class GLSpace(Space):
Number of latitudinal bins (or rings) that are used for this
pixelization.
nlon : int, *optional*
Number of longditudinal bins that are used for this pixelization.
Number of longitudinal bins that are used for this pixelization.
Attributes
----------
......@@ -57,7 +57,7 @@ class GLSpace(Space):
Number of latitudinal bins (or rings) that are used for this
pixelization.
nlon : int
Number of longditudinal bins that are used for this pixelization.
Number of longitudinal bins that are used for this pixelization.
total_volume : np.float
The total volume of the space.
shape : tuple of np.ints
......@@ -89,7 +89,7 @@ class GLSpace(Space):
# ---Overwritten properties and methods---
def __init__(self, nlat, nlon=None):
if 'pyHealpix' not in gdi:
if pyHealpix is None:
raise ImportError(
"The module pyHealpix is needed but not available.")
......@@ -163,7 +163,7 @@ class GLSpace(Space):
@property
def nlon(self):
""" Number of longditudinal bins that are used for this pixelization.
""" Number of longitudinal bins that are used for this pixelization.
"""
return self._nlon
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment