Commit aa67fcf6 authored by Marco Selig's avatar Marco Selig

version update.

parent 698d5799
...@@ -96,7 +96,7 @@ Requirements ...@@ -96,7 +96,7 @@ Requirements
Download Download
........ ........
The latest release is tagged **v0.3.0** and is available as a source package The latest release is tagged **v0.4.0** and is available as a source package
at `<https://github.com/mselig/nifty/tags>`_. The current version can be at `<https://github.com/mselig/nifty/tags>`_. The current version can be
obtained by cloning the repository:: obtained by cloning the repository::
...@@ -128,8 +128,9 @@ References ...@@ -128,8 +128,9 @@ References
.......... ..........
.. [1] Selig et al., "NIFTY - Numerical Information Field Theory - a .. [1] Selig et al., "NIFTY - Numerical Information Field Theory - a
versatile Python library for signal inference", submitted to A&A, 2013; versatile Python library for signal inference",
`arXiv:1301.4499 <http://www.arxiv.org/abs/1301.4499>`_ `A&A, vol. 554, id. A26 <http://dx.doi.org/10.1051/0004-6361/201321236>`_,
2013; `arXiv:1301.4499 <http://www.arxiv.org/abs/1301.4499>`_
Release Notes Release Notes
------------- -------------
......
...@@ -107,7 +107,8 @@ ...@@ -107,7 +107,8 @@
References References
---------- ----------
.. [#] Selig et al., "NIFTY -- Numerical Information Field Theory -- .. [#] Selig et al., "NIFTY -- Numerical Information Field Theory --
a versatile Python library for signal inference", submitted to A&A, a versatile Python library for signal inference",
`A&A, vol. 554, id. A26 <http://dx.doi.org/10.1051/0004-6361/201321236>`_,
2013; `arXiv:1301.4499 <http://www.arxiv.org/abs/1301.4499>`_ 2013; `arXiv:1301.4499 <http://www.arxiv.org/abs/1301.4499>`_
""" """
...@@ -483,7 +484,7 @@ class _about(object): ## nifty support class for global settings ...@@ -483,7 +484,7 @@ class _about(object): ## nifty support class for global settings
""" """
## version ## version
self._version = "0.3.97" ## FIXME: release veriosn 0.4.0 << REFERENCE + README self._version = "0.4.0"
## switches and notifications ## switches and notifications
self._errors = notification(default=True,ccode=notification._code) self._errors = notification(default=True,ccode=notification._code)
...@@ -1107,7 +1108,7 @@ class space(object): ...@@ -1107,7 +1108,7 @@ class space(object):
def get_power_undex(self,pindex=None): ## TODO: remove in future version def get_power_undex(self,pindex=None): ## TODO: remove in future version
""" """
**DEPRECATED** Provides the unindexing list for an indexed power spectrum. **DEPRECATED** Provides the Unindexing array for an indexed power spectrum.
Parameters Parameters
---------- ----------
...@@ -1117,13 +1118,13 @@ class space(object): ...@@ -1117,13 +1118,13 @@ class space(object):
Returns Returns
------- -------
pundex : list pundex : numpy.ndarray
Unindexing list undoing power indexing. Unindexing array undoing power indexing.
Notes Notes
----- -----
Indexing with the unindexing list undoes the indexing with the Indexing with the unindexing array undoes the indexing with the
indexing array; i.e., ``x == x[pindex][pundex]``. indexing array; i.e., ``power == power[pindex].flatten()[pundex]``.
See also See also
-------- --------
...@@ -1174,7 +1175,7 @@ class space(object): ...@@ -1174,7 +1175,7 @@ class space(object):
Provides one-dimensional arrays containing the scales of the Provides one-dimensional arrays containing the scales of the
spectral bands and the numbers of modes per scale, and an array spectral bands and the numbers of modes per scale, and an array
giving for each component of a field the corresponding index of a giving for each component of a field the corresponding index of a
power spectrum as well as an unindexing list. power spectrum as well as an Unindexing array.
Parameters Parameters
---------- ----------
...@@ -1201,16 +1202,16 @@ class space(object): ...@@ -1201,16 +1202,16 @@ class space(object):
pindex : numpy.ndarray pindex : numpy.ndarray
Indexing array giving the power spectrum index for each Indexing array giving the power spectrum index for each
represented mode. represented mode.
pundex : list pundex : numpy.ndarray
Unindexing list undoing power spectrum indexing. Unindexing array undoing power spectrum indexing.
Notes Notes
----- -----
The ``kindex`` and ``rho`` are each one-dimensional arrays. The ``kindex`` and ``rho`` are each one-dimensional arrays.
The indexing array is of the same shape as a field living in this The indexing array is of the same shape as a field living in this
space and contains the indices of the associated bands. space and contains the indices of the associated bands.
Indexing with the unindexing list undoes the indexing with the Indexing with the unindexing array undoes the indexing with the
indexing array; i.e., ``power == power[pindex][pundex]``. indexing array; i.e., ``power == power[pindex].flatten()[pundex]``.
See also See also
-------- --------
......
...@@ -64,8 +64,8 @@ def weight_power(domain,spec,power=1,pindex=None,pundex=None,**kwargs): ...@@ -64,8 +64,8 @@ def weight_power(domain,spec,power=1,pindex=None,pundex=None,**kwargs):
pindex : ndarray, *optional* pindex : ndarray, *optional*
Indexing array giving the power spectrum index for each Indexing array giving the power spectrum index for each
represented mode. represented mode.
pundex : list, *optional* pundex : ndarray, *optional*
Unindexing list undoing power indexing. Unindexing array undoing power indexing.
Returns Returns
------- -------
...@@ -265,7 +265,7 @@ def _calc_laplace(kindex): ## > computes Laplace operator and integrand ...@@ -265,7 +265,7 @@ def _calc_laplace(kindex): ## > computes Laplace operator and integrand
klim = len(kindex) klim = len(kindex)
L = np.zeros((klim,klim)) L = np.zeros((klim,klim))
I = np.zeros(klim) I = np.zeros(klim)
for jj in range(2,klim-1): ## leave out {0,1,kmax} for jj in xrange(2,klim-1): ## leave out {0,1,kmax}
L[jj,jj-1] = 2/(dl2[jj-1]*dl1[jj-1]) L[jj,jj-1] = 2/(dl2[jj-1]*dl1[jj-1])
L[jj,jj] = -2/dl2[jj-1]*(1/dl1[jj]+1/dl1[jj-1]) L[jj,jj] = -2/dl2[jj-1]*(1/dl1[jj]+1/dl1[jj-1])
L[jj,jj+1] = 2/(dl2[jj-1]*dl1[jj]) L[jj,jj+1] = 2/(dl2[jj-1]*dl1[jj])
...@@ -317,8 +317,8 @@ def infer_power(m,domain=None,Sk=None,D=None,pindex=None,pundex=None,kindex=None ...@@ -317,8 +317,8 @@ def infer_power(m,domain=None,Sk=None,D=None,pindex=None,pundex=None,kindex=None
pindex : numpy.ndarray, *optional* pindex : numpy.ndarray, *optional*
Indexing array giving the power spectrum index for each Indexing array giving the power spectrum index for each
represented mode (default: None). represented mode (default: None).
pundex : list, *optional* pundex : ndarray, *optional*
Unindexing list undoing power indexing. Unindexing array undoing power indexing.
kindex : numpy.ndarray, *optional* kindex : numpy.ndarray, *optional*
Scale corresponding to each band in the power spectrum Scale corresponding to each band in the power spectrum
(default: None). (default: None).
......
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