Skip to content

Commit d15fc86

Browse files
committed
add TOML config file support for peapods sweep
Signed-off-by: PeaBrane <yanrpei@gmail.com>
1 parent c220edf commit d15fc86

File tree

4 files changed

+339
-38
lines changed

4 files changed

+339
-38
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ dist/
2525
**/playground*
2626
refs/
2727
*.sh
28+
/sweep*.toml

examples/sweep_config.toml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
[lattice]
2+
sizes = [[8, 8], [16, 16], [32, 32]]
3+
# geometry = "triangular"
4+
# neighbor_offsets = [[1, 0], [0, 1]]
5+
6+
couplings = ["bimodal"]
7+
8+
[temperatures]
9+
min = 0.8
10+
max = 1.4
11+
count = 12
12+
scale = "log"
13+
14+
[replicas]
15+
n_replicas = 2
16+
n_disorder = 10
17+
18+
[sampling]
19+
n_sweeps = 5000
20+
sweep_mode = "metropolis"
21+
warmup_ratio = 0.25
22+
23+
[cluster]
24+
interval = 1
25+
mode = "sw"
26+
27+
[parallel_tempering]
28+
interval = 1
29+
30+
[overlap_cluster]
31+
interval = 1
32+
build_modes = ["cmr", "cmr3"]
33+
cluster_mode = "sw"
34+
update_modes = ["free"]
35+
36+
[diagnostics]
37+
collect_csd = false
38+
collect_top_clusters = false
39+
40+
[diagnostics.autocorrelation]
41+
max_lag = 2000
42+
plot_temp = 1.102
43+
44+
[output]
45+
save_plots = true
46+
save_data = true
47+
dir = "./results"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version = "0.1.5"
88
description = "Ising Monte Carlo: Metropolis, Gibbs, Wolff, Swendsen-Wang, parallel tempering, Houdayer ICM"
99
readme = "README.md"
1010
license = {text = "MIT"}
11-
requires-python = ">=3.10"
11+
requires-python = ">=3.11"
1212
dependencies = ["numpy"]
1313

1414
[project.scripts]

0 commit comments

Comments
 (0)