Skip to content

Commit 00cc794

Browse files
committed
Merge branch 'main' of github.com:SpM-lab/sparse-ir-tutorial-v2
2 parents 660c85b + 7fdd9ca commit 00cc794

7 files changed

Lines changed: 11 additions & 21 deletions

File tree

‎Project.toml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ RSCG = "4e41d8b6-e438-5f9c-8b78-0c738ca8d379"
1313
Revise = "295af30f-e4ad-537b-8983-00126c2a3abe"
1414
Roots = "f2b01f46-fcfa-551c-844a-d8ac1e96c665"
1515
SparseIR = "4fe2279e-80f0-4adb-8463-ee114ff56b7d"
16+
17+
[compat]
18+
RSCG = "0.1.2"

‎README.md‎

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# sparse-ir
1+
# sparse-ir-tutorial
22

33
## Author guideline
44

@@ -13,15 +13,5 @@ Install `uv` and run the following commands to build html files:
1313
make build
1414
```
1515

16-
Then, you can upload html files to the repository by running the following command:
17-
18-
```bash
19-
make upload
20-
```
21-
2216
## References
2317
You can add references to `references.bib`.
24-
25-
## Trouble shooting
26-
27-
* https://github.com/executablebooks/jupyter-book/issues/1541

‎pyproject.toml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ dependencies = [
77
"matplotlib",
88
"ghp-import",
99
"jupyterlab",
10-
"sparse-ir>=2.0.0a6",
10+
"sparse-ir>=2.0.0a8",
1111
"admmsolver",
12-
"pylibsparseir",
1312
]

‎register_julia_kernel.jl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ if abspath(PROGRAM_FILE) == @__FILE__
140140

141141
@printf "Registering kernel with project directory: %s\n" project_dir
142142

143-
# Register kernel with name "julia-1.11" to match the notebooks
144-
success = register_julia_kernel("julia-1.11", "julia", project_arg)
143+
# Register kernel with name "julia-x.y" to match the notebooks
144+
success = register_julia_kernel("julia-$(VERSION.major).$(VERSION.minor)", "julia", project_arg)
145145

146146
if success
147147
println("✓ Kernel registration completed successfully")

‎src/BgG_jl.ipynb‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,6 @@
498498
"metadata": {},
499499
"outputs": [],
500500
"source": [
501-
"using Pkg\n",
502-
"Pkg.add(PackageSpec(name=\"RSCG\", version = \"0.1.2\"))\n",
503501
"using RSCG"
504502
]
505503
},

‎src/transformation_py.ipynb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
"wmax = 10\n",
189189
"basis = sparse_ir.FiniteTempBasis(\"F\", beta, wmax, eps=1e-10)\n",
190190
"\n",
191-
"rhol = basis.v.overlap(rho\n",
191+
"rhol = basis.v.overlap(rho)\n",
192192
"gl = - basis.s * rhol\n",
193193
"\n",
194194
"plt.semilogy(np.abs(rhol), marker=\"o\", ls=\"\", label=r\"$|\\rho_l|$\")\n",
@@ -305,7 +305,7 @@
305305
" else:\n",
306306
" return uval.T @ gl\n",
307307
"\n",
308-
"gl_reconst = basis.u.overlap(eval_gtau\n",
308+
"gl_reconst = basis.u.overlap(eval_gtau)\n",
309309
"\n",
310310
"ls = np.arange(basis.size)\n",
311311
"plt.semilogy(ls[::2], np.abs(gl_reconst)[::2], label=\"reconstructed\", marker=\"+\", ls=\"\")\n",

‎update_julia_notebooks.jl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function update_notebook_kernel(notebook_path::String, kernel_name::String="juli
3939

4040
# Update kernelspec
4141
notebook["metadata"]["kernelspec"] = Dict(
42-
"display_name" => "Julia 1.11.2",
42+
"display_name" => "Julia $(VERSION)",
4343
"language" => "julia",
4444
"name" => kernel_name
4545
)
@@ -49,7 +49,7 @@ function update_notebook_kernel(notebook_path::String, kernel_name::String="juli
4949
"file_extension" => ".jl",
5050
"mimetype" => "application/julia",
5151
"name" => "julia",
52-
"version" => "1.11.2"
52+
"version" => "$(VERSION)"
5353
)
5454

5555
# Write back the notebook

0 commit comments

Comments
 (0)