Skip to content

Commit

Permalink
Wrapping/Python: replace section syntax in docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
mathstuf committed Feb 20, 2025
1 parent 3def5f7 commit 971e436
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
18 changes: 8 additions & 10 deletions Wrapping/Python/paraview/algorithms/openpmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ def _get_update_time(self, outInfo):
https://github.com/openPMD/openPMD-viewer/pull/347
- or move out of the reader into VTK itself, so all readers behave the same
Parameters
----------
Parameters:
outInfo: vktInformation
Exchanges information between pipeline objects, e.g., between two filters.
Expand All @@ -129,8 +128,8 @@ def _get_update_time(self, outInfo):
UPDATE_... are requests. Here, we request a new step for a time, e.g., to animate.
Returns
-------
Returns:
The time (float) of the first time step available
that is less than the requested time.
"""
Expand Down Expand Up @@ -232,8 +231,7 @@ def FillOutputPortInformation(self, port, info):
- vtkPartitionedDataSet: openPMD meshes
- vtkPartitionedDataSetCollection: openPMD particle species
Parameters
----------
Parameters:
port: Int
Output indices: 0 for meshes, 1 for particle species
Expand All @@ -257,8 +255,8 @@ def RequestInformation(self, request, inInfoVec, outInfoVec):
- species names
- particle array names per species
Parameters
----------
Parameters:
request:
Not used.
Expand Down Expand Up @@ -378,8 +376,8 @@ def _get_array_and_component(self, itr, name):
Scalars have no components, e.g., a density field "rho".
Vectors/tensors have components, e.g., the electric field E ("E_x", "E_y", "E_z").
Parameters
----------
Parameters:
itr: openPMD.Iteration
The current iteration to inspect.
name: openPMD record name of the mesh, e.g., "rho" or "E_x"
Expand Down
3 changes: 1 addition & 2 deletions Wrapping/Python/paraview/simple/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ def ResetCameraToDirection(
:param sbounds: If provided, reset the camera using computed bounds from a sphere_bounds (center_x, center_y, center_z, radius).
:type sbounds: 4-element tuple or list of floats.
Examples
--------
Examples:
>> ResetCameraToDirection(
... direction=[-1, -1, -1],
Expand Down

0 comments on commit 971e436

Please sign in to comment.