[Yt-svn] yt: Indendation errors on docstrings.

hg at spacepope.org hg at spacepope.org
Fri Jun 25 12:21:22 PDT 2010


hg Repository: yt
details:   yt/rev/cbf801419328
changeset: 1818:cbf801419328
user:      Stephen Skory <stephenskory at yahoo.com>
date:
Fri Jun 25 12:21:16 2010 -0700
description:
Indendation errors on docstrings.

diffstat:

 yt/extensions/merger_tree.py |  52 +++++++++++++-------------
 1 files changed, 26 insertions(+), 26 deletions(-)

diffs (69 lines):

diff -r 1642520950b6 -r cbf801419328 yt/extensions/merger_tree.py
--- a/yt/extensions/merger_tree.py	Fri Jun 25 10:50:14 2010 -0700
+++ b/yt/extensions/merger_tree.py	Fri Jun 25 12:21:16 2010 -0700
@@ -700,17 +700,17 @@
 
 class MergerTreeConnect(DatabaseFunctions):
     def __init__(self, database='halos.db'):
-    r"""Create a convenience object for accessing data from the halo database.
-    
-    Parameters
-    ----------
-    database : String
-        The name of the halo database to access. Default = 'halos.db'.
-    
-    Examples
-    -------
-    >>> mtc = MergerTreeConnect('/home/user/sim1-halos.db')
-    """
+        r"""Create a convenience object for accessing data from the halo database.
+        
+        Parameters
+        ----------
+        database : String
+            The name of the halo database to access. Default = 'halos.db'.
+        
+        Examples
+        -------
+        >>> mtc = MergerTreeConnect('/home/user/sim1-halos.db')
+        """
         self.database = database
         result = self._open_database()
         if not result:
@@ -960,21 +960,21 @@
 
 class MergerTreeTextOutput(DatabaseFunctions, lagos.ParallelAnalysisInterface):
     def __init__(self, database='halos.db', outfile='MergerTreeDB.txt'):
-    r"""Dump the contents of the merger tree database to a text file.
-    This is generally not recommended.
-    
-    Parameters
-    ----------
-    database : String
-        Name of the database to access. Default = 'halos.db'.
-    outfile : String
-        Name of the file to write to. Default = 'MergerTreeDB.txt'.
-    
-    Examples
-    --------
-    >>> MergerTreeTextOutput(database='/home/user/sim1-halos.db',
-    ... outfile='halos-db.txt')
-    """
+        r"""Dump the contents of the merger tree database to a text file.
+        This is generally not recommended.
+        
+        Parameters
+        ----------
+        database : String
+            Name of the database to access. Default = 'halos.db'.
+        outfile : String
+            Name of the file to write to. Default = 'MergerTreeDB.txt'.
+        
+        Examples
+        --------
+        >>> MergerTreeTextOutput(database='/home/user/sim1-halos.db',
+        ... outfile='halos-db.txt')
+        """
         self.database = database
         self.outfile = outfile
         result = self._open_database()



More information about the yt-svn mailing list