Skip to content

Reduce n_samples in dataset generation tests to speed up test run#55

Merged
mkofler96 merged 1 commit intomainfrom
copilot/debug-test-generate-dataset
Apr 21, 2026
Merged

Reduce n_samples in dataset generation tests to speed up test run#55
mkofler96 merged 1 commit intomainfrom
copilot/debug-test-generate-dataset

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 21, 2026

test_generate_dataset.py was taking excessively long due to the default n_samples=100_000 being used in all process_geometries calls. With 20 augmented chair meshes + 2 parametrize runs of the microstructure test, this amounted to millions of SDF queries per test run.

Changes

  • Set n_samples=1000 explicitly in both test_generate_dataset_from_obj_files and test_generate_dataset, reducing per-file query count from ~200k to ~2k (100× reduction).

@deepsource-io
Copy link
Copy Markdown

deepsource-io Bot commented Apr 21, 2026

DeepSource Code Review

We reviewed changes in a3e95d0...ef525a4 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
Python Apr 21, 2026 11:37a.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

@mkofler96 mkofler96 marked this pull request as ready for review April 21, 2026 11:50
@mkofler96 mkofler96 merged commit d3c1213 into main Apr 21, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants