@@ -63,7 +63,7 @@ cdef class File:
6363 :type comm: mpi4py.MPI.Comm or None
6464
6565 :param info: [Optional]
66- MPI info object to use for file access. `None` defaults to
66+ MPI info instance to use for file access. `None` defaults to
6767 ``MPI_INFO_NULL``.
6868 :type info: mpi4py.MPI.Info or None
6969
@@ -178,7 +178,7 @@ cdef class File:
178178
179179
180180 def __dealloc__ (self ):
181- # close file when there are no references to object left
181+ # close file when there are no references to it left
182182 if self ._isopen:
183183 self ._close(False )
184184
@@ -296,8 +296,8 @@ cdef class File:
296296 must be a positive integer or `-1`, which stands for "unlimited"
297297 (default is `-1`). The return value is the `Dimension` class instance
298298 describing the new dimension. To determine the current maximum size of
299- the dimension, use the `len` function on the `Dimension` instance. To
300- determine if a dimension is 'unlimited', use the
299+ the dimension, use the python function `len()` on the `Dimension`
300+ instance. To determine if a dimension is 'unlimited', use the
301301 :meth:`Dimension.isunlimited` method of the `Dimension` instance.
302302
303303 :param str dimname: Name of the new dimension.
@@ -454,7 +454,7 @@ cdef class File:
454454 # # containing all the netCDF attribute name/value pairs is provided by
455455 # # the `__dict__` attribute of a `Variable` instance.
456456
457- # # `Variable` instances behave much like array objects . Data can be
457+ # # `Variable` instances behave much like arrays . Data can be
458458 # # assigned to or retrieved from a variable with indexing and slicing
459459 # # operations on the `Variable` instance. A `Variable` instance has six
460460 # # Dataset standard attributes: `dimensions, dtype, shape, ndim, name`.
@@ -925,10 +925,10 @@ cdef class File:
925925 """
926926 set_auto_chartostring(self, value)
927927
928- Call :meth:`Variable.set_auto_chartostring` for all variables
929- contained in this `File`. Calling this function only affects existing
930- variables. Variables defined after calling this function will follow
931- the default behaviour.
928+ Call :meth:`Variable.set_auto_chartostring` for all variables contained
929+ in this `File`. Calling this method only affects existing variables.
930+ Variables defined after calling this method will follow the default
931+ behaviour.
932932
933933 :param value: True or False
934934 :type value: bool
@@ -1026,7 +1026,7 @@ cdef class File:
10261026 """
10271027 inq_info(self)
10281028
1029- Returns an MPI info object containing all the file hints used by
1029+ Returns an MPI info instance containing all the file hints used by
10301030 PnetCDF library.
10311031
10321032 :rtype: mpi4py.MPI.Info
@@ -1106,7 +1106,7 @@ cdef class File:
11061106 return extent
11071107
11081108cdef _get_dims(file ):
1109- # Private function to create `Dimension` instances for all the
1109+ # Private method to create `Dimension` instances for all the
11101110 # dimensions in a `File`
11111111 cdef int ierr, numdims, n, _file_id
11121112 cdef int * dimids
@@ -1132,7 +1132,7 @@ cdef _get_dims(file):
11321132 return dimensions
11331133
11341134cdef _get_variables(file ):
1135- # Private function to create `Variable` instances for all the
1135+ # Private method to create `Variable` instances for all the
11361136 # variables in a `File`
11371137 cdef int ierr, numvars, n, nn, numdims, varid, classp, iendian, _file_id
11381138 cdef int * varids
0 commit comments