Repository Analysis

pyvista/pyvista

3D visualization and mesh analysis for science and engineering

17.6 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of pyvista/pyvista, a Python project with 3,761 GitHub stars. SynthScan v2.0 examined 258,408 lines of code across 593 source files, recording 4514 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 17.6 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

17.6
Adjusted Score
17.6
Raw Score
100%
Time Factor
2026-08-09
Last Push
3.8K
Stars
Python
Language
258.4K
Lines of Code
593
Files
4.5K
Pattern Hits
2026-08-09
Scan Date
0.06
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 37MEDIUM 229LOW 4248

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 4514 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers2692 hits · 2331 pts
SeverityFileLineSnippetContext
LOWtoxfile.py28def _get_ci_xdist_auto_workers() -> str:CODE
LOWtoxfile.py105def _get_freezed_requirements(lines: list[str]) -> Generator[tuple[str, Version], None, None]:CODE
LOWtests/conftest.py319def multiblock_all_with_nested_and_none(datasets, multiblock_all):CODE
LOWtests/conftest.py358def _check_args_kwargs_marker(item_mark: pytest.Mark, sig: inspect.Signature):CODE
LOWtests/test_import_conventions.py77def _documented_member_modules() -> set[str]:CODE
LOWtests/test_import_conventions.py111def test_convention_lists_are_disjoint():CODE
LOWtests/test_import_conventions.py122def test_documentation_matches_the_enforced_member_list():CODE
LOWtests/test_import_conventions.py132def test_convention_lists_are_not_empty():CODE
LOWtests/test_import_conventions.py139def test_waived_modules_are_not_also_governed(waived):CODE
LOWtests/test_import_conventions.py147def test_every_imported_stdlib_module_is_governed():CODE
LOWtests/test_conftest.py89def test_warnings_turned_to_errors(CODE
LOWtests/test_conftest.py280 def test_between_variadic_max_equals(): ...CODE
LOWtests/test_conftest.py283 def test_between_variadic_min_equals(): ...CODE
LOWtests/test_conftest.py311 def case_raises_both_args_min_kwargs(self):STRING
LOWtests/test_conftest.py414def test_needs_vtk_version_raises(tests: str, outcome: dict, pytester: pytest.Pytester):STRING
LOWtests/test_conftest.py422def test_needs_vtk_version_reason(tests: str, match: list[str], pytester: pytest.Pytester):STRING
LOWtests/test_conftest.py429def test_needs_vtk_version_raises_vtk_version_error(STRING
LOWtests/test_conftest.py533 def test_skipped_message_args():CODE
LOWtests/test_conftest.py603 def test_skipped_platform_machine():CODE
LOWtests/test_cli.py212 def case_additional_multiple_kw(self):CODE
LOWtests/test_cli.py215 def case_additional_multiple_args(self):CODE
LOWtests/test_cli.py221 def case_additional_textwidth(self):CODE
LOWtests/test_cli.py173def test_command_paths_required(capsys: pytest.CaptureFixture, command):CODE
LOWtests/test_cli.py303def tmp_ant_file_invalid_multiblock(tmp_ant_file):CODE
LOWtests/test_cli.py318def test_convert_dir_only_error(tmp_ant_file: Path, capsys: pytest.CaptureFixture):CODE
LOWtests/test_cli.py330def test_convert_file_not_found(capsys: pytest.CaptureFixture):CODE
LOWtests/test_cli.py361def test_convert_multiple_inputs(tmp_example_dir, tmp_ant_file: Path):CODE
LOWtests/test_cli.py370def test_convert_multiple_inputs_subdir(tmp_example_dir, tmp_ant_file: Path):CODE
LOWtests/test_cli.py424def test_convert_glob_subdir_writes_adjacent(tmp_example_dir, tmp_ant_file: Path):CODE
LOWtests/test_cli.py440def test_convert_glob_no_match(capsys: pytest.CaptureFixture):CODE
LOWtests/test_cli.py455def test_multiblock_drops_sidecar_children(CODE
LOWtests/test_cli.py499def test_convert_multiblock_keeps_orphan_children(tmp_example_dir: Path):CODE
LOWtests/test_cli.py511def test_convert_multiple_inputs_named_output_error(CODE
LOWtests/test_cli.py528def test_convert_too_few_args(capsys: pytest.CaptureFixture):CODE
LOWtests/test_cli.py580def test_convert_compound_extension(CODE
LOWtests/test_cli.py595def test_convert_compound_extension_collision(tmp_example_dir: Path):CODE
LOWtests/test_cli.py711def test_validate_invalid_mesh(CODE
LOWtests/test_cli.py897def test_validate_invalid_args(tmp_ant_file: Path, capsys: pytest.CaptureFixture):CODE
LOWtests/test_cli.py961def test_validate_invalid_field(tmp_ant_file: Path, capsys: pytest.CaptureFixture):CODE
LOWtests/test_cli.py984def test_validate_pyvista_error(tmp_ant_file: Path, capsys: pytest.CaptureFixture):CODE
LOWtests/test_cli.py1193 def case_window_size_multiple(CODE
LOWtests/test_cli.py1202 def case_window_size_rounding(CODE
LOWtests/test_cli.py1267 def case_anti_aliasing_raises(self):CODE
LOWtests/test_cli.py1275 def case_window_size_wrong_length(self, window_size: str):CODE
LOWtests/test_cli.py1292 def case_window_size_wrong_type(self, window_size: str):CODE
LOWtests/test_cli.py1478def test_plot_skip_unreadable_hint(CODE
LOWtests/test_cli.py1526def test_add_mesh_volume_called(CODE
LOWtests/test_cli.py1552def test_plot_glob_expands_files(mock_add_mesh: MagicMock, tmp_example_dir: Path):CODE
LOWtests/test_cli.py1561def test_validate_glob_expands_files(CODE
LOWtests/test_cli.py1641def test_convert_collision_error(ant, tmp_example_dir: Path, capsys: pytest.CaptureFixture):CODE
LOWtests/test_cli.py1657def test_convert_resolve_collisions(ant, tmp_example_dir: Path, capsys: pytest.CaptureFixture):CODE
LOWtests/test_cli.py1681def test_convert_resolve_collisions_counter_increment(CODE
LOWtests/test_cli.py1705def test_convert_skip_unreadable_single(tmp_example_dir: Path, capsys: pytest.CaptureFixture):CODE
LOWtests/test_cli.py1717def test_convert_skip_unreadable_many(tmp_example_dir: Path, capsys: pytest.CaptureFixture):CODE
LOWtests/test_cli.py1742def test_validate_many_invalid(CODE
LOWtests/test_cli.py1773def test_validate_multiple_files_single_mesh_invalid(CODE
LOWtests/test_cli.py1787def test_validate_skip_unreadable(CODE
LOWtests/test_cli.py1832def test_validate_unsupported_mesh_type(capsys: pytest.CaptureFixture):CODE
LOWtests/test_cli.py1960def test_compare_forwards_arguments(CODE
LOWtests/test_cli.py1987def test_compare_labels_are_unique(CODE
2632 more matches not shown…
Unused Imports983 hits · 755 pts
SeverityFileLineSnippetContext
LOWtoxfile.py1CODE
LOWtests/generate_test_image_report.py15CODE
LOWtests/test_meshio.py1CODE
LOWtests/conftest.py1CODE
LOWtests/test_import_conventions.py10CODE
LOWtests/test_conftest.py1CODE
LOWtests/check_doctest_names.py43CODE
LOWtests/test_hooks.py3CODE
LOWtests/test_meta.py8CODE
LOWtests/test_cli.py1CODE
LOWtests/test_cli.py1114CODE
LOWtests/test_cli.py1116CODE
LOWtests/test_cli.py1117CODE
LOWtests/test_cli.py1118CODE
LOWtests/test_cli.py1119CODE
LOWtests/test_cli.py1120CODE
LOWtests/test_init.py1CODE
LOWtests/test_attributes.py1CODE
LOWtests/test_warn_external.py1CODE
LOWtests/core/test_frd.py1CODE
LOWtests/core/test_composite.py1CODE
LOWtests/core/test_reader.py1CODE
LOWtests/core/test_image_sources.py1CODE
LOWtests/core/test_formatting_html.py3CODE
LOWtests/core/test_grid.py1CODE
LOWtests/core/test_parametric_geometry.py1CODE
LOWtests/core/test_validation.py1CODE
LOWtests/core/test_partitioned.py1CODE
LOWtests/core/test_accessor_registry.py3CODE
LOWtests/core/test_rectilinear_grid_filters.py1CODE
LOWtests/core/test_cells.py1CODE
LOWtests/core/test_polydata.py1CODE
LOWtests/core/test_polydata.py17CODE
LOWtests/core/test_unstructured_grid_filters.py3CODE
LOWtests/core/test_utilities.py3CODE
LOWtests/core/test_pointset.py3CODE
LOWtests/core/test_dataobject.py1CODE
LOWtests/core/test_geometric_sources.py1CODE
LOWtests/core/test_dataset.py3CODE
LOWtests/core/test_dataset_filters.py1CODE
LOWtests/core/test_polydata_filters.py1CODE
LOWtests/core/test_imagedata_filters.py1CODE
LOWtests/core/test_reader_registry.py3CODE
LOWtests/core/test_helpers.py1CODE
LOWtests/core/test_imaging.py1CODE
LOWtests/core/test_geometric_objects.py1CODE
LOWtests/core/test_dataobject_filters.py1CODE
LOWtests/core/test_datasetattributes.py1CODE
LOWtests/core/test_objects.py3CODE
LOWtests/core/test_pyvista_ndarray.py1CODE
LOWtests/core/test_writer_registry.py3CODE
LOWtests/security/test_pickle_refused.py15CODE
LOWtests/ext/test_ext.py3CODE
LOWtests/namespace/test_plotting_namespace.py1CODE
LOWtests/namespace/test_plotting_namespace.py30CODE
LOWtests/namespace/test_plotting_namespace.py35CODE
LOWtests/namespace/test_plotting_namespace.py40CODE
LOWtests/namespace/test_utilities_namespace.py1CODE
LOWtests/namespace/test_utilities_namespace.py64CODE
LOWtests/namespace/test_utilities_namespace.py67CODE
923 more matches not shown…
Self-Referential Comments137 hits · 416 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_cli.py343 # Create a dummy .vtp file with empty contentsCOMMENT
MEDIUMtests/core/test_polydata.py1116 # Define a simple Gaussian surfaceCOMMENT
MEDIUMtests/core/test_polydata.py1211 # Create a poly lineCOMMENT
MEDIUMtests/core/test_dataset_filters.py820 # Define the plane explicitlyCOMMENT
MEDIUMtests/core/test_dataset_filters.py852 # Define the center explicitlyCOMMENT
MEDIUMtests/core/test_dataset_filters.py3851 # Create a simple meshCOMMENT
MEDIUMtests/plotting/test_volume_property.py110 # Create a mock lookup tableCOMMENT
MEDIUMtests/plotting/test_texture.py249 # Create the poly dataCOMMENT
MEDIUMtests/plotting/test_picking.py636 # Create a mesh with point dataCOMMENT
MEDIUMtests/plotting/test_render_window_interactor.py219 # Create a normal interactor from the offscreen plotter (not generic,COMMENT
MEDIUMtests/plotting/test_theme_registry.py68 # Creating the subclass must not register it under any other nameCOMMENT
MEDIUMtests/plotting/mappers/test_mapper.py236 # Create a new mesh with the same arrayCOMMENT
MEDIUMpyvista/core/pointset.py3593 # This method is required to avoid conflict if a developer extends `ExplicitStructuredGrid`COMMENT
MEDIUMpyvista/core/cell.py890# The following methods would be much nicer bound to CellArray,COMMENT
MEDIUMpyvista/core/dataset.py2700 >>> # Create a grid with 9 points and 4 cellsSTRING
MEDIUMpyvista/core/composite.py2254 # This method is here for consistency with the rest of the API andCOMMENT
MEDIUMpyvista/core/filters/image_data.py840 # Create a binary foreground/background mask arrayCOMMENT
MEDIUMpyvista/core/filters/image_data.py1480 >>> # Create an initial background pointSTRING
MEDIUMpyvista/core/filters/data_set.py5872 # Create a second mesh with points. This is required for the mergeCOMMENT
MEDIUMpyvista/core/filters/composite.py215 # Create a copy and replace all the blocksCOMMENT
MEDIUMpyvista/core/filters/data_object.py3803 # Create the three slicesCOMMENT
MEDIUMpyvista/core/_typing_core/_array_like.py39# Create a copy of the typevar which can be used for annotating a second variable.COMMENT
MEDIUMpyvista/core/utilities/geometric_objects.py286 # Create the gridCOMMENT
MEDIUMpyvista/plotting/mapper.py1170 # Create a custom RGBA array to supply our opacity toCOMMENT
MEDIUMpyvista/plotting/texture.py137 # Create a cubemapCOMMENT
MEDIUMexamples/00-load/create_text_3d.py13# Create an extruded text meshCOMMENT
MEDIUMexamples/00-load/linear_cells.py105# Create an UnstructuredGrid with a single linear cellCOMMENT
MEDIUMexamples/00-load/linear_cells.py283# Create a list of all linear cell types. The list has 19 cell types.COMMENT
MEDIUMexamples/00-load/create_structured_surface.py21# Create a simple meshgrid using NumPy. Note the usage of ij indexing.COMMENT
MEDIUMexamples/00-load/create_truss.py22# Define the points and elements of the truss. Call them ``nodes``COMMENT
MEDIUMexamples/00-load/create_tri_surface.py25# Define a simple Gaussian surfaceCOMMENT
MEDIUMexamples/00-load/create_tri_surface.py64# Create the point cloud mesh to triangulate from the coordinatesCOMMENT
MEDIUMexamples/00-load/create_tri_surface.py85# Define a polygonal hole with a clockwise polygonCOMMENT
MEDIUMexamples/00-load/create_tri_surface.py88# Create a polydata to store the boundaryCOMMENT
MEDIUMexamples/00-load/create_poly.py47# Create a three face polygonal mesh directly from points and faces.COMMENT
MEDIUMexamples/00-load/create_uniform_grid.py22# Create the 3D NumPy array of spatially referenced data.COMMENT
MEDIUMexamples/00-load/create_uniform_grid.py28# Create the spatial referenceCOMMENT
MEDIUMexamples/00-load/create_uniform_grid.py51# Create the 3D NumPy array of spatially referenced dataCOMMENT
MEDIUMexamples/00-load/create_uniform_grid.py57# Create the spatial referenceCOMMENT
MEDIUMexamples/00-load/create_multiple_lines.py14# Create a winding polylineCOMMENT
MEDIUMexamples/00-load/create_kochanek_spline.py19# Create a dataset to plotCOMMENT
MEDIUMexamples/00-load/wrap_trimesh.py49# Create a simple :class:`trimesh.Trimesh` and wrap it.COMMENT
MEDIUMexamples/00-load/create_draped_surface.py71# Define the Z spacing of your 2D sectionCOMMENT
MEDIUMexamples/00-load/create_polydata_strips.py22# Create an array of pointsCOMMENT
MEDIUMexamples/00-load/create_circular_arc.py17# Create an arc from two endpointsCOMMENT
MEDIUMexamples/00-load/create_circular_arc.py45# Create an arc from a normal and angleCOMMENT
MEDIUMexamples/00-load/create_polyhedron.py184# Create the gridCOMMENT
MEDIUMexamples/00-load/read_file.py16# The following code block uses a built-in example file and displays anCOMMENT
MEDIUMexamples/00-load/read_file.py24# The following code block uses a built-in exampleCOMMENT
MEDIUMexamples/00-load/create_spline.py17# Create a dataset to plotCOMMENT
MEDIUMexamples/00-load/create_spline.py126# Create a spline and its closed counterpart.COMMENT
MEDIUMexamples/00-load/create_spline.py139# Create a spline by parametrizing based on length (default) or point index.COMMENT
MEDIUMexamples/00-load/create_spline.py155# Create a spline and see the effect of boundary constraint.COMMENT
MEDIUMexamples/00-load/create_spline.py193# Create a spline and see the effect of boundary value. It can be set at leftCOMMENT
MEDIUMexamples/00-load/create_pixel_art.py50# Define a helper function to add pixel boxes to plotter.STRING
MEDIUMexamples/98-common/project_points_tessellate.py22# Create a point cloud and project it to a plane.COMMENT
MEDIUMexamples/98-common/project_points_tessellate.py28# Define a planeCOMMENT
MEDIUMexamples/98-common/project_points_tessellate.py43# Create a polydata object with projected pointsCOMMENT
MEDIUMexamples/98-common/project_points_tessellate.py54# Create a plane for visualizationCOMMENT
MEDIUMexamples/99-advanced/warp_by_vector_eigenmodes.py212# Create the 3D NumPy array of spatially referenced dataCOMMENT
77 more matches not shown…
Decorative Section Separators74 hits · 240 pts
SeverityFileLineSnippetContext
MEDIUM.gitpod.yml4# --------------------------------------------------------COMMENT
MEDIUMtests/core/test_frd.py300# =============================================================================COMMENT
MEDIUMtests/core/test_frd.py302# =============================================================================COMMENT
MEDIUMtests/core/test_dataset.py1456# ------------------COMMENT
MEDIUMtests/core/test_dataset.py1458# ------------------COMMENT
MEDIUMtests/core/test_datasetattributes.py1081# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/core/test_datasetattributes.py1083# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/core/test_datasetattributes.py764# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/core/test_datasetattributes.py766# -----------------------------------------------------------------------------COMMENT
MEDIUMpyvista/ext/plot_directive.py185# -----------------------------------------------------------------------------COMMENT
MEDIUMpyvista/ext/plot_directive.py187# -----------------------------------------------------------------------------COMMENT
MEDIUMpyvista/ext/plot_directive.py317# -----------------------------------------------------------------------------COMMENT
MEDIUMpyvista/ext/plot_directive.py319# -----------------------------------------------------------------------------COMMENT
MEDIUMpyvista/ext/plot_directive.py388# -----------------------------------------------------------------------------COMMENT
MEDIUMpyvista/ext/plot_directive.py390# -----------------------------------------------------------------------------COMMENT
MEDIUMpyvista/plotting/plotter.py7360 # =======================================================================COMMENT
MEDIUMpyvista/plotting/plotter.py7362 # =======================================================================COMMENT
MEDIUMpyvista/plotting/plotter.py7554 # =======================================================================COMMENT
MEDIUMpyvista/plotting/plotter.py7556 # =======================================================================COMMENT
MEDIUMpyvista/plotting/plotter.py7748 # =======================================================================COMMENT
MEDIUMpyvista/plotting/plotter.py7750 # =======================================================================COMMENT
MEDIUMpyvista/plotting/picking.py327 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py329 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py339 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py341 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py423 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py425 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py452 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py454 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py787 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py789 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py375 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py377 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py488 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py490 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py1704 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py1706 # =========================================================================COMMENT
MEDIUMexamples/00-load/create_unstructured_surface.py75# -----------------------------------COMMENT
MEDIUMexamples/00-load/wrap_trimesh.py30# -----------------COMMENT
MEDIUMexamples/00-load/wrap_trimesh.py48# --------------------COMMENT
MEDIUMexamples/00-load/wrap_trimesh.py106# ---------------COMMENT
MEDIUMexamples/99-advanced/mesh_validation.py17# ----------------COMMENT
MEDIUMexamples/99-advanced/mesh_validation.py54# -------------------------COMMENT
MEDIUMexamples/99-advanced/mesh_validation.py106# -----------------------COMMENT
MEDIUMexamples/99-advanced/mesh_validation.py162# -------------------------COMMENT
MEDIUMexamples/99-advanced/anatomical_groups.py22# ------------COMMENT
MEDIUMexamples/99-advanced/anatomical_groups.py48# =============COMMENT
MEDIUMexamples/99-advanced/anatomical_groups.py64# -----------------COMMENT
MEDIUMexamples/99-advanced/anatomical_groups.py70# =============COMMENT
MEDIUMexamples/99-advanced/anatomical_groups.py83# ============COMMENT
MEDIUMexamples/99-advanced/anatomical_groups.py111# -----------------COMMENT
MEDIUMexamples/99-advanced/anatomical_groups.py116# =====================COMMENT
MEDIUMexamples/99-advanced/anatomical_groups.py135# =======================COMMENT
MEDIUMexamples/99-advanced/anatomical_groups.py168# ============COMMENT
MEDIUMexamples/04-lights/light_types.py44# ============COMMENT
MEDIUMexamples/04-lights/light_types.py65# ===========COMMENT
MEDIUMexamples/04-lights/plotter_lighting.py51# =========================COMMENT
MEDIUMexamples/04-lights/plotter_lighting.py76# ===============COMMENT
MEDIUMexamples/04-lights/plotter_lighting.py93# ============================COMMENT
MEDIUMexamples/02-plot/axes_objects.py61# ==========COMMENT
14 more matches not shown…
Over-Commented Block150 hits · 148 pts
SeverityFileLineSnippetContext
LOWtox.ini101 pyvista report --gpu --downloadsCOMMENT
LOWtests/core/test_dataset_filters.py661 # [[ 1],COMMENT
LOWtests/core/test_imagedata_filters.py61@pytest.fixtureCOMMENT
LOWpyvista/plotting/plot_compare.py821 # which would both override the fit below and leave the camera pointingCOMMENT
LOWpyvista/plotting/utilities/regression.py161 imfilter.ShouldRerenderOff()COMMENT
LOWexamples/00-load/create_text_3d.py41# %%COMMENT
LOWexamples/00-load/create_sphere.py41mesh.get_cell(0).typeCOMMENT
LOWexamples/00-load/create_sphere.py141x, y, z = pv.spherical_to_cartesian(r_, phi_, theta_)COMMENT
LOWexamples/00-load/linear_cells.py81# %%COMMENT
LOWexamples/00-load/create_structured_surface.py41COMMENT
LOWexamples/00-load/create_structured_surface.py101plt.figure(figsize=(10, 10))COMMENT
LOWexamples/00-load/create_structured_surface.py121# :class:`pyvista.StructuredGrid` as follows:COMMENT
LOWexamples/00-load/create_tri_surface.py101# %%COMMENT
LOWexamples/00-load/create_unstructured_surface.py61COMMENT
LOWexamples/00-load/create_point_cloud.py41# Print first 5 rows to prove its a numpy array (n_points by 3)COMMENT
LOWexamples/00-load/create_point_cloud.py61PYVISTA_GALLERY_FORCE_STATIC = TrueCOMMENT
LOWexamples/00-load/create_point_cloud.py81# %%COMMENT
LOWexamples/00-load/create_platonic_solids.py21# and specify the different kinds of solids to generate, or we can use the thinCOMMENT
LOWexamples/00-load/wrap_trimesh.py81# Field data is accessible via ``metadata``. Both field data keys andCOMMENT
LOWexamples/00-load/read_image.py21COMMENT
LOWexamples/00-load/create_polydata_strips.py61pl.show()COMMENT
LOWexamples/00-load/create_polydata_strips.py101# The output from the ``strip`` filter is, as expected, identical to theCOMMENT
LOWexamples/00-load/create_polyhedron.py61 [0.02, 0.01, 0.03], # 23COMMENT
LOWexamples/00-load/create_polyhedron.py81#COMMENT
LOWexamples/00-load/terrain_following_mesh.py41# %%COMMENT
LOWexamples/98-common/dataframe_export.py61COMMENT
LOWexamples/98-common/dataframe_export.py81COMMENT
LOWexamples/99-advanced/magnetic_fields.py21# sphinx_gallery_thumbnail_number = 3COMMENT
LOWexamples/99-advanced/extending_pyvista.py81# It is now required to explicitly wrap the object into ``FooData``.COMMENT
LOWexamples/99-advanced/add_example.py81#COMMENT
LOWexamples/99-advanced/add_example.py101# :func:`pyvista.Plotter.show`) the resulting image will be rendered within theCOMMENT
LOWexamples/99-advanced/add_example.py121# Here we just exercise the :class:`pyvista.Actor` ``repr`` for demonstratingCOMMENT
LOWexamples/99-advanced/add_example.py181#COMMENT
LOWexamples/99-advanced/add_example.py201COMMENT
LOWexamples/99-advanced/customize_trame_toolbar.py101# controlled by the play button we created. Note that when creating theCOMMENT
LOWexamples/99-advanced/customize_trame_toolbar.py121# a timer so that an animation can be set to play. To do that with ``trame`` we needCOMMENT
LOWexamples/99-advanced/sphere_eversion.py141 # fmt: onCOMMENT
LOWexamples/99-advanced/openfoam_cooling.py21COMMENT
LOWexamples/99-advanced/mesh_validation.py41plot_cell(quad, 'xy')COMMENT
LOWexamples/99-advanced/mesh_validation.py81invalid_polyhedron = pv.UnstructuredGrid(cells, [pv.CellType.POLYHEDRON], points)COMMENT
LOWexamples/99-advanced/mesh_validation.py141# %%COMMENT
LOWexamples/99-advanced/mesh_validation.py161# Meshes with unused pointsCOMMENT
LOWexamples/99-advanced/anatomical_groups.py21# Load DatasetCOMMENT
LOWexamples/99-advanced/anatomical_groups.py41# color the contours.COMMENT
LOWexamples/99-advanced/anatomical_groups.py81# %%COMMENT
LOWexamples/99-advanced/atomic_orbitals.py1"""COMMENT
LOWexamples/99-advanced/atomic_orbitals.py21# .. code-block:: bashCOMMENT
LOWexamples/99-advanced/atomic_orbitals.py41# e^{-r / na_0}COMMENT
LOWexamples/99-advanced/atomic_orbitals.py61# Plot the OrbitalCOMMENT
LOWexamples/99-advanced/atomic_orbitals.py181COMMENT
LOWexamples/99-advanced/fea_hertzian_contact_pressure.py61# %%COMMENT
LOWexamples/04-lights/light_types.py41COMMENT
LOWexamples/04-lights/mesh_lighting.py41# For further examples about fine-tuning mesh properties that affectCOMMENT
LOWexamples/02-plot/themes.py41COMMENT
LOWexamples/02-plot/themes.py81cpos = pl.show()COMMENT
LOWexamples/02-plot/colormap.py21# string name of the colormap to the plotting routine via the ``cmap``COMMENT
LOWexamples/02-plot/colormap.py61# Make the colormap from the listed colorsCOMMENT
LOWexamples/02-plot/colormap.py81# can do this by creating a scalar array and passing that to theCOMMENT
LOWexamples/02-plot/colormap.py141 lighting=False,COMMENT
LOWexamples/02-plot/volume_rendering.py201# .. _volume_with_mask_example:COMMENT
90 more matches not shown…
Deep Nesting155 hits · 132 pts
SeverityFileLineSnippetContext
LOWtests/generate_test_image_report.py42CODE
LOWtests/generate_test_image_report.py119CODE
LOWtests/generate_test_image_report.py516CODE
LOWtests/test_meshio.py222CODE
LOWtests/conftest.py569CODE
LOWtests/test_import_conventions.py90CODE
LOWtests/check_doctest_names.py55CODE
LOWtests/check_doctest_names.py110CODE
LOWtests/test_attributes.py190CODE
LOWtests/test_attributes.py427CODE
LOWtests/test_attributes.py428CODE
LOWtests/core/test_composite.py1337CODE
LOWtests/core/test_validation.py467CODE
LOWtests/core/test_validation.py579CODE
LOWtests/core/test_validation.py794CODE
LOWtests/core/test_utilities.py572CODE
LOWtests/core/test_geometric_sources.py164CODE
LOWtests/core/test_geometric_sources.py491CODE
LOWtests/core/test_dataset_filters.py258CODE
LOWtests/core/test_dataset_filters.py4121CODE
LOWtests/core/test_dataobject_filters.py49CODE
LOWtests/plotting/test_camera.py274CODE
LOWtests/plotting/test_plotting.py6677CODE
LOWtests/plotting/test_lights.py69CODE
LOWtests/plotting/test_picking.py578CODE
LOWtests/examples/test_cell_examples.py71CODE
LOWtests/doc/test_api_coverage.py125CODE
LOWpyvista/core/grid.py261CODE
LOWpyvista/core/pointset.py1972CODE
LOWpyvista/core/pointset.py2750CODE
LOWpyvista/core/pointset.py3163CODE
LOWpyvista/core/pointset.py3766CODE
LOWpyvista/core/pointset.py3806CODE
LOWpyvista/core/pointset.py3842CODE
LOWpyvista/core/datasetattributes.py165CODE
LOWpyvista/core/datasetattributes.py482CODE
LOWpyvista/core/datasetattributes.py707CODE
LOWpyvista/core/dataobject.py173CODE
LOWpyvista/core/dataobject.py1007CODE
LOWpyvista/core/partitioned.py60CODE
LOWpyvista/core/dataset.py157CODE
LOWpyvista/core/dataset.py3562CODE
LOWpyvista/core/composite.py161CODE
LOWpyvista/core/composite.py644CODE
LOWpyvista/core/composite.py748CODE
LOWpyvista/core/composite.py1905CODE
LOWpyvista/core/composite.py2357CODE
LOWpyvista/core/composite.py2705CODE
LOWpyvista/core/composite.py2755CODE
LOWpyvista/core/composite.py2769CODE
LOWpyvista/core/composite.py2788CODE
LOWpyvista/core/objects.py44CODE
LOWpyvista/core/filters/image_data.py5776CODE
LOWpyvista/core/filters/image_data.py530CODE
LOWpyvista/core/filters/image_data.py3441CODE
LOWpyvista/core/filters/image_data.py3753CODE
LOWpyvista/core/filters/image_data.py4206CODE
LOWpyvista/core/filters/image_data.py5218CODE
LOWpyvista/core/filters/rectilinear_grid.py21CODE
LOWpyvista/core/filters/data_set.py185CODE
95 more matches not shown…
AI Structural Patterns119 hits · 96 pts
SeverityFileLineSnippetContext
LOWtests/core/test_composite.py1253CODE
LOWpyvista/_plot.py31CODE
LOWpyvista/core/grid.py733CODE
LOWpyvista/core/pointset.py791CODE
LOWpyvista/core/composite.py391CODE
LOWpyvista/core/composite.py407CODE
LOWpyvista/core/filters/image_data.py530CODE
LOWpyvista/core/filters/image_data.py2334CODE
LOWpyvista/core/filters/image_data.py3753CODE
LOWpyvista/core/filters/image_data.py4206CODE
LOWpyvista/core/filters/image_data.py4895CODE
LOWpyvista/core/filters/data_set.py766CODE
LOWpyvista/core/filters/data_set.py1482CODE
LOWpyvista/core/filters/data_set.py1837CODE
LOWpyvista/core/filters/data_set.py2119CODE
LOWpyvista/core/filters/data_set.py3240CODE
LOWpyvista/core/filters/data_set.py3392CODE
LOWpyvista/core/filters/data_set.py3514CODE
LOWpyvista/core/filters/data_set.py3726CODE
LOWpyvista/core/filters/data_set.py4016CODE
LOWpyvista/core/filters/data_set.py4375CODE
LOWpyvista/core/filters/data_set.py4504CODE
LOWpyvista/core/filters/data_set.py5016CODE
LOWpyvista/core/filters/data_set.py6108CODE
LOWpyvista/core/filters/data_set.py7310CODE
LOWpyvista/core/filters/data_set.py7752CODE
LOWpyvista/core/filters/data_set.py8224CODE
LOWpyvista/core/filters/composite.py379CODE
LOWpyvista/core/filters/poly_data.py859CODE
LOWpyvista/core/filters/poly_data.py952CODE
LOWpyvista/core/filters/poly_data.py1125CODE
LOWpyvista/core/filters/poly_data.py1370CODE
LOWpyvista/core/filters/poly_data.py1689CODE
LOWpyvista/core/filters/poly_data.py1895CODE
LOWpyvista/core/filters/poly_data.py2251CODE
LOWpyvista/core/filters/poly_data.py3468CODE
LOWpyvista/core/filters/poly_data.py3678CODE
LOWpyvista/core/filters/poly_data.py4211CODE
LOWpyvista/core/filters/data_object.py3163CODE
LOWpyvista/core/filters/data_object.py3856CODE
LOWpyvista/core/filters/data_object.py4909CODE
LOWpyvista/core/utilities/geometric_sources.py1566CODE
LOWpyvista/core/utilities/geometric_sources.py2741CODE
LOWpyvista/core/utilities/geometric_sources.py3088CODE
LOWpyvista/core/utilities/geometric_sources.py4006CODE
LOWpyvista/core/utilities/geometric_objects.py306CODE
LOWpyvista/core/utilities/geometric_objects.py381CODE
LOWpyvista/core/utilities/geometric_objects.py537CODE
LOWpyvista/core/utilities/geometric_objects.py697CODE
LOWpyvista/core/utilities/geometric_objects.py1698CODE
LOWpyvista/core/utilities/geometric_objects.py2271CODE
LOWpyvista/core/utilities/parametric_objects.py993CODE
LOWpyvista/core/utilities/parametric_objects.py1365CODE
LOWpyvista/core/utilities/features.py734CODE
LOWpyvista/core/_validation/validate.py60CODE
LOWpyvista/plotting/_property.py168CODE
LOWpyvista/plotting/plot_compare.py442CODE
LOWpyvista/plotting/scalar_bars.py238CODE
LOWpyvista/plotting/cube_axes_actor.py152CODE
LOWpyvista/plotting/charts.py1633CODE
59 more matches not shown…
Cross-File Repetition17 hits · 85 pts
SeverityFileLineSnippetContext
HIGHpyvista/core/grid.py0return the representation methods (internal helper).STRING
HIGHpyvista/core/pointset.py0return the representation methods (internal helper).STRING
HIGHpyvista/core/cell.py0return the representation methods (internal helper).STRING
HIGHpyvista/core/dataobject.py0return the representation methods (internal helper).STRING
HIGHpyvista/core/partitioned.py0return the representation methods (internal helper).STRING
HIGHpyvista/core/dataset.py0return the representation methods (internal helper).STRING
HIGHpyvista/core/composite.py0return the representation methods (internal helper).STRING
HIGHpyvista/plotting/texture.py0return the representation methods (internal helper).STRING
HIGHpyvista/core/dataobject.py0return a pretty representation for jupyter notebooks. it includes header details and information about all arrays.STRING
HIGHpyvista/core/dataset.py0return a pretty representation for jupyter notebooks. it includes header details and information about all arrays.STRING
HIGHpyvista/core/objects.py0return a pretty representation for jupyter notebooks. it includes header details and information about all arrays.STRING
HIGHpyvista/core/utilities/reader_registry.py0snapshot the current registry state for later restoration.STRING
HIGHpyvista/core/utilities/writer_registry.py0snapshot the current registry state for later restoration.STRING
HIGHpyvista/core/utilities/accessor_registry.py0snapshot the current registry state for later restoration.STRING
HIGHpyvista/plotting/theme_registry.py0snapshot the current registry state for later restoration.STRING
HIGHpyvista/plotting/component_registry.py0snapshot the current registry state for later restoration.STRING
HIGHpyvista/plotting/interactor_style_registry.py0snapshot the current registry state for later restoration.STRING
AI Response Leakage9 hits · 68 pts
SeverityFileLineSnippetContext
HIGHexamples/00-load/create_unstructured_surface.py115# and the points belonging to the cell. In this example, there are 8COMMENT
HIGHexamples/00-load/create_point_cloud.py19# cloud. In this example, we'll work a bit backwards using a point cloud thatCOMMENT
HIGHexamples/99-advanced/extending_pyvista.py96# In this example, all objects that would have been created asCOMMENT
HIGHexamples/02-plot/themes.py144# In this example, we create a custom theme from the base "default"COMMENT
HIGHexamples/02-plot/bounds.py30# In this example, we override the values shown along the X and Y axes with ourCOMMENT
HIGHexamples/01-filter/surface_smoothing.py76# <pyvista.PolyDataFilters.smooth>`. In this example, you can see how TaubinCOMMENT
HIGHexamples/01-filter/streamlines.py87# filter, for example if an inlet surface is available. In this example, theCOMMENT
HIGHexamples/01-filter/interpolate.py48# In this example, we will in interpolate sparse points in 3D space into aCOMMENT
HIGHexamples/03-widgets/checkbox_widget.py42# In this example, we will add many meshes to a scene with unique colors andCOMMENT
Cross-Language Confusion11 hits · 62 pts
SeverityFileLineSnippetContext
HIGHtests/core/test_geometric_sources.py768 planes_source.push(*distance)CODE
HIGHtests/core/test_geometric_sources.py418 algo.push(distance)CODE
HIGHtests/core/test_geometric_sources.py422 algo.push(distance)CODE
HIGHtests/core/test_datasetattributes.py1041 assert table.schema.equals(direct.schema)CODE
HIGHtests/core/test_datasetattributes.py1042 assert table.equals(direct)CODE
HIGHtests/core/test_objects.py208 assert df.equals(table.to_pandas())CODE
HIGHtests/core/test_objects.py255 assert consumed.equals(table.to_arrow())CODE
HIGHtests/plotting/test_plotting.py6546 source.push(distance)CODE
HIGHpyvista/core/utilities/geometric_sources.py3670 >>> planes_source.push(0.0, -10.0, 0)STRING
HIGHpyvista/core/utilities/geometric_sources.py3830 source.push(dist)CODE
HIGHpyvista/plotting/actor.py56 'if (p.x > 1.0 || p.y > 1.0) {\n'CODE
Modern Structural Boilerplate63 hits · 58 pts
SeverityFileLineSnippetContext
LOWpyvista/core/grid.py325 def _update_dimensions(self: Self) -> None:CODE
LOWpyvista/core/datasetattributes.py507 def set_array(self: Self, data: ArrayLike[float], name: str, deep_copy: bool = False) -> None: # noqa: FBT001, FBT0CODE
LOWpyvista/core/composite.py1719 def set_block_name(self: MultiBlock, index: int | str, name: str | None) -> None:CODE
LOWpyvista/core/filters/__init__.py40def _update_alg(alg: _vtk.vtkAlgorithm, *, progress_bar: bool = False, message='') -> None:CODE
LOWpyvista/core/filters/data_set.py5578 def _update_id_mask(logic_) -> None:CODE
LOWpyvista/core/utilities/arrays.py686def _set_string_scalar_object_name(vtkarr: _vtk.vtkStringArray) -> None:CODE
LOWpyvista/core/utilities/arrays.py1013 def _update_string(self: _SerializedDictArray) -> None:CODE
LOWpyvista/core/utilities/misc.py548def set_new_attribute(obj: object, name: str, value: Any) -> None:CODE
LOWpyvista/core/utilities/reader.py398 def _update_information(self) -> None:CODE
LOWpyvista/core/utilities/reader.py401 def _set_defaults(self) -> None:CODE
LOWpyvista/core/utilities/reader.py404 def _set_defaults_post(self) -> None:CODE
LOWpyvista/core/utilities/reader.py345 def _set_directory(self, directory) -> None:CODE
LOWpyvista/core/utilities/reader.py352 def _set_filename(self, filename) -> None:CODE
LOWpyvista/core/utilities/reader.py863 def _set_filename(self, filename) -> None:CODE
LOWpyvista/core/utilities/reader.py896 def set_active_time_point(self, time_point) -> None: # noqa: D102CODE
LOWpyvista/core/utilities/reader.py945 def _set_defaults_post(self) -> None:CODE
LOWpyvista/core/utilities/reader.py970 def set_active_time_point(self, time_point) -> None: # noqa: D102CODE
LOWpyvista/core/utilities/reader.py1382 def _set_defaults_post(self) -> None:CODE
LOWpyvista/core/utilities/reader.py1534 def _set_defaults(self) -> None:CODE
LOWpyvista/core/utilities/reader.py1687 def _set_defaults_post(self) -> None:CODE
LOWpyvista/core/utilities/reader.py2110 def set_active_time_value(self, time_value) -> None: # noqa: D102CODE
LOWpyvista/core/utilities/reader.py2113 def set_active_time_point(self, time_point) -> None: # noqa: D102CODE
LOWpyvista/core/utilities/reader.py2140 def _set_defaults_post(self) -> None:CODE
LOWpyvista/core/utilities/reader.py2539 def _set_defaults_post(self) -> None:CODE
LOWpyvista/core/utilities/reader.py3004 def set_active_time_point(self, time_point) -> None: # noqa: D102CODE
LOWpyvista/core/utilities/reader.py3007 def _set_defaults_post(self) -> None:CODE
LOWpyvista/core/utilities/reader.py3991 def set_active_time_point(self, time_point: int) -> None:CODE
LOWpyvista/core/utilities/reader.py3999 def set_active_time_value(self, time_value: float) -> None:CODE
LOWpyvista/core/utilities/reader.py4366 def set_active_time_value(self, time_value) -> None: # noqa: D102CODE
LOWpyvista/core/utilities/reader.py4369 def set_active_time_point(self, time_point) -> None: # noqa: D102CODE
LOWpyvista/core/utilities/fileio.py162def set_pickle_format(format: Literal['vtk', 'xml', 'legacy']) -> None: # noqa: A002CODE
LOWpyvista/core/utilities/fileio.py537def _set_reader_attributes(reader: BaseReader[Any], **kwargs) -> None:CODE
LOWpyvista/core/_validation/validate.py1180def _set_default_kwarg_mandatory(kwargs: dict[str, Any], key: str, default: Any) -> None:CODE
LOWpyvista/ext/viewer_directive.py18logger = logging.getLogger(__name__)CODE
LOWpyvista/trame/__init__.py28__all__ = [CODE
LOWpyvista/trame/views.py20__all__ = [CODE
LOWpyvista/trame/jupyter.py23__all__ = [CODE
LOWpyvista/trame/ui/base_viewer.py16__all__ = ['BaseViewer']CODE
LOWpyvista/trame/ui/vuetify3.py21__all__ = [CODE
LOWpyvista/trame/ui/__init__.py17__all__ = [CODE
LOWpyvista/trame/ui/vuetify2.py21__all__ = [CODE
LOWpyvista/plotting/themes.py71def _set_plot_theme_from_env() -> None:CODE
LOWpyvista/plotting/charts.py446 def _update_textureprops(self) -> None:CODE
LOWpyvista/plotting/charts.py1107 def _update_ticks(self) -> None:CODE
LOWpyvista/plotting/charts.py4925 def _setup_scene(self) -> None:CODE
LOWpyvista/plotting/renderer.py430 def set_color_cycler(self, color_cycler) -> None:CODE
LOWpyvista/plotting/renderer.py657 def _update_bounds(bounds) -> None:CODE
LOWpyvista/plotting/renderer.py658 def update_axis(ax) -> None:CODE
LOWpyvista/plotting/renderer.py2794 def set_focus(self, point) -> None:CODE
LOWpyvista/plotting/renderer.py2821 def set_position(self, point, reset=False, render=True) -> None: # noqa: FBT002CODE
LOWpyvista/plotting/renderer.py2858 def set_viewup(self, vector, reset=True, render=True) -> None: # noqa: FBT002CODE
LOWpyvista/plotting/renderer.py3166 def update_bounds_axes(self) -> None:CODE
LOWpyvista/plotting/mapper.py645 def _set_scalar_range(self, clim, *, use_default: bool) -> None:CODE
LOWpyvista/plotting/plotter.py1496 def set_focus(self, *args, render: bool = True, **kwargs) -> None: # numpydoc ignore=PR01,RT01CODE
LOWpyvista/plotting/plotter.py1565 def update_bounds_axes(self, *args, **kwargs) -> None: # numpydoc ignore=PR01,RT01CODE
LOWpyvista/plotting/plotter.py1672 def set_scale(self, *args, **kwargs) -> None: # numpydoc ignore=PR01,RT01CODE
LOWpyvista/plotting/plotter.py1798 def set_environment_texture(self, *args, **kwargs) -> None: # numpydoc ignore=PR01,RT01CODE
LOWpyvista/plotting/plotter.py5321 def update_scalars(self, scalars, mesh=None, render: bool = True) -> None: # noqa: ANN001, FBT001, FBT002CODE
LOWpyvista/plotting/plotter.py6874 def set_background(self, *args, **kwargs) -> None: # numpydoc ignore=PR01,RT01CODE
LOWpyvista/plotting/plotter.py6879 def set_color_cycler(self, *args, **kwargs) -> None: # numpydoc ignore=PR01,RT01CODE
3 more matches not shown…
Redundant / Tautological Comments34 hits · 51 pts
SeverityFileLineSnippetContext
LOWtests/core/test_frd.py266 # Check if derived stress fields were computed correctlyCOMMENT
LOWtests/core/test_frd.py270 # Check if scalar values (n_components == 1) were correctly addedCOMMENT
LOWtests/core/test_utilities.py2722 # Set this to an invalid state with vtk methodsCOMMENT
LOWtests/core/test_dataset_filters.py3861 # Check if the number of points in the aligned mesh is the same as the original meshCOMMENT
LOWtests/plotting/test_widgets.py36 yaw = 0 # Set yaw to 0 and compute the othersCODE
LOWpyvista/_deprecate_positional_args.py130 # Check if the decorator is even needed at allCOMMENT
LOWpyvista/core/_vtk_utilities.py131 # Check if we have a vtk-defined attribute using cached lookupCOMMENT
LOWpyvista/core/_vtk_utilities.py224 # Check if forwarding snake_case attributesCOMMENT
LOWpyvista/core/composite.py959 # Check if the keys already exist before updatingCOMMENT
LOWpyvista/core/composite.py980 # Check if the keys already exist before updatingCOMMENT
LOWpyvista/core/filters/data_set.py1958 # Check if a table of geometries was passedCOMMENT
LOWpyvista/core/filters/data_set.py6191 # Check if scalars array givenCOMMENT
LOWpyvista/core/filters/poly_data.py1452 # Check if scalars array givenCOMMENT
LOWpyvista/core/filters/data_object.py320 # Check if a group was passed to make the error message friendlierCOMMENT
LOWpyvista/core/utilities/misc.py517 # Check if setting a new attribute is allowedCOMMENT
LOWpyvista/core/utilities/misc.py522 # Check if this class froze itself. Any frozen state already set by parent classes,COMMENT
LOWpyvista/core/utilities/helpers.py303 # Check if dataset is a numpy array. We do this first sinceCOMMENT
LOWpyvista/core/utilities/helpers.py330 # Check if a dataset is a VTK typeCOMMENT
LOWpyvista/core/utilities/fileio.py488 # Read file using meshio.read if file_format is presentCOMMENT
LOWpyvista/core/_validation/check.py921 # Check if is instanceCOMMENT
LOWpyvista/core/_validation/check.py924 # Set flag to raise error if not instanceCOMMENT
LOWpyvista/core/_validation/check.py933 # Set flag to raise error if not typeCOMMENT
LOWpyvista/plotting/render_window_interactor.py589 # Set scene to interact with or reset it to stop interaction (otherwise crash)COMMENT
LOWpyvista/plotting/renderer.py670 if ( # Check if the actor should be ignoredCODE
LOWpyvista/plotting/renderers.py305 # Check if row and col weights correspond to given shape,COMMENT
LOWpyvista/plotting/plotter.py274 # Check if VTK has EGL supportCOMMENT
LOWpyvista/plotting/plotter.py4228 # Set color to white by default when using a textureCOMMENT
LOWpyvista/plotting/axes_assembly.py1206 # Add actor to listCOMMENT
LOWpyvista/examples/examples.py796 >>> pl.camera_position = 'yx' # Set camera to provide a dorsal viewSTRING
LOWpyvista/_cli/report.py14# Assign annotations to be able to use the Report class usingCOMMENT
LOWexamples/01-filter/project_plane.py25# Display the resultsCOMMENT
LOWexamples/01-filter/streamlines.py42# Display the results. Please note that because this dataset's velocity fieldCOMMENT
LOWdoc/source/make_tables.py290 # Check if the format was already added from the readerCOMMENT
LOWdoc/source/make_tables.py3642 # Check if all carousel RST files already exist - if so, skip theCOMMENT
AI Slop Vocabulary21 hits · 45 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml216# The length of docstring lines should be kept to 75 characters to facilitateCOMMENT
MEDIUMpyproject.toml371# The length of docstring lines should be kept to 75 characters to facilitateCOMMENT
LOWpyvista/core/datasetattributes.py767 # are identical, just return the underlying array nameCOMMENT
LOWpyvista/core/dataset.py515 # simply set the underlying dataCOMMENT
MEDIUMpyvista/core/dataset.py3389 # Align points first to make rank computation more robustCOMMENT
MEDIUMpyvista/core/filters/image_data.py1861 # correctly. Cast to float to be robust. See https://gitlab.kitware.com/vtk/vtk/-/work_items/20019COMMENT
LOWpyvista/plotting/camera.py909 # simply call tight again to reset the parallel scale due to theCOMMENT
LOWpyvista/examples/downloads.py265 except ValueError: # otherwise simply add the file to the registryCODE
LOWpyvista/examples/_dataset_loader.py456 # so make download() simply return the local filepathCOMMENT
LOWexamples/00-load/linear_cells.py112# simply create a cell from the ``pyvista.core.cells`` module and inspect its attributes.COMMENT
LOWexamples/00-load/create_tri_surface.py41# simply pass the numpy points to the PolyData constructorCOMMENT
LOWexamples/00-load/read_file.py13# file formats, simply use :func:`pyvista.read` to load your spatiallyCOMMENT
MEDIUMexamples/02-plot/backface_prop.py42# front and backfaces differently helps viewers comprehend the intricateCOMMENT
MEDIUMexamples/02-plot/texture.py31# harness the :func:`pyvista.DataSetFilters.texture_map_to_plane` filter toCOMMENT
LOWexamples/02-plot/texture.py73# done using the :func:`pyvista.read_texture` function - simply pass an imageCOMMENT
LOWexamples/02-plot/texture.py154# 255 [fully visible]. To enable this feature just pass the opacity array as theCOMMENT
LOWexamples/02-plot/vertices.py41# In order to display the vertices atop a mesh's surface geometry, simply passCOMMENT
MEDIUMexamples/01-filter/extract_edges.py57# We can leverage the :any:`pyvista.PolyData.n_open_edges` property andCOMMENT
LOWexamples/01-filter/using_filters.py99# And to view this filtered data, simply call the ``plot`` methodCOMMENT
MEDIUMexamples/03-widgets/plane_widget.py57# Or you could leverage the plane widget for some custom task like glyphing aCOMMENT
MEDIUMexamples/03-widgets/slider_bar_widget.py48# Or you could leverage a custom callback function that takes a single valueCOMMENT
Excessive Try-Catch Wrapping35 hits · 36 pts
SeverityFileLineSnippetContext
LOWtests/check_doctest_names.py164 except Exception as exc: # noqa: BLE001CODE
MEDIUMtests/plotting/test_plotter.py1020def render_on_thread():CODE
LOWtests/plotting/test_plotter.py1028 except Exception as e: # noqa: BLE001CODE
LOWpyvista/report.py303 except Exception: # noqa: BLE001CODE
LOWpyvista/report.py315 except Exception: # noqa: BLE001CODE
LOWpyvista/core/utilities/misc.py371 except Exception: # noqa: BLE001 # pragma: no coverCODE
LOWpyvista/core/utilities/reader_registry.py205 except Exception as e:CODE
LOWpyvista/core/utilities/reader_registry.py402 except Exception as err: # noqa: BLE001CODE
LOWpyvista/core/utilities/writer_registry.py337 except Exception as err: # noqa: BLE001CODE
LOWpyvista/core/utilities/docs.py63 except Exception: # noqa: BLE001CODE
LOWpyvista/core/utilities/docs.py75 except Exception: # noqa: BLE001 # pragma: no coverCODE
LOWpyvista/core/utilities/docs.py81 except Exception: # noqa: BLE001CODE
LOWpyvista/core/utilities/docs.py90 except Exception: # noqa: BLE001 # pragma: no coverCODE
LOWpyvista/core/utilities/accessor_registry.py614 except Exception as exc: # noqa: BLE001CODE
LOWpyvista/core/utilities/observers.py273 except Exception: # noqa: BLE001 # pragma: no coverCODE
LOWpyvista/core/utilities/observers.py284 except Exception as e: # noqa: BLE001CODE
LOWpyvista/ext/viewer_directive.py98 except Exception as e: # noqa: BLE001CODE
LOWpyvista/ext/plot_directive.py248 except Exception as e: # noqa: BLE001 # pragma: no coverCODE
LOWpyvista/plotting/theme_registry.py382 except Exception as exc: # noqa: BLE001CODE
LOWpyvista/plotting/component_registry.py633 except Exception as exc: # noqa: BLE001CODE
LOWpyvista/plotting/interactor_style_registry.py231 except Exception as exc: # noqa: BLE001CODE
LOWpyvista/plotting/plotter.py1006 except Exception as e: # noqa: BLE001 # pragma: no coverCODE
LOWpyvista/plotting/picking.py1081 except Exception as e: # noqa: BLE001 # pragma: no coverCODE
LOWpyvista/plotting/utilities/algorithms.py238 except Exception: # pragma: no coverCODE
LOWpyvista/plotting/utilities/algorithms.py344 except Exception: # pragma: no coverCODE
LOWpyvista/plotting/utilities/algorithms.py429 except Exception: # pragma: no coverCODE
LOWpyvista/plotting/utilities/algorithms.py589 except Exception: # pragma: no coverCODE
LOWpyvista/plotting/utilities/algorithms.py637 except Exception: # pragma: no coverCODE
LOWpyvista/plotting/utilities/algorithms.py713 except Exception: # pragma: no coverCODE
LOWpyvista/plotting/utilities/algorithms.py753 except Exception: # pragma: no coverCODE
LOWpyvista/_cli/convert.py213 except Exception as e: # noqa: BLE001CODE
LOWpyvista/_cli/validate.py275 except Exception as e: # noqa: BLE001CODE
LOWpyvista/_cli/utils.py257 except Exception: # noqa: BLE001CODE
LOWpyvista/_cli/utils.py393 except Exception as ex: # noqa: BLE001STRING
LOWpyvista/jupyter/__init__.py186 except Exception as err: # noqa: BLE001CODE
Slop Phrases10 hits · 23 pts
SeverityFileLineSnippetContext
LOWtests/plotting/test_plotting_utilities.py82 # make sure to plot an object that has boundariesCOMMENT
MEDIUMexamples/00-load/create_polydata_strips.py93# <pyvista.PolyDataFilters.strip>`. Here, for demonstration purposes we convert theCOMMENT
MEDIUMexamples/99-advanced/add_example.py87# ``__repr__`` method. Otherwise, you can use ``print()`` to output text.STRING
MEDIUMexamples/99-advanced/add_example.py179# <https://github.com/pyvista/data>`_, and you can add the file bySTRING
MEDIUMexamples/99-advanced/planets.py77# grounded in reality and are for demonstration purposes only.COMMENT
MEDIUMexamples/02-plot/themes.py74# Note that you can also use color gradients for the background of the plottingCOMMENT
MEDIUMexamples/02-plot/ghost_cells.py23# Decide which cells are ghosted with a criteria (feel free to adjust thisCOMMENT
MEDIUMexamples/02-plot/lookup_table.py87# If you want to create a completely unique color map, you can use attributesCOMMENT
MEDIUMexamples/01-filter/image_fft.py91# for demonstration purposes.COMMENT
LOWdoc/intersphinx/update.sh4# make sure to follow potential redirectsCOMMENT
Verbosity Indicators2 hits · 4 pts
SeverityFileLineSnippetContext
LOWexamples/00-load/read_file.py16# The following code block uses a built-in example file and displays anCOMMENT
LOWexamples/00-load/read_file.py24# The following code block uses a built-in exampleCOMMENT
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWpyvista/plotting/axes_assembly.py622 # TODO: implement set_text_prop() and use that insteadCOMMENT
LOWpyvista/plotting/axes_assembly.py1941 # TODO: implement set_text_prop() and use that insteadCOMMENT