AI Slop Code Risk Monitor

pyvista/pyvista

SlopCodeMonitor badge for pyvista/pyvista Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

3D visualization and mesh analysis for science and engineering

20.6 Elevated pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for pyvista/pyvista, a Python project with 3,870 GitHub stars. SynthScan examined 315,090 lines of code across 961 source files, recording 6523 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 20.6 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

20.6
Adjusted Signal
20.6
Raw Pattern Score
100%
Time Factor
2026-11-01
Last Push
3.9K
Stars
Python
Language
315.1K
Lines of Code
961
Files
6.5K
Pattern Hits
2026-10-31
Scan Date
0.12
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 51.0/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 4863 finding(s).

Hallucinated Dependency & Supply Chain Risk 17.0/100 · LOW

Are imports declared and package/API names verified? 1351 finding(s).

Agent Over-Engineering Ratio 50.7/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 4649 finding(s).

PR Review Velocity Impact 69.8/100 · HIGH

Which changes need focused human review? 6523 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 1HIGH 114MEDIUM 225LOW 6183

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 6523 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers4144 hits · 3486 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
LOW⚡tests/conftest.py75 def _save_component_registry_state():CODE
LOW⚡tests/conftest.py78 def _restore_component_registry_state(state): # noqa: ARG001CODE
LOW⚡tests/conftest.py81 def _save_style_registry_state():CODE
LOW⚡tests/conftest.py84 def _restore_style_registry_state(state): # noqa: ARG001CODE
LOW⚡tests/conftest.py87 def _save_theme_registry_state():CODE
LOW⚡tests/conftest.py90 def _restore_theme_registry_state(state): # noqa: ARG001CODE
LOWtests/conftest.py397def multiblock_all_no_pointset(datasets_no_pointset):CODE
LOWtests/conftest.py409def multiblock_all_no_pointset_with_nested_and_none(CODE
LOWtests/conftest.py418def multiblock_all_with_nested_and_none(datasets, multiblock_all):CODE
LOWtests/conftest.py448def pytest_runtest_makereport(item, call): # noqa: ARG001CODE
LOWtests/conftest.py700def pytest_collection_modifyitems(config, items): # noqa: ARG001CODE
LOWtests/conftest.py739def _check_args_kwargs_marker(item_mark: pytest.Mark, sig: inspect.Signature):CODE
LOWtests/conftest.py1048def pytest_pyvista_max_vtksz_file_size_hook(test_case, request): # noqa: ARG001CODE
LOWtests/test_import_conventions.py75def _documented_member_modules() -> set[str]:CODE
LOWtests/test_import_conventions.py109def test_convention_lists_are_disjoint():CODE
LOW⚡tests/test_import_conventions.py120def test_documentation_matches_the_enforced_member_list():CODE
LOW⚡tests/test_import_conventions.py130def test_convention_lists_are_not_empty():CODE
LOW⚡tests/test_import_conventions.py137def test_waived_modules_are_not_also_governed(waived):CODE
LOW⚡tests/test_import_conventions.py145def test_every_imported_stdlib_module_is_governed():CODE
LOW⚡tests/test_check_doctest_names.py63def test_names_used_before_they_are_bound(source, expected):CODE
LOW⚡tests/test_check_doctest_names.py68def test_names_bound_by_an_earlier_line_are_clean():CODE
LOW⚡tests/test_check_doctest_names.py74def test_loop_and_context_targets_bind():CODE
LOWtests/test_check_doctest_names.py89def test_syntax_error_propagates():CODE
LOWtests/test_conftest.py97def test_dotted_cov_target_rejected(sources, raises):CODE
LOWtests/test_conftest.py108def test_warnings_turned_to_errors(CODE
LOWtests/test_conftest.py299 def test_between_variadic_max_equals(): ...CODE
LOWtests/test_conftest.py302 def test_between_variadic_min_equals(): ...CODE
LOWtests/test_conftest.py330 def case_raises_both_args_min_kwargs(self):STRING
LOW⚡tests/test_conftest.py433def test_needs_vtk_version_raises(tests: str, outcome: dict, pytester: pytest.Pytester):STRING
LOW⚡tests/test_conftest.py441def test_needs_vtk_version_reason(tests: str, match: list[str], pytester: pytest.Pytester):STRING
LOW⚡tests/test_conftest.py448def test_needs_vtk_version_raises_vtk_version_error(STRING
LOWtests/test_conftest.py552 def test_skipped_message_args():CODE
LOWtests/test_conftest.py622 def test_skipped_platform_machine():CODE
LOWtests/test_conftest.py669def test_notebook_mode_is_pinned_off():STRING
LOWtests/test_conftest.py682def test_flaky_test_retries_until_it_passes(capsys):STRING
LOWtests/test_conftest.py697def test_flaky_test_reraises_after_the_last_attempt(capsys):STRING
LOWtests/test_conftest.py717def test_flaky_test_does_not_retry_an_unlisted_exception():STRING
LOWtests/test_conftest.py743def test_vtksz_file_size_exceptions(request, test_name, expected):STRING
LOWtests/test_conftest.py752def test_vtk_output_fails_the_test(CODE
LOWtests/test_conftest.py794def test_vtk_output_markers_need_a_reason(pytester: pytest.Pytester):STRING
LOWtests/test_hooks.py109def test_private_class_docstrings_reports(CODE
LOWtests/test_hooks.py152def test_private_class_docstrings_nested_and_clean(CODE
LOWtests/test_hooks.py178def test_private_class_docstrings_nested_class_needs_docstring(CODE
LOWtests/test_hooks.py196def test_private_class_docstrings_reads_non_ascii(CODE
LOWtests/test_hooks.py215def _run_sentence_spacing_hook(CODE
LOWtests/test_hooks.py382def test_sentence_spacing_flags(CODE
LOWtests/test_hooks.py485def test_sentence_spacing_passes(CODE
LOWtests/test_hooks.py497def test_sentence_spacing_absolute_gallery_path(CODE
LOW⚡tests/test_cli.py216 def case_additional_multiple_kw(self):CODE
LOW⚡tests/test_cli.py219 def case_additional_multiple_args(self):CODE
LOW⚡tests/test_cli.py225 def case_additional_textwidth(self):CODE
LOWtests/test_cli.py174def test_command_paths_required(capsys: pytest.CaptureFixture, command):CODE
LOWtests/test_cli.py307def tmp_ant_file_invalid_multiblock(tmp_ant_file):CODE
LOWtests/test_cli.py322def test_convert_dir_only_error(tmp_ant_file: Path, capsys: pytest.CaptureFixture):CODE
LOWtests/test_cli.py334def test_convert_file_not_found(capsys: pytest.CaptureFixture):CODE
LOWtests/test_cli.py368def test_convert_read_error_keeps_install_hint(CODE
LOWtests/test_cli.py390def test_convert_multiple_inputs(tmp_example_dir, tmp_ant_file: Path):CODE
LOWtests/test_cli.py399def test_convert_multiple_inputs_subdir(tmp_example_dir, tmp_ant_file: Path):CODE
4084 more matches not shown…
Unused Imports1338 hits · 1092 pts
SeverityFileLineSnippetContext
LOWtoxfile.py1CODE
LOWcheck_local_vtk_wheel.py7CODE
LOWtests/generate_test_image_report.py15CODE
LOWtests/test_meshio.py1CODE
LOWtests/conftest.py1CODE
LOWtests/conftest.py27CODE
LOWtests/test_import_conventions.py10CODE
LOWtests/test_check_doctest_names.py3CODE
LOWtests/test_conftest.py1CODE
LOWtests/check_doctest_names.py17CODE
LOWtests/test_hooks.py3CODE
LOWtests/gc_check.py27CODE
LOWtests/test_meta.py8CODE
LOWtests/test_cli.py1CODE
LOWtests/test_cli.py1149CODE
LOWtests/test_cli.py1152CODE
LOWtests/test_cli.py1153CODE
LOWtests/test_cli.py1154CODE
LOWtests/test_cli.py1155CODE
LOWtests/test_cli.py1156CODE
LOWtests/test_cli.py1157CODE
LOWtests/test_cli.py1257CODE
LOWtests/test_cli.py1258CODE
LOWtests/test_cli.py1260CODE
LOWtests/test_cli.py1264CODE
LOWtests/test_cli.py1265CODE
LOWtests/test_cli.py1266CODE
LOWtests/test_cli.py1267CODE
LOWtests/test_cli.py1268CODE
LOWtests/test_cli.py1269CODE
LOWtests/test_cli.py1270CODE
LOWtests/test_cli.py1271CODE
LOWtests/test_gc_check.py12CODE
LOWtests/test_init.py1CODE
LOWtests/vtk_backend_divergence.py11CODE
LOWtests/test_attributes.py1CODE
LOWtests/test_warn_external.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_gc.py13CODE
LOWtests/core/test_grid.py1CODE
LOWtests/core/test_vtk_backend.py3CODE
LOWtests/core/test_parametric_geometry.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.py18CODE
LOWtests/core/test_unstructured_grid_filters.py3CODE
LOWtests/core/test_utilities.py3CODE
LOWtests/core/test_pointset.py3CODE
LOWtests/core/test_cell_lengths.py1CODE
LOWtests/core/test_dataobject.py1CODE
LOWtests/core/test_geometric_sources.py1CODE
LOWtests/core/test_override_readers.py3CODE
LOWtests/core/test_dataset.py3CODE
LOWtests/core/test_dataset_filters.py1CODE
1278 more matches not shown…
Self-Referential Comments135 hits · 410 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_cli.py350 # Create a dummy .vtp file with empty contentsCOMMENT
MEDIUMtests/core/test_polydata.py1642 # Define a simple Gaussian surfaceCOMMENT
MEDIUMtests/core/test_polydata.py1737 # Create a poly lineCOMMENT
MEDIUMtests/core/test_dataset_filters.py1029 # Define the plane explicitlyCOMMENT
MEDIUMtests/core/test_dataset_filters.py1061 # Define the center explicitlyCOMMENT
MEDIUMtests/core/test_dataset_filters.py4749 # Create a simple meshCOMMENT
MEDIUM⚡tests/plotting/test_volume_property.py110 # Create a mock lookup tableCOMMENT
MEDIUM⚡tests/plotting/test_texture.py314 # Create the poly dataCOMMENT
MEDIUMtests/plotting/test_picking.py780 # Create a mesh with point dataCOMMENT
MEDIUMtests/plotting/test_render_window_interactor.py219 # Create a normal interactor from the offscreen plotter (not generic,COMMENT
MEDIUM⚡tests/plotting/test_theme_registry.py68 # Creating the subclass must not register it under any other nameCOMMENT
MEDIUM⚡tests/plotting/mappers/test_mapper.py401 # Create a new mesh with the same arrayCOMMENT
MEDIUMpyvista/core/cell.py1218# The following methods would be much nicer bound to CellArray,COMMENT
MEDIUMpyvista/core/dataset.py2728 >>> # Create a grid with 9 points and 4 cellsSTRING
MEDIUMpyvista/core/composite.py2266 # This method is here for consistency with the rest of the API andCOMMENT
MEDIUMpyvista/core/filters/image_data.py889 # Create a binary foreground/background mask arrayCOMMENT
MEDIUMpyvista/core/filters/image_data.py1546 >>> # Create an initial background pointSTRING
MEDIUMpyvista/core/filters/data_set.py6463 # Create a second mesh with points. This is required for the mergeCOMMENT
MEDIUMpyvista/core/filters/composite.py244 # Create a copy and replace all the blocksCOMMENT
MEDIUMpyvista/core/filters/data_object.py4381 # Create the three slicesCOMMENT
MEDIUMpyvista/core/utilities/geometric_objects.py292 # Create the gridCOMMENT
MEDIUMpyvista/plotting/mapper.py1407 # Create a custom RGBA array to supply our opacity toCOMMENT
MEDIUMpyvista/plotting/texture.py167 # Create a cubemapCOMMENT
MEDIUMexamples/00-load/create_text_3d.py14# 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.py27# Define a simple Gaussian surfaceCOMMENT
MEDIUMexamples/00-load/create_tri_surface.py66# Create the point cloud mesh to triangulate from the coordinatesCOMMENT
MEDIUMexamples/00-load/create_tri_surface.py87# Define a polygonal hole with a clockwise polygonCOMMENT
MEDIUMexamples/00-load/create_tri_surface.py90# 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.py23# Create the 3D NumPy array of spatially referenced data.COMMENT
MEDIUMexamples/00-load/create_uniform_grid.py29# Create the spatial referenceCOMMENT
MEDIUMexamples/00-load/create_uniform_grid.py52# Create the 3D NumPy array of spatially referenced dataCOMMENT
MEDIUMexamples/00-load/create_uniform_grid.py58# Create the spatial referenceCOMMENT
MEDIUMexamples/00-load/create_multiple_lines.py15# Create a Winding PolyLineCOMMENT
MEDIUMexamples/00-load/create_kochanek_spline.py21# Create a dataset to plotCOMMENT
MEDIUMexamples/00-load/wrap_trimesh.py52# Create a simple :class:`trimesh.Trimesh` and wrap it.COMMENT
MEDIUMexamples/00-load/create_draped_surface.py72# Define the Z spacing of your 2D sectionCOMMENT
MEDIUMexamples/00-load/create_polydata_strips.py21# Create an array of pointsCOMMENT
MEDIUMexamples/00-load/create_circular_arc.py20# Create an Arc From Two EndpointsCOMMENT
MEDIUMexamples/00-load/create_circular_arc.py48# Create an Arc From a Normal and AngleCOMMENT
MEDIUMexamples/00-load/create_polyhedron.py186# Create the GridCOMMENT
MEDIUM⚡examples/00-load/read_file.py16# The following code block uses a built-in example file and displays anCOMMENT
MEDIUM⚡examples/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.py21# Create a point cloud and project it to a plane.COMMENT
MEDIUMexamples/98-common/project_points_tessellate.py27# Define a planeCOMMENT
MEDIUMexamples/98-common/project_points_tessellate.py42# Create a polydata object with projected pointsCOMMENT
MEDIUMexamples/98-common/project_points_tessellate.py53# Create a plane for visualizationCOMMENT
MEDIUMexamples/99-advanced/warp_by_vector_eigenmodes.py213# Create the 3D NumPy array of spatially referenced dataCOMMENT
MEDIUMexamples/99-advanced/add_example.py94# Create a dataset and exercise it's repr methodSTRING
MEDIUMexamples/99-advanced/ray_trace_moeller.py87# Create a basic triangle within pyvistaCOMMENT
75 more matches not shown…
Cross-File Repetition80 hits · 400 pts
SeverityFileLineSnippetContext
HIGHtests/typing/cases/core/apply_to_points.py0return a flag typed only as ``bool``, so the catch-all overload applies.STRING
HIGHtests/typing/cases/core/multiblock_outline_corners.py0return a flag typed only as ``bool``, so the catch-all overload applies.STRING
HIGHtests/typing/cases/core/fit_plane_to_points.py0return a flag typed only as ``bool``, so the catch-all overload applies.STRING
HIGHtests/typing/cases/core/transform_apply.py0return a flag typed only as ``bool``, so the catch-all overload applies.STRING
HIGHtests/typing/cases/core/numpy_to_idarr.py0return a flag typed only as ``bool``, so the catch-all overload applies.STRING
HIGHtests/typing/cases/core/apply_to_vectors.py0return a flag typed only as ``bool``, so the catch-all overload applies.STRING
HIGH…ts/typing/cases/core/apply_transformation_to_points.py0return a flag typed only as ``bool``, so the catch-all overload applies.STRING
HIGHtests/typing/cases/core/principal_axes.py0return a flag typed only as ``bool``, so the catch-all overload applies.STRING
HIGHtests/typing/cases/core/find_closest_cell.py0return a flag typed only as ``bool``, so the catch-all overload applies.STRING
HIGHtests/typing/cases/core/contour_banded.py0return a flag typed only as ``bool``, so the catch-all overload applies.STRING
HIGHtests/typing/cases/core/axis_rotation.py0return a flag typed only as ``bool``, so the catch-all overload applies.STRING
HIGHtests/typing/cases/core/fit_line_to_points.py0return a flag typed only as ``bool``, so the catch-all overload applies.STRING
HIGHtests/typing/cases/plotting/add_plane_widget.py0return a flag typed only as ``bool``, so the catch-all overload applies.STRING
HIGHtests/typing/cases/plotting/add_volume_clip_plane.py0return a flag typed only as ``bool``, so the catch-all overload applies.STRING
HIGHtests/typing/cases/plotting/image_from_window.py0return a flag typed only as ``bool``, so the catch-all overload applies.STRING
HIGH…s/typing/cases/plotting/create_axes_orientation_box.py0return a flag typed only as ``bool``, so the catch-all overload applies.STRING
HIGHtests/typing/cases/plotting/screenshot.py0return a flag typed only as ``bool``, so the catch-all overload applies.STRING
HIGHtests/typing/cases/plotting/map_value.py0return a flag typed only as ``bool``, so the catch-all overload applies.STRING
HIGHtests/typing/cases/core/rectilineargrid_z.py0return a rectilinear grid with coordinates set from integers.STRING
HIGHtests/typing/cases/core/rectilineargrid_meshgrid.py0return a rectilinear grid with coordinates set from integers.STRING
HIGHtests/typing/cases/core/rectilineargrid_points.py0return a rectilinear grid with coordinates set from integers.STRING
HIGHtests/typing/cases/core/rectilineargrid_x.py0return a rectilinear grid with coordinates set from integers.STRING
HIGHtests/typing/cases/core/rectilineargrid_y.py0return a rectilinear grid with coordinates set from integers.STRING
HIGHtests/typing/cases/core/recursive_iterator.py0return a flag typed only as ``bool``, so the widened overloads apply.STRING
HIGHtests/typing/cases/core/clip_scalar.py0return a flag typed only as ``bool``, so the widened overloads apply.STRING
HIGHtests/typing/cases/core/clip.py0return a flag typed only as ``bool``, so the widened overloads apply.STRING
HIGHtests/typing/cases/core/multiblock_replace.py0return a named `multiblock` holding a mesh and a nested block.STRING
HIGHtests/typing/cases/core/multiblock_getitem.py0return a named `multiblock` holding a mesh and a nested block.STRING
HIGHtests/typing/cases/core/multiblock_setitem.py0return a named `multiblock` holding a mesh and a nested block.STRING
HIGHtests/typing/cases/core/multiblock_get_block.py0return a named `multiblock` holding a mesh and a nested block.STRING
HIGHtests/typing/cases/core/multiblock_replace.py0return a `multiblock` declared to hold only `multiblock` of `polydata`.STRING
HIGHtests/typing/cases/core/multiblock_getitem.py0return a `multiblock` declared to hold only `multiblock` of `polydata`.STRING
HIGHtests/typing/cases/core/multiblock_get_block.py0return a `multiblock` declared to hold only `multiblock` of `polydata`.STRING
HIGHtests/typing/cases/core/transform_apply.py0return a `multiblock` declared to hold only `multiblock` of `polydata`.STRING
HIGHtests/typing/cases/core/multiblock_append.py0return a `multiblock` declared to hold only `multiblock` of `polydata`.STRING
HIGHtests/typing/cases/core/apply_to_dataset.py0return a `multiblock` declared to hold only `multiblock` of `polydata`.STRING
HIGHtests/typing/cases/core/structuredgrid_z.py0return a structured grid that keeps integer points.STRING
HIGHtests/typing/cases/core/structuredgrid_points_matrix.py0return a structured grid that keeps integer points.STRING
HIGHtests/typing/cases/core/structuredgrid_y.py0return a structured grid that keeps integer points.STRING
HIGHtests/typing/cases/core/structuredgrid_x.py0return a structured grid that keeps integer points.STRING
HIGHtests/typing/cases/plotting/get_image_depth.py0return a plotter that has rendered one mesh and is still open.STRING
HIGHtests/typing/cases/plotting/screenshot.py0return a plotter that has rendered one mesh and is still open.STRING
HIGHtests/typing/cases/plotting/image.py0return a plotter that has rendered one mesh and is still open.STRING
HIGHtests/typing/cases/plotting/add_north_arrow_widget.py0return a plotter holding one mesh, not yet rendered.STRING
HIGHtests/typing/cases/plotting/add_ruler.py0return a plotter holding one mesh, not yet rendered.STRING
HIGHtests/typing/cases/plotting/add_legend_scale.py0return a plotter holding one mesh, not yet rendered.STRING
HIGHtests/typing/cases/plotting/add_floor.py0return a plotter holding one mesh, not yet rendered.STRING
HIGHtests/typing/cases/plotting/add_orientation_widget.py0return a plotter holding one mesh, not yet rendered.STRING
HIGHtests/typing/cases/plotting/add_box_axes.py0return a plotter holding one mesh, not yet rendered.STRING
HIGHtests/typing/cases/plotting/compute_bounds.py0return a plotter holding one mesh, not yet rendered.STRING
HIGHtests/typing/cases/plotting/show_bounds.py0return a plotter holding one mesh, not yet rendered.STRING
HIGHtests/typing/cases/plotting/add_scalar_bar.py0return a plotter holding one mesh, not yet rendered.STRING
HIGHtests/typing/cases/plotting/add_actor.py0return a plotter holding one mesh, not yet rendered.STRING
HIGHtests/typing/cases/plotting/show_grid.py0return a plotter holding one mesh, not yet rendered.STRING
HIGHtests/typing/cases/plotting/add_legend.py0return a plotter holding one mesh, not yet rendered.STRING
HIGHtests/typing/cases/plotting/add_axes.py0return a plotter holding one mesh, not yet rendered.STRING
HIGHtests/typing/cases/plotting/add_bounding_box.py0return a plotter holding one mesh, not yet rendered.STRING
HIGHtests/typing/cases/plotting/remove_actor.py0return a plotter holding one mesh, not yet rendered.STRING
HIGHtests/typing/cases/plotting/enable_depth_peeling.py0return a plotter holding one mesh, not yet rendered.STRING
HIGHtests/typing/cases/plotting/add_axes_at_origin.py0return a plotter holding one mesh, not yet rendered.STRING
20 more matches not shown…
Decorative Section Separators73 hits · 234 pts
SeverityFileLineSnippetContext
MEDIUM.gitpod.yml4# --------------------------------------------------------COMMENT
MEDIUMtests/core/test_dataset.py1624# ------------------COMMENT
MEDIUMtests/core/test_dataset.py1626# ------------------COMMENT
MEDIUM⚡tests/core/test_datasetattributes.py1085# -----------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/core/test_datasetattributes.py1087# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/core/test_datasetattributes.py798# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/core/test_datasetattributes.py800# -----------------------------------------------------------------------------COMMENT
MEDIUMpyvista/ext/plot_directive.py234# -----------------------------------------------------------------------------COMMENT
MEDIUMpyvista/ext/plot_directive.py236# -----------------------------------------------------------------------------COMMENT
MEDIUMpyvista/ext/plot_directive.py392# -----------------------------------------------------------------------------COMMENT
MEDIUMpyvista/ext/plot_directive.py394# -----------------------------------------------------------------------------COMMENT
MEDIUMpyvista/ext/plot_directive.py450# -----------------------------------------------------------------------------COMMENT
MEDIUMpyvista/ext/plot_directive.py452# -----------------------------------------------------------------------------COMMENT
MEDIUMpyvista/plotting/plotter.py8081 # =======================================================================COMMENT
MEDIUMpyvista/plotting/plotter.py8083 # =======================================================================COMMENT
MEDIUMpyvista/plotting/plotter.py8275 # =======================================================================COMMENT
MEDIUMpyvista/plotting/plotter.py8277 # =======================================================================COMMENT
MEDIUMpyvista/plotting/plotter.py8469 # =======================================================================COMMENT
MEDIUMpyvista/plotting/plotter.py8471 # =======================================================================COMMENT
MEDIUM⚡pyvista/plotting/picking.py375 # =========================================================================COMMENT
MEDIUM⚡pyvista/plotting/picking.py377 # =========================================================================COMMENT
MEDIUM⚡pyvista/plotting/picking.py480 # =========================================================================COMMENT
MEDIUM⚡pyvista/plotting/picking.py482 # =========================================================================COMMENT
MEDIUM⚡pyvista/plotting/picking.py511 # =========================================================================COMMENT
MEDIUM⚡pyvista/plotting/picking.py513 # =========================================================================COMMENT
MEDIUM⚡pyvista/plotting/picking.py855 # =========================================================================COMMENT
MEDIUM⚡pyvista/plotting/picking.py857 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py394 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py396 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py430 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py432 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py547 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py549 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py1769 # =========================================================================COMMENT
MEDIUMpyvista/plotting/picking.py1771 # =========================================================================COMMENT
MEDIUMexamples/00-load/create_unstructured_surface.py76# -----------------------------------COMMENT
MEDIUMexamples/00-load/wrap_trimesh.py33# -----------------COMMENT
MEDIUMexamples/00-load/wrap_trimesh.py51# --------------------COMMENT
MEDIUMexamples/00-load/wrap_trimesh.py109# ---------------COMMENT
MEDIUMexamples/99-advanced/mesh_validation.py24# ----------------COMMENT
MEDIUMexamples/99-advanced/mesh_validation.py61# -------------------------COMMENT
MEDIUMexamples/99-advanced/mesh_validation.py113# -----------------------COMMENT
MEDIUMexamples/99-advanced/mesh_validation.py169# -------------------------COMMENT
MEDIUMexamples/99-advanced/anatomical_groups.py25# ------------COMMENT
MEDIUMexamples/99-advanced/anatomical_groups.py51# =============COMMENT
MEDIUMexamples/99-advanced/anatomical_groups.py67# -----------------COMMENT
MEDIUMexamples/99-advanced/anatomical_groups.py73# =================COMMENT
MEDIUMexamples/99-advanced/anatomical_groups.py86# ================COMMENT
MEDIUMexamples/99-advanced/anatomical_groups.py114# -----------------COMMENT
MEDIUMexamples/99-advanced/anatomical_groups.py119# =====================COMMENT
MEDIUMexamples/99-advanced/anatomical_groups.py138# =======================COMMENT
MEDIUMexamples/99-advanced/anatomical_groups.py171# ============COMMENT
MEDIUMexamples/04-lights/light_types.py46# ============COMMENT
MEDIUMexamples/04-lights/light_types.py67# ===========COMMENT
MEDIUMexamples/04-lights/plotter_lighting.py54# =========================COMMENT
MEDIUMexamples/04-lights/plotter_lighting.py79# ===============COMMENT
MEDIUMexamples/04-lights/plotter_lighting.py96# ============================COMMENT
MEDIUMexamples/02-plot/axes_objects.py58# ==========COMMENT
MEDIUMexamples/02-plot/axes_objects.py119# ============COMMENT
MEDIUMexamples/02-plot/axes_objects.py165# =========================COMMENT
13 more matches not shown…
Over-Commented Block173 hits · 170 pts
SeverityFileLineSnippetContext
LOWtox.ini141# These mirror the `core` / `plotting` factor splits used in CI (seeCOMMENT
LOWtests/core/test_dataset_filters.py821 # upper(2)COMMENT
LOWtests/plotting/test_plotting.py3161COMMENT
LOWtests/examples/test_get_example.py541 pytest.skip('VTK version not supported.')COMMENT
LOWpyvista/core/_vtk_utilities.py161# connectivity without an explicit offsets array). Bind the capability check onceCOMMENT
LOWpyvista/core/utilities/accessor_registry.py141 # Accessor names declared via entry points that have not yet hadCOMMENT
LOWpyvista/plotting/plot_compare.py1081 # Do not reset when a fully-specified cpos is provided.COMMENT
LOWpyvista/plotting/plotter.py201_CAMERA_DISTORTION_COEFFICIENTS_UNIFORM = 'u_distortion_coefficients'COMMENT
LOWpyvista/plotting/plotter.py9001COMMENT
LOWpyvista/plotting/plotter.py9601COMMENT
LOWexamples/00-load/create_sphere.py41mesh.get_cell(0).typeCOMMENT
LOWexamples/00-load/create_sphere.py181points = np.vstack((x.ravel(), y.ravel(), z.ravel())).transpose()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_unstructured_surface.py61grid = pv.UnstructuredGrid(cells, cell_type, points)COMMENT
LOWexamples/00-load/create_unstructured_surface.py201# %%COMMENT
LOWexamples/00-load/create_point_cloud.py41# Columns are (X Y Z)COMMENT
LOWexamples/00-load/create_point_cloud.py61# sphinx_gallery_end_ignoreCOMMENT
LOWexamples/00-load/create_point_cloud.py81# And now we can plot the point cloud with that random data. PyVista is smartCOMMENT
LOWexamples/00-load/reader.py41COMMENT
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/read_parallel.py21# Let's go ahead and download the sample dataset containing anCOMMENT
LOWexamples/00-load/create_multiple_lines.py41# %%COMMENT
LOWexamples/00-load/read_image.py21COMMENT
LOWexamples/00-load/create_polydata_strips.py61COMMENT
LOWexamples/00-load/create_polydata_strips.py101# original ``mesh``.COMMENT
LOWexamples/00-load/create_explicit_structured_grid.py41# %%COMMENT
LOWexamples/00-load/create_polyhedron.py81# these lists to a :class:`numpy.ndarray` with ``dtype=pyvista.ID_TYPE`` andCOMMENT
LOWexamples/00-load/create_polyhedron.py161# :class:`pyvista.UnstructuredGrid`. Here, we join all cells in a flatCOMMENT
LOWexamples/00-load/terrain_following_mesh.py41COMMENT
LOWexamples/98-common/dataframe_export.py61COMMENT
LOWexamples/98-common/dataframe_export.py81# df.to_parquet('point_data.parquet')COMMENT
LOWexamples/99-advanced/magnetic_fields.py21import numpy as npCOMMENT
LOWexamples/99-advanced/extending_pyvista.py81print(f'Type: {type(decimated_foo_sphere)}')COMMENT
LOWexamples/99-advanced/add_example.py81# This will also be translated into a markdown cell in the generated jupyterCOMMENT
LOWexamples/99-advanced/add_example.py101# ~~~~~~~~~~~~~~~~COMMENT
LOWexamples/99-advanced/add_example.py121# cell.COMMENT
LOWexamples/99-advanced/add_example.py181# <https://github.com/pyvista/data>`_, and you can add the file byCOMMENT
LOWexamples/99-advanced/add_example.py201# If you intend on adding an example file, you should add a new function inCOMMENT
LOWexamples/99-advanced/slice_oblique_anatomy.py21COMMENT
LOWexamples/99-advanced/customize_trame_toolbar.py101#COMMENT
LOWexamples/99-advanced/customize_trame_toolbar.py121#COMMENT
LOWexamples/99-advanced/openfoam_cooling.py21import pyvista as pvCOMMENT
LOWexamples/99-advanced/mesh_validation.py61# -------------------------COMMENT
LOWexamples/99-advanced/mesh_validation.py101# Now let's compare the centroid of the valid and invalid cells usingCOMMENT
LOWexamples/99-advanced/mesh_validation.py141print(report.invalid_fields)COMMENT
LOWexamples/99-advanced/anatomical_groups.py21from pyvista import examplesCOMMENT
LOWexamples/99-advanced/anatomical_groups.py41label_names = dataset['segmentations'].keys()COMMENT
LOWexamples/99-advanced/atomic_orbitals.py21#COMMENT
LOWexamples/99-advanced/atomic_orbitals.py41# }COMMENT
LOWexamples/99-advanced/atomic_orbitals.py61# %%COMMENT
LOWexamples/99-advanced/atomic_orbitals.py181COMMENT
LOWexamples/99-advanced/fea_hertzian_contact_pressure.py61# %%COMMENT
LOWexamples/04-lights/light_types.py41pl.show()COMMENT
LOWexamples/04-lights/plotter_lighting.py81# We can introduce our own lighting from scratch by disabling anyCOMMENT
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
113 more matches not shown…
AI Structural Patterns196 hits · 137 pts
SeverityFileLineSnippetContext
LOWtests/core/test_composite.py1547CODE
LOWpyvista/_plot.py106CODE
LOWpyvista/core/grid.py691CODE
LOWpyvista/core/pointset.py886CODE
LOWpyvista/core/composite.py308CODE
LOWpyvista/core/composite.py311CODE
LOWpyvista/core/filters/image_data.py563CODE
LOWpyvista/core/filters/image_data.py2398CODE
LOWpyvista/core/filters/image_data.py3880CODE
LOWpyvista/core/filters/image_data.py4335CODE
LOWpyvista/core/filters/image_data.py5174CODE
LOWpyvista/core/filters/image_data.py5505CODE
LOWpyvista/core/filters/image_data.py5507CODE
LOWpyvista/core/filters/image_data.py5509CODE
LOWpyvista/core/filters/image_data.py5512CODE
LOWpyvista/core/filters/data_set.py1019CODE
LOWpyvista/core/filters/data_set.py1748CODE
LOWpyvista/core/filters/data_set.py2091CODE
LOWpyvista/core/filters/data_set.py2377CODE
LOWpyvista/core/filters/data_set.py2379CODE
LOWpyvista/core/filters/data_set.py2381CODE
LOWpyvista/core/filters/data_set.py2383CODE
LOWpyvista/core/filters/data_set.py3515CODE
LOWpyvista/core/filters/data_set.py3698CODE
LOWpyvista/core/filters/data_set.py3700CODE
LOWpyvista/core/filters/data_set.py3702CODE
LOWpyvista/core/filters/data_set.py3705CODE
LOWpyvista/core/filters/data_set.py3823CODE
LOWpyvista/core/filters/data_set.py4038CODE
LOWpyvista/core/filters/data_set.py4336CODE
LOWpyvista/core/filters/data_set.py4691CODE
LOWpyvista/core/filters/data_set.py4820CODE
LOWpyvista/core/filters/data_set.py5585CODE
LOWpyvista/core/filters/data_set.py5587CODE
LOWpyvista/core/filters/data_set.py5589CODE
LOWpyvista/core/filters/data_set.py5591CODE
LOWpyvista/core/filters/data_set.py5593CODE
LOWpyvista/core/filters/data_set.py5595CODE
LOWpyvista/core/filters/data_set.py5598CODE
LOWpyvista/core/filters/data_set.py6760CODE
LOWpyvista/core/filters/data_set.py8019CODE
LOWpyvista/core/filters/data_set.py8021CODE
LOWpyvista/core/filters/data_set.py8023CODE
LOWpyvista/core/filters/data_set.py8026CODE
LOWpyvista/core/filters/data_set.py8523CODE
LOWpyvista/core/filters/data_set.py8981CODE
LOWpyvista/core/filters/composite.py436CODE
LOWpyvista/core/filters/poly_data.py1008CODE
LOWpyvista/core/filters/poly_data.py1099CODE
LOWpyvista/core/filters/poly_data.py1270CODE
LOWpyvista/core/filters/poly_data.py1511CODE
LOWpyvista/core/filters/poly_data.py1940CODE
LOWpyvista/core/filters/poly_data.py2386CODE
LOWpyvista/core/filters/poly_data.py2797CODE
LOWpyvista/core/filters/poly_data.py3453CODE
LOWpyvista/core/filters/poly_data.py4074CODE
LOWpyvista/core/filters/poly_data.py4284CODE
LOWpyvista/core/filters/poly_data.py4806CODE
LOWpyvista/core/filters/poly_data.py4810CODE
LOWpyvista/core/filters/poly_data.py4813CODE
136 more matches not shown…
Deep Nesting149 hits · 118 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.py977CODE
LOWtests/test_import_conventions.py88CODE
LOWtests/check_doctest_names.py46CODE
LOWtests/check_doctest_names.py183CODE
LOWtests/test_attributes.py200CODE
LOWtests/test_attributes.py448CODE
LOWtests/test_attributes.py449CODE
LOWtests/core/test_composite.py1631CODE
LOWtests/core/test_accessor_registry.py974CODE
LOWtests/core/test_geometric_sources.py197CODE
LOWtests/core/test_geometric_sources.py585CODE
LOWtests/core/test_dataset_filters.py181CODE
LOWtests/core/test_dataset_filters.py4701CODE
LOWtests/core/test_dataset_filters.py5035CODE
LOWtests/core/test_geometric_objects.py38CODE
LOWtests/core/test_dataobject_filters.py66CODE
LOWtests/plotting/test_camera.py297CODE
LOWtests/plotting/test_plotting.py8053CODE
LOWtests/plotting/test_lights.py73CODE
LOWtests/plotting/test_picking.py681CODE
LOWtests/examples/test_cell_examples.py71CODE
LOWtests/doc/test_api_coverage.py122CODE
LOWpyvista/core/grid.py241CODE
LOWpyvista/core/config.py141CODE
LOWpyvista/core/pointset.py2789CODE
LOWpyvista/core/pointset.py4060CODE
LOWpyvista/core/pointset.py4462CODE
LOWpyvista/core/pointset.py5060CODE
LOWpyvista/core/pointset.py5100CODE
LOWpyvista/core/pointset.py5136CODE
LOWpyvista/core/datasetattributes.py201CODE
LOWpyvista/core/datasetattributes.py788CODE
LOWpyvista/core/dataobject.py184CODE
LOWpyvista/core/dataobject.py505CODE
LOWpyvista/core/dataobject.py1016CODE
LOWpyvista/core/partitioned.py68CODE
LOWpyvista/core/dataset.py177CODE
LOWpyvista/core/dataset.py3608CODE
LOWpyvista/core/composite.py197CODE
LOWpyvista/core/composite.py548CODE
LOWpyvista/core/composite.py651CODE
LOWpyvista/core/composite.py1901CODE
LOWpyvista/core/composite.py2372CODE
LOWpyvista/core/composite.py2779CODE
LOWpyvista/core/composite.py2840CODE
LOWpyvista/core/objects.py73CODE
LOWpyvista/core/filters/image_data.py6431CODE
LOWpyvista/core/filters/image_data.py563CODE
LOWpyvista/core/filters/image_data.py3567CODE
LOWpyvista/core/filters/image_data.py3880CODE
LOWpyvista/core/filters/image_data.py4335CODE
LOWpyvista/core/filters/image_data.py5836CODE
LOWpyvista/core/filters/rectilinear_grid.py25CODE
LOWpyvista/core/filters/data_set.py352CODE
LOWpyvista/core/filters/data_set.py2383CODE
LOWpyvista/core/filters/data_set.py5934CODE
89 more matches not shown…
Modern Structural Boilerplate106 hits · 98 pts
SeverityFileLineSnippetContext
LOW…inypages_autocodelink/autocodelink_samples/__init__.py12__all__ = ['Derived']CODE
LOWpyvista/_plot.py52def _set_background(pl: Plotter, background: ColorLike | None) -> None:CODE
LOWpyvista/core/grid.py308 def _update_dimensions(self: Self) -> None:CODE
LOWpyvista/core/pointset.py4892 def _set_extent(self, extent: list[int]) -> None:CODE
LOWpyvista/core/datasetattributes.py583 def set_array(self: Self, data: _AnyArrayLike, name: str, *, deep_copy: bool = False) -> None:CODE
LOWpyvista/core/_structured_data.py186 def _set_extent(self, extent: list[int]) -> None:CODE
LOWpyvista/core/composite.py1713 def set_block_name(self, index: int | str, name: str | None) -> None:CODE
LOWpyvista/core/filters/image_data.py2856 def _set_output_mesh_type(alg_: _vtk.vtkSurfaceNets3D) -> None:CODE
LOWpyvista/core/filters/__init__.py51def _update_alg(alg: _vtk.vtkAlgorithm, *, progress_bar: bool = False, message: str = '') -> None:CODE
LOWpyvista/core/filters/data_set.py6157 def _update_id_mask(logic_: NDArray[np.bool_]) -> None:CODE
LOWpyvista/core/filters/data_object.py1181 def _set_body(self, val: _ReportBodyOptions | None) -> None:CODE
LOWpyvista/core/filters/data_object.py2010 def set_pyvista_validity_state(mesh: DataSet) -> None:CODE
LOWpyvista/core/utilities/geometric_sources.py3641 def _update_templates(self: AxesGeometrySource) -> None:CODE
LOWpyvista/core/utilities/arrays.py1123 def _update_string(self: _SerializedDictArray) -> None:CODE
LOWpyvista/core/utilities/misc.py627def set_new_attribute(obj: object, name: str, value: Any) -> None:CODE
LOW⚡pyvista/core/utilities/reader.py469 def _update_information(self) -> None:CODE
LOW⚡pyvista/core/utilities/reader.py472 def _set_defaults(self) -> None:CODE
LOW⚡pyvista/core/utilities/reader.py475 def _set_defaults_post(self) -> None:CODE
LOWpyvista/core/utilities/reader.py418 def _set_directory(self, directory: str) -> None:CODE
LOWpyvista/core/utilities/reader.py425 def _set_filename(self, filename: str) -> None:CODE
LOWpyvista/core/utilities/reader.py712 def set_active_time_value(self, time_value: float) -> None:CODE
LOWpyvista/core/utilities/reader.py723 def set_active_time_point(self, time_point: int) -> None:CODE
LOWpyvista/core/utilities/reader.py927 def _set_filename(self, filename: str) -> None:CODE
LOWpyvista/core/utilities/reader.py965 def set_active_time_value(self, time_value: float) -> None:CODE
LOWpyvista/core/utilities/reader.py979 def set_active_time_point(self, time_point: int) -> None:CODE
LOWpyvista/core/utilities/reader.py995 def set_active_time_set(self, time_set: int) -> None:CODE
LOWpyvista/core/utilities/reader.py1030 def _set_defaults_post(self) -> None:CODE
LOWpyvista/core/utilities/reader.py1064 def set_active_time_value(self, time_value: float) -> None:CODE
LOWpyvista/core/utilities/reader.py1078 def set_active_time_point(self, time_point: int) -> None:CODE
LOWpyvista/core/utilities/reader.py1505 def _set_defaults_post(self) -> None:CODE
LOWpyvista/core/utilities/reader.py1662 def _set_defaults(self) -> None:CODE
LOWpyvista/core/utilities/reader.py1823 def _set_defaults_post(self) -> None:CODE
LOWpyvista/core/utilities/reader.py2265 def set_active_time_value(self, time_value: float) -> None:CODE
LOWpyvista/core/utilities/reader.py2276 def set_active_time_point(self, time_point: int) -> None:CODE
LOWpyvista/core/utilities/reader.py2312 def _set_defaults_post(self) -> None:CODE
LOWpyvista/core/utilities/reader.py2373 def set_active_time_value(self, time_value: float) -> None:CODE
LOWpyvista/core/utilities/reader.py2387 def set_active_time_point(self, time_point: int) -> None:CODE
LOWpyvista/core/utilities/reader.py2779 def _set_defaults_post(self) -> None:CODE
LOWpyvista/core/utilities/reader.py3242 def set_active_time_value(self, time_value: float) -> None:CODE
LOWpyvista/core/utilities/reader.py3289 def set_active_time_point(self, time_point: int) -> None:CODE
LOWpyvista/core/utilities/reader.py3300 def _set_defaults_post(self) -> None:CODE
LOWpyvista/core/utilities/reader.py3624 def _set_defaults_post(self) -> None:CODE
LOWpyvista/core/utilities/reader.py3982 def set_active_time_value(self, time_value: float) -> None:CODE
LOWpyvista/core/utilities/reader.py3999 def set_active_time_point(self, time_point: int) -> None:CODE
LOWpyvista/core/utilities/reader.py4155 def _set_defaults(self) -> None:CODE
LOWpyvista/core/utilities/reader.py4525 def set_active_time_value(self, time_value: float) -> None:CODE
LOWpyvista/core/utilities/reader.py4536 def set_active_time_point(self, time_point: int) -> None:CODE
LOWpyvista/core/utilities/fileio.py256def set_pickle_format(format: Literal['vtk', 'xml', 'legacy']) -> None: # noqa: A002CODE
LOWpyvista/core/utilities/fileio.py644def _set_reader_attributes(reader: BaseReader[Any], **kwargs) -> None:CODE
LOWpyvista/ext/_autoinherit.py47logger = logging.getLogger(__name__)CODE
LOWpyvista/ext/viewer_directive.py21logger = logging.getLogger(__name__)CODE
LOWpyvista/ext/_autoenum.py28logger = logging.getLogger(__name__)CODE
LOWpyvista/ext/_embed_py_file.py24logger = 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
46 more matches not shown…
Cross-Language Confusion12 hits · 70 pts
SeverityFileLineSnippetContext
HIGHtests/core/test_formatting_html.py81 # A var() fallback only applies when the variable is undefined, not when it isCOMMENT
HIGH⚡tests/core/test_geometric_sources.py866 planes_source.push(*distance)CODE
HIGHtests/core/test_geometric_sources.py451 algo.push(distance)CODE
HIGHtests/core/test_geometric_sources.py455 algo.push(distance)CODE
HIGH⚡tests/core/test_datasetattributes.py1049 assert table.schema.equals(direct.schema)CODE
HIGH⚡tests/core/test_datasetattributes.py1050 assert table.equals(direct)CODE
HIGHtests/core/test_objects.py200 assert df.equals(table.to_pandas())CODE
HIGH⚡tests/core/test_objects.py255 assert consumed.equals(table.to_arrow())CODE
HIGHtests/plotting/test_plotting.py7922 source.push(distance)CODE
HIGHpyvista/core/utilities/geometric_sources.py3836 >>> planes_source.push(0.0, -10.0, 0)STRING
HIGHpyvista/core/utilities/geometric_sources.py4006 source.push(dist)CODE
HIGHpyvista/plotting/actor.py65 'if (p.x > 1.0 || p.y > 1.0) {\n'CODE
AI Response Leakage9 hits · 68 pts
SeverityFileLineSnippetContext
HIGHexamples/00-load/create_unstructured_surface.py116# and the points belonging to the cell. In this example, there are 8COMMENT
HIGHexamples/00-load/create_point_cloud.py18# cloud. In this example, we'll work a bit backwards using a point cloudCOMMENT
HIGHexamples/99-advanced/extending_pyvista.py99# 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.py29# In this example, we override the values shown along the X and Y axes with ourCOMMENT
HIGHexamples/01-filter/surface_smoothing.py77# <pyvista.PolyDataFilters.smooth>`. In this example, you can see how TaubinCOMMENT
HIGHexamples/01-filter/streamlines.py91# filter, for example if an inlet surface is available. In this example, theCOMMENT
HIGHexamples/01-filter/interpolate.py50# 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
Empty Error Handlers13 hits · 65 pts
SeverityFileLineSnippetContext
HIGHtests/typing/test_return_type.py28except TypeError:CODE
HIGHpyvista/core/_vtk_utilities.py250except (KeyError, TypeError): # unseen class, or None during Python shutdownCODE
HIGHpyvista/core/filters/data_set.py8408except ValueError:CODE
HIGHpyvista/core/filters/data_object.py1250except TypeError:CODE
HIGHpyvista/core/utilities/fileio.py710except (KeyError, ValueError):CODE
HIGHpyvista/utilities/__init__.py57except KeyError:CODE
HIGHpyvista/plotting/_property.py1175except AttributeError: # pragma: no coverCODE
HIGHpyvista/plotting/_property.py1181except AttributeError: # pragma: no coverCODE
HIGHpyvista/plotting/renderer.py4180except AttributeError: # pragma: no coverCODE
HIGHpyvista/plotting/colors.py2330except ValueError:CODE
HIGHpyvista/examples/downloads.py382except (FileNotFoundError, RuntimeError):CODE
HIGHexamples/02-plot/element_picking.py50except AttributeError:CODE
HIGHexamples/02-plot/element_picking.py77except AttributeError:CODE
AI Slop Vocabulary19 hits · 40 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml242# The length of docstring lines should be kept to 75 characters to facilitateCOMMENT
MEDIUMpyproject.toml415# The length of docstring lines should be kept to 75 characters to facilitateCOMMENT
LOWpyvista/core/datasetattributes.py845 # are identical, just return the underlying array nameCOMMENT
LOWpyvista/core/dataset.py534 # simply set the underlying dataCOMMENT
MEDIUMpyvista/core/dataset.py3427 # Align points first to make rank computation more robustCOMMENT
LOWpyvista/plotting/camera.py1177 # simply call tight again to reset the parallel scale due to theCOMMENT
LOWpyvista/examples/downloads.py294 except ValueError: # otherwise simply add the file to the registryCODE
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.py43# simply pass the numpy points to the PolyData constructorCOMMENT
LOW⚡examples/00-load/read_file.py13# file formats, simply use :func:`pyvista.read` to load your spatiallyCOMMENT
MEDIUMexamples/02-plot/backface_prop.py45# front and backfaces differently helps viewers comprehend the intricateCOMMENT
MEDIUMexamples/02-plot/texture.py32# harness the :func:`pyvista.DataSetFilters.texture_map_to_plane` filter toCOMMENT
LOWexamples/02-plot/texture.py74# 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.py42# In order to display the vertices atop a mesh's surface geometry, simply passCOMMENT
MEDIUMexamples/01-filter/extract_edges.py59# We can leverage the :any:`pyvista.PolyData.n_open_edges` property andCOMMENT
LOWexamples/01-filter/using_filters.py102# And to view this filtered data, simply call the ``plot`` methodCOMMENT
MEDIUMexamples/03-widgets/plane_widget.py59# Or you could leverage the plane widget for some custom task like glyphing aCOMMENT
MEDIUMexamples/03-widgets/slider_bar_widget.py50# Or you could leverage a custom callback function that takes a single valueCOMMENT
Excessive Try-Catch Wrapping37 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUMtests/plotting/test_plotter.py1532def render_on_thread():CODE
LOWtests/plotting/test_plotter.py1540 except Exception as e: # noqa: BLE001 - reported by the assertion below # pragma: no coverCODE
LOWtests/doc/test_private_class_notes.py32 except Exception as e: # noqa: BLE001 - reported by test_every_module_imports # pragma: no coverCODE
LOWpyvista/report.py336 except Exception: # noqa: BLE001 - the report must not failCODE
LOWpyvista/report.py348 except Exception: # noqa: BLE001 - the report must not failCODE
LOWpyvista/core/filters/composite.py205 except Exception as e:CODE
LOWpyvista/core/utilities/misc.py443 except Exception: # noqa: BLE001 - reported as a warning # pragma: no coverCODE
LOWpyvista/core/utilities/reader_registry.py276 except Exception as e:CODE
LOWpyvista/core/utilities/reader_registry.py622 except Exception as err: # noqa: BLE001CODE
LOWpyvista/core/utilities/writer_registry.py338 except Exception as err: # noqa: BLE001CODE
LOWpyvista/core/utilities/docs.py76 except Exception: # noqa: BLE001 - a property getter can raise anythingCODE
LOWpyvista/core/utilities/docs.py88 except Exception: # noqa: BLE001 - source links are best effort # pragma: no coverCODE
LOWpyvista/core/utilities/docs.py99 except Exception: # noqa: BLE001 - source links are best effort # pragma: no coverCODE
LOWpyvista/core/utilities/accessor_registry.py740 except Exception as exc:CODE
LOWpyvista/core/utilities/observers.py317 except Exception: # noqa: BLE001 - an exception must not propagate into VTKCODE
LOWpyvista/core/utilities/observers.py328 except Exception as e: # noqa: BLE001 - the streams may be unusable, e.g. closedCODE
LOWpyvista/ext/_plot_subprocess.py239 except Exception: # noqa: BLE001CODE
LOWpyvista/ext/_embed_py_file.py65 except Exception as e: # noqa: BLE001 - reported as a Sphinx warningCODE
LOWpyvista/ext/plot_directive.py300 except Exception as e: # noqa: BLE001 - re-raised as a directive error # pragma: no coverCODE
LOWpyvista/plotting/theme_registry.py412 except Exception as exc: # noqa: BLE001CODE
LOWpyvista/plotting/component_registry.py647 except Exception as exc: # noqa: BLE001 - a broken plugin is reported, not fatalCODE
LOWpyvista/plotting/interactor_style_registry.py231 except Exception as exc: # noqa: BLE001 - a broken plugin is reported, not fatalCODE
LOWpyvista/plotting/plotter.py6084 except Exception as e: # noqa: BLE001 - finish closing the plotterCODE
LOWpyvista/plotting/picking.py1142 except Exception as e: # noqa: BLE001 - reported as a warning # pragma: no coverCODE
LOWpyvista/plotting/actor.py844 except Exception:STRING
LOWpyvista/plotting/utilities/algorithms.py274 except Exception: # pragma: no coverCODE
LOWpyvista/plotting/utilities/algorithms.py390 except Exception: # pragma: no coverCODE
LOWpyvista/plotting/utilities/algorithms.py480 except Exception: # pragma: no coverCODE
LOWpyvista/plotting/utilities/algorithms.py645 except Exception: # pragma: no coverCODE
LOWpyvista/plotting/utilities/algorithms.py698 except Exception: # pragma: no coverCODE
LOWpyvista/plotting/utilities/algorithms.py778 except Exception: # pragma: no coverCODE
LOWpyvista/plotting/utilities/algorithms.py823 except Exception: # pragma: no coverCODE
LOWpyvista/_cli/convert.py217 except Exception as e: # noqa: BLE001 - reported as a CLI errorCODE
LOWpyvista/_cli/validate.py277 except Exception as e: # noqa: BLE001 - reported as a CLI errorCODE
LOWpyvista/_cli/utils.py333 except Exception as error: # noqa: BLE001 - handled per ``on_error``CODE
LOWpyvista/_cli/utils.py504 except Exception as ex: # noqa: BLE001 - reported as a CLI errorSTRING
LOWpyvista/jupyter/__init__.py191 except Exception as err: # noqa: BLE001CODE
Redundant / Tautological Comments24 hits · 34 pts
SeverityFileLineSnippetContext
LOW⚡tests/core/test_utilities.py3150 # Set this to an invalid state with vtk methodsCOMMENT
LOWtests/core/test_dataset_filters.py4759 # Check if the number of points in the aligned mesh is the same as the original meshCOMMENT
LOWtests/plotting/test_widgets.py37 yaw = 0 # Set yaw to 0 and compute the othersCODE
LOWpyvista/_deprecate_positional_args.py127 # Check if the decorator is even needed at allCOMMENT
LOWpyvista/core/_vtk_utilities.py328 # Check if forwarding snake_case attributesCOMMENT
LOWpyvista/core/composite.py862 # Check if the keys already exist before updatingCOMMENT
LOWpyvista/core/composite.py883 # Check if the keys already exist before updatingCOMMENT
LOWpyvista/core/filters/data_set.py2213 # Check if a table of geometries was passedCOMMENT
LOWpyvista/core/filters/data_set.py6842 # Check if scalars array givenCOMMENT
LOWpyvista/core/filters/poly_data.py1590 # Check if scalars array givenCOMMENT
LOWpyvista/core/filters/data_object.py539 # Check if a group was passed to make the error message friendlierCOMMENT
LOWpyvista/core/utilities/misc.py598 # Check if setting a new attribute is allowedCOMMENT
LOWpyvista/core/utilities/helpers.py307 # Check if dataset is a numpy array. We do this first sinceCOMMENT
LOWpyvista/core/utilities/helpers.py335 # Check if a dataset is a VTK typeCOMMENT
LOWpyvista/core/utilities/fileio.py595 # Read file using meshio.read if file_format is presentCOMMENT
LOWpyvista/plotting/render_window_interactor.py623 # Set scene to interact with or reset it to stop interaction (otherwise crash)COMMENT
LOWpyvista/plotting/renderer.py768 if ( # Check if the actor should be ignoredCODE
LOWpyvista/plotting/renderers.py325 # Check if row and col weights correspond to given shape,COMMENT
LOWpyvista/plotting/plotter.py360 # Check if VTK has EGL supportCOMMENT
LOWpyvista/plotting/plotter.py4806 # Set color to white by default when using a textureCOMMENT
LOWpyvista/examples/examples.py815 >>> 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.py27# Display the resultsCOMMENT
LOWexamples/01-filter/streamlines.py43# Display the results. Please note that because this dataset's velocity fieldCOMMENT
Slop Phrases10 hits · 23 pts
SeverityFileLineSnippetContext
LOWtests/plotting/test_plotting_utilities.py89 # make sure to plot an object that has boundariesCOMMENT
MEDIUMexamples/00-load/create_polydata_strips.py92# <pyvista.PolyDataFilters.strip>`. Here, for demonstration purposes we convert theCOMMENT
MEDIUMexamples/99-advanced/add_example.py89# ``__repr__`` method. Otherwise, you can use ``print()`` to output text.STRING
MEDIUMexamples/99-advanced/add_example.py181# <https://github.com/pyvista/data>`_, and you can add the file bySTRING
MEDIUMexamples/99-advanced/planets.py76# 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/lookup_table.py88# If you want to create a completely unique color map, you can use attributesCOMMENT
MEDIUMexamples/01-filter/image_fft.py91# for demonstration purposes.COMMENT
MEDIUMexamples/01-filter/remove_cells.py21# Decide which cells to remove with a criterion (feel free to adjust thisCOMMENT
LOWdoc/intersphinx/update.sh4# make sure to follow potential redirects, and fail on an HTTP errorCOMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALpyvista/ext/_embed_py_file.py69 self.state.document.settings.env.note_dependency(str(path))CODE
Verbosity Indicators2 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡examples/00-load/read_file.py16# The following code block uses a built-in example file and displays anCOMMENT
LOW⚡examples/00-load/read_file.py24# The following code block uses a built-in exampleCOMMENT
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWpyvista/plotting/axes_assembly.py632 # TODO: implement set_text_prop() and use that insteadCOMMENT
LOWpyvista/plotting/axes_assembly.py1915 # TODO: implement set_text_prop() and use that insteadCOMMENT