Skip to content

Speckle pattern generation module#181

Open
WieraB wants to merge 49 commits intodevfrom
wb-dev
Open

Speckle pattern generation module#181
WieraB wants to merge 49 commits intodevfrom
wb-dev

Conversation

@WieraB
Copy link
Copy Markdown

@WieraB WieraB commented Nov 3, 2025

Speckle generation module consisting of the following:

  1. A general speckle generation function
  2. Diagnostics functions calculating statistics and creating plots
  3. Six usage examples corresponding to the various methods which could be applied to pattern generation
  4. Tests
  5. Updated docs

JoelPhys and others added 15 commits August 1, 2025 15:28
QOL and bugfixes following 2D DIC workshop
…clude speckle gen, and added specklegen tests.
…nction, 2.Converted number of periods into a speckle size, add random seed setting in Perlin/fractal noise, 3. Split diagnostics function into just stats and everything chart-related, let the diagnostics function return the plot handle as well. - Created function descriptions in a standard format. - Added an option to create a speckle pattern by first creating a regular circle pattern and then randomly perturbating speckles.
@WieraB WieraB changed the base branch from main to dev November 11, 2025 14:38
@ScepticalRabbit
Copy link
Copy Markdown
Collaborator

ScepticalRabbit commented Jan 23, 2026

@WieraB have we merged in the latest version of dev into this to update everything? Should be my massive refactor from me and some DIC stuff from Joel

Comment thread scripts/gengold_specklegen.py Outdated
@ScepticalRabbit
Copy link
Copy Markdown
Collaborator

The docs don't seem to be adding the specklegen module to the side menu and the examples aren't listed on the page - probably something needs to be added to the rst.
Screenshot from 2026-01-24 19-44-31

@WieraB
Copy link
Copy Markdown
Author

WieraB commented Jan 25, 2026

@ScepticalRabbit

The docs don't seem to be adding the specklegen module to the side menu and the examples aren't listed on the page - probably something needs to be added to the rst.

I think I fixed it now. The changes in .gitignore merged with wb-dev made git ignore examples_specklegen.rst, I commented out one line in .gitignore, which I think isn't necessary now.

Comment thread src/pyvale/examples/specklegen/ex1a_random_disks_overlap.py Outdated
Comment thread src/pyvale/examples/specklegen/ex1a_random_disks_overlap.py Outdated
Comment thread src/pyvale/examples/specklegen/ex1a_random_disks_overlap.py
Comment thread src/pyvale/examples/specklegen/ex1a_random_disks_overlap.py Outdated
Comment thread src/pyvale/examples/specklegen/ex1a_random_disks_overlap.py Outdated
Comment thread src/pyvale/specklegen/speckle_pattern_diagnostics.py Outdated
Comment thread src/pyvale/examples/specklegen/ex1a_random_disks_overlap.py Outdated
Comment thread src/pyvale/specklegen/speckle_pattern_diagnostics.py Outdated
Comment thread tests/specklegen/generate_speckles_test.py Outdated
Comment thread tests/specklegen/generate_speckles_test.py Outdated
WieraB added 28 commits March 6, 2026 20:43
…the and post-processing functions, amended some comments in the specklegen examples.
…dded an option to specify image format in speckle_pattern_plots. Also, added clearing of the save subfolder in the specklegen examples.
…kle_pattern_diagnostics.py, adjusted the specklegen examples accordignly.
… into a separate function postprocess_speckles.py.
…th and container bit depth in the specklegen module, amended the specklegen examples accordingly.
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.

3 participants