Skip to content

Match docstring parameter names to function signatures - #531

Merged
CPBridge merged 1 commit into
ImagingDataCommons:masterfrom
chenyangsu:bugfix/docstring-parameter-names
Nov 29, 2026
Merged

CPBridge merged 1 commit into
ImagingDataCommons:masterfrom
chenyangsu:bugfix/docstring-parameter-names

Conversation

@chenyangsu

Copy link
Copy Markdown
Contributor

Thirteen docstrings name a parameter differently from the signature, so the API reference shows, for example, apply for LUT.apply(array, ...) and plane_number for Volume.get_plane_position(plane_index). This renames those entries:

  • apply to array in the eight LUT and transformation apply functions
  • plane_number to plane_index in Volume.get_plane_position()
  • array to spatial_shape in VolumeGeometry.from_components(), with the description from VolumeGeometry.__init__()
  • allow_missing_postions, is_content_continous and item to the signature names in get_series_volume_positions(), ContainerContentItem and ContentSequence.append()

orientation_tol has no entry in get_series_volume_positions() or get_volume_from_series(); happy to add one here or separately.

Testing: pytest --flake8 gives 2617 passed, 8 skipped; codespell passes on the changed files.

@CPBridge CPBridge left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@CPBridge
CPBridge merged commit 52008e3 into ImagingDataCommons:master Nov 29, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants