...
 
Commits (10)
......@@ -5,8 +5,8 @@ RUN apt-get update && apt-get install -y \
git \
# Packages needed for NIFTy
libfftw3-dev \
python python-pip python-dev python-future python-scipy \
python3 python3-pip python3-dev python3-future python3-scipy \
python python-pip python-dev python-future python-scipy cython \
python3 python3-pip python3-dev python3-future python3-scipy cython3 \
# Documentation build dependencies
python-sphinx python-sphinx-rtd-theme python-numpydoc \
# Testing dependencies
......
......@@ -14,7 +14,7 @@ NIFTy-related publications
@ARTICLE{2013A&A...554A..26S,
author = {{Selig}, M. and {Bell}, M.~R. and {Junklewitz}, H. and {Oppermann}, N. and {Reinecke}, M. and {Greiner}, M. and {Pachajoa}, C. and {En{\ss}lin}, T.~A.},
title = "{NIFTY - Numerical Information Field Theory. A versatile PYTHON library for signal inference}",
journal = {\aap},
journal = {Astronomy \& Astrophysics},
archivePrefix = "arXiv",
eprint = {1301.4499},
primaryClass = "astro-ph.IM",
......
......@@ -160,6 +160,18 @@ class MultiField(object):
return False
return True
def any(self):
for field in self._val.values():
if field.any():
return True
return False
def all(self):
for field in self._val.values():
if not field.all():
return False
return True
for op in ["__add__", "__radd__", "__iadd__",
"__sub__", "__rsub__", "__isub__",
"__mul__", "__rmul__", "__imul__",
......
......@@ -76,7 +76,7 @@ class SandwichOperator(EndomorphicOperator):
def draw_sample(self, from_inverse=False, dtype=np.float64):
# Inverse samples from general sandwiches is not possible
if from_inverse:
if self._bun.capabilities & self._bun.INVERSE_TIMES:
if self._bun.capability & self._bun.INVERSE_TIMES:
try:
s = self._cheese.draw_sample(from_inverse, dtype)
return self._bun.inverse_times(s)
......