From ab6ea82ed1919461f4e1f3aa6e6751fd33825e01 Mon Sep 17 00:00:00 2001
From: dpumpe <dpumpe@mpa-garching.mpg.de>
Date: Mon, 8 May 2017 15:06:14 +0200
Subject: [PATCH] Docstrings for ProjectionOperator

---
 .../projection_operator.py                    | 45 +++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/nifty/operators/projection_operator/projection_operator.py b/nifty/operators/projection_operator/projection_operator.py
index 26e49154e..af694dc9a 100644
--- a/nifty/operators/projection_operator/projection_operator.py
+++ b/nifty/operators/projection_operator/projection_operator.py
@@ -25,6 +25,51 @@ from nifty.operators.endomorphic_operator import EndomorphicOperator
 
 class ProjectionOperator(EndomorphicOperator):
 
+    """NIFTY class for projection operators.
+    The  NIFTY PorjectionOperator class is a class derived from the
+    EndomorphicOperator. It projects
+
+    Parameters
+    ----------
+    projection_field : NIFTy.Field
+        Field on which the operator projects
+
+    Attributes
+    ----------
+    domain : NIFTy.space
+        The NIFTy.space in which the operator is defined.
+    unitary : Boolean
+        Indicates whether the operator is unitary or not.
+    self_adjoint : boolean
+        Indicates whether the operator is self_adjoint or not
+
+    Raises
+    ------
+    TypeError
+        Raised if
+            * if porjection_field is not a NIFTy.Field
+
+    Notes
+    -----
+
+
+    Examples
+    --------
+    >>> x_space = RGSpace(5)
+    >>> f1 = Field(x_space, val=3.)
+    >>> f2 = Field(x_space, val=5.)
+    >>> P = ProjectionOperator(f1)
+    >>> res = P.times(f2)
+    >>> res.val
+    <distributed_data_object>
+    array([ 225.,  225.,  225.,  225.,  225.])
+
+    See Also
+    --------
+    EndomorphicOperator
+
+
+    """
     # ---Overwritten properties and methods---
 
     def __init__(self, projection_field):
-- 
GitLab