diff --git a/.github/workflows/FormatCheck.yml b/.github/workflows/FormatCheck.yml index c557bcc0..7063e805 100644 --- a/.github/workflows/FormatCheck.yml +++ b/.github/workflows/FormatCheck.yml @@ -4,11 +4,17 @@ on: push: branches: - 'main' - tags: - - '*' + paths: + - '.github/workflows/FormatCheck.yml' + - '.JuliaFormatter.toml' + - '**.jl' pull_request: branches: - 'main' + paths: + - '.github/workflows/FormatCheck.yml' + - '.JuliaFormatter.toml' + - '**.jl' types: - opened - reopened diff --git a/.github/workflows/Runtests.yml b/.github/workflows/Runtests.yml index da90f34b..01a05d36 100644 --- a/.github/workflows/Runtests.yml +++ b/.github/workflows/Runtests.yml @@ -4,15 +4,21 @@ on: push: branches: - 'main' - paths-ignore: - - 'docs/**' - - 'examples/**' + paths: + - '.github/workflows/Runtests.yml' + - 'src/**' + - 'ext/**' + - 'test/**' + - 'Project.toml' pull_request: branches: - 'main' - paths-ignore: - - 'docs/**' - - 'examples/**' + paths: + - '.github/workflows/Runtests.yml' + - 'src/**' + - 'ext/**' + - 'test/**' + - 'Project.toml' types: - opened - reopened diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index b64036c7..75b211c1 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -9,6 +9,13 @@ on: pull_request: branches: - 'main' + paths: + - '.github/workflows/documentation.yml' + - 'src/**' + - 'ext/**' + - 'docs/**' + - 'examples/**' + - 'Project.toml' types: - opened - reopened diff --git a/.gitignore b/.gitignore index b8109bef..b5574db1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,14 +1,19 @@ .DS_Store .vscode +*.jl.*.cov +*.jl.cov +*.jl.mem Manifest.toml docs/build/ docs/src/examples/ *.txt *.jld2 +*.json *.py +*.ipynb *.ipynb_checkpoints **/*.ipynb_checkpoints **/**/*.ipynb_checkpoints \ No newline at end of file diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 00000000..ddf531d0 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,25 @@ +# Contributor Covenant Code of Conduct + +As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities. + +We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality. + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery +* Personal attacks +* Trolling or insulting/derogatory comments +* Public or private harassment +* Publishing other's private information, such as physical or electronic addresses, without explicit permission +* Other unethical or unprofessional conduct + +Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team. + +This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. + +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers. + +This Code of Conduct is adapted from the Contributor Covenant , version 1.2.0, available at https://www.contributor-covenant.org/version/1/2/0/code-of-conduct.html + +[homepage]: https://contributor-covenant.org +[version]: https://contributor-covenant.org/version/1/2/ diff --git a/Project.toml b/Project.toml index 766c315d..ee28bd7b 100644 --- a/Project.toml +++ b/Project.toml @@ -30,11 +30,11 @@ HierarchicalEOM_QuantumToolboxExt = "QuantumToolbox" [compat] CUDA = "5" DiffEqCallbacks = "2, 3" -FastExpm = "1.1.0" -JLD2 = "0.4.31" +FastExpm = "1.1" +JLD2 = "0.4.31 - 0.4" LinearAlgebra = "<0.0.1, 1" -LinearSolve = "2.4.2" -OrdinaryDiffEq = "6.53.4" +LinearSolve = "2.4.2 - 2" +OrdinaryDiffEq = "6.53.4 - 6" Pkg = "<0.0.1, 1" PrecompileTools = "1" ProgressMeter = "1.7" diff --git a/docs/Project.toml b/docs/Project.toml index 85ace495..8d15783c 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -13,12 +13,12 @@ QuantumToolbox = "6c2fb7c5-b903-41d2-bc5e-5a7c320b9fab" [compat] BenchmarkTools = "1.3" -Documenter = "0.27, 1" +Documenter = "1" HierarchicalEOM = "1" LaTeXStrings = "1" -LinearSolve = "2.4" +LinearSolve = "2" Literate = "2" -OrdinaryDiffEq = "6.53" +OrdinaryDiffEq = "6" Pardiso = "0.5" Plots = "1" QuantumOptics = "1" diff --git a/examples/benchmark_LS_solvers.jl b/examples/benchmark_LS_solvers.jl index bfcf686b..fffbc3dc 100644 --- a/examples/benchmark_LS_solvers.jl +++ b/examples/benchmark_LS_solvers.jl @@ -42,9 +42,6 @@ UMFPACKFactorization(); # This solver performs better when there is less structure to the sparsity pattern (depends on the complexity of your system and baths). KLUFactorization(); -# ### Julia's built-in LU factorization -LUFactorization(); - # ### A generic BICGSTAB implementation from Krylov KrylovJL_BICGSTAB(); @@ -65,9 +62,6 @@ MKLPardisoIterate(); # ### KLUFactorization @benchmark SteadyState(M_even; solver = KLUFactorization(), verbose = false) -# ### Julia's built-in generic LU factorization -@benchmark SteadyState(M_even; solver = LUFactorization(), verbose = false) - # ### KrylovJL_BICGSTAB @benchmark SteadyState(M_even; solver = KrylovJL_BICGSTAB(rtol = 1e-10, atol = 1e-12), verbose = false) @@ -84,9 +78,6 @@ MKLPardisoIterate(); # ### KLUFactorization @benchmark DensityOfStates(M_odd, ados_s, d_up, ωlist; solver = KLUFactorization(), verbose = false) -# ### Julia's built-in LU factorization -@benchmark DensityOfStates(M_odd, ados_s, d_up, ωlist; solver = LUFactorization(), verbose = false) - # ### KrylovJL_BICGSTAB @benchmark DensityOfStates( M_odd,