Ignore Julia environment and coverage artifacts - #13
Draft
smartalecH wants to merge 3 commits into
Draft
smartalecH wants to merge 3 commits into
smartalecH wants to merge 3 commits into
Conversation
Adds a running Julia-vs-Python feature list, compiled from the current sources, covering the filters, SSP1/SSP2 projections, dilation/erosion, lengthscale constraints, AD support, and the low-level Julia API, plus known limitations and gaps. Also links the new page from the top-level and Julia READMEs and adds Julia installation instructions to the top-level README.
Ports the geometric lengthscale constraints from the Julia package: constraint_solid and constraint_void, with the hyperparameter-free thresholds of Arrieta et al. (arXiv:2507.16108). Both are written in terms of rho_filtered and rho_projected only, so they compose with any projection order (ssp1_bilinear, ssp2, or a plain tanh projection). Includes a test suite covering the threshold functions, lengthscale detection on stripe/gap geometries, gradients against finite differences, composition with each projection, jit, and argument validation, plus a worked example that sweeps the constraint over feature widths and runs a two-stage constrained optimization.
Running Pkg.instantiate() in src/julia/SSP or examples/julia writes a Manifest.toml, which should not be tracked for a package. Also ignore the coverage and allocation files that `julia --code-coverage` / `--track-allocation` leave next to the sources.
smartalecH
force-pushed
the
python/lengthscale-constraints
branch
from
September 18, 2026 21:33
2bb82ed to
75edbcb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #12 (base branch is
python/lengthscale-constraints), which is itself stacked on #11.Running
Pkg.instantiate()insrc/julia/SSP(orexamples/julia) writes aManifest.tomlthat currently shows up as untracked — easy to commit by accident, and a resolved manifest shouldn't be tracked for a package that supports a range of dependency versions. This adds a Julia section to.gitignore:Manifest.tomlandManifest-v*.toml(Julia writes the versioned form for somejuliaversions);*.jl.cov,*.jl.*.cov,*.jl.mem, left behind byjulia --code-coverageand--track-allocation.Verified by re-running
Pkg.instantiate()insrc/julia/SSP: the regeneratedManifest.tomlno longer appears ingit status, andgit check-ignore -vattributes it to the new rule.I deliberately left the PNGs that the examples write into the working directory (
projection.png,constraint_sweep.png, ...) out of this — a blanket*.pngrule would silently swallow figures we may later want to commit for the docs. Happy to add explicit names if you'd rather.