Contributing
Additions to Lincege.jl are welcome in the following forms:
- Issues – Report bugs or suggest new features.
- Pull Requests – Submit code changes or documentation updates.
Please ensure all your edits pass the tests located in test/runtests.jl.
Pull Request Process
We use the feature branch workflow for contributions. Please follow these steps:
Fork the Lincege.jl repository to your own GitHub account.
Create a new branch in your local fork for your specific changes.
git checkout -b feature/your-feature-nameImplement your changes. Ensure everything works by running the tests, add tests as needed:
julia test/runtests.jlCommit your changes and push the branch to your fork:
git add . git commit -m "Brief description of your changes" git push origin feature/your-feature-nameGo to the original Lincege repository on GitHub. Click New Pull Request and select your feature branch to submit.
Running benchmarks
Install the benchmark environment:
julia --project=benchmark -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'To run the full benchmark suite, run the following code in the julia repl with command julia --project=benchmark.
using BenchmarkTools
include("benchmark/benchmarks.jl")
results = run(SUITE; verbose=true)
show(stdout, MIME"text/plain"(), results)Running the full suite can take time, to measure just the square lattice benchmark, use:
results = run(SUITE["square"]; verbose=true)
show(stdout, MIME"text/plain"(), results)Building the Documentation for Lincege.jl
Install the documentation environment:
julia --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'Build the docs locally with:
julia --project=docs docs/make.jlOpen docs/build/index.html in a browser to view the result.
AI Policy
The core code for Lincege.jl was written without the use of large language models. Pull requests should explictly note the use of large language models and human authors must understand the full extent of the code that is added. NLCE is a very delicate process and the weights must be calculated accurately.