From c833053e24159c12353de497757152976a3cf6c1 Mon Sep 17 00:00:00 2001 From: Yi-Te Huang Date: Wed, 4 Sep 2024 11:35:47 +0800 Subject: [PATCH 1/5] update ci configs --- .github/workflows/FormatCheck.yml | 10 ++++++++-- .github/workflows/Runtests.yml | 18 ++++++++++++------ .github/workflows/documentation.yml | 7 +++++++ 3 files changed, 27 insertions(+), 8 deletions(-) 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..ceb42d40 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/CI.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 From 2567b22f9c432acb68e7e6e51dc1810da4a26567 Mon Sep 17 00:00:00 2001 From: Yi-Te Huang Date: Wed, 4 Sep 2024 11:36:50 +0800 Subject: [PATCH 2/5] add code of conduct --- CODE_OF_CONDUCT.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 CODE_OF_CONDUCT.md 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/ From 0e088a801fbc5dfb014c9ec26662bc36d1e7641e Mon Sep 17 00:00:00 2001 From: Yi-Te Huang Date: Wed, 4 Sep 2024 11:38:58 +0800 Subject: [PATCH 3/5] update gitignore --- .gitignore | 5 +++++ 1 file changed, 5 insertions(+) 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 From de563f952f87049978a2a40a19d9ffa3fd4008db Mon Sep 17 00:00:00 2001 From: Yi-Te Huang Date: Wed, 4 Sep 2024 11:44:00 +0800 Subject: [PATCH 4/5] fix runtests CI --- .github/workflows/Runtests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Runtests.yml b/.github/workflows/Runtests.yml index ceb42d40..01a05d36 100644 --- a/.github/workflows/Runtests.yml +++ b/.github/workflows/Runtests.yml @@ -14,7 +14,7 @@ on: branches: - 'main' paths: - - '.github/workflows/CI.yml' + - '.github/workflows/Runtests.yml' - 'src/**' - 'ext/**' - 'test/**' From 61cf2e4d2392db0e98a14aa56137abeba6560dbe Mon Sep 17 00:00:00 2001 From: Yi-Te Huang Date: Wed, 4 Sep 2024 13:58:29 +0800 Subject: [PATCH 5/5] fix benchmarks --- Project.toml | 8 ++++---- docs/Project.toml | 6 +++--- examples/benchmark_LS_solvers.jl | 9 --------- 3 files changed, 7 insertions(+), 16 deletions(-) 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,