diff --git a/abics/sampling/pamc.py b/abics/sampling/pamc.py index b7ed20f..2c2f964 100644 --- a/abics/sampling/pamc.py +++ b/abics/sampling/pamc.py @@ -98,7 +98,7 @@ def from_dict(cls, d): kTstart = d["kTstart"] kTend = d["kTend"] kTnum = d["kTnum"] - if d.get("kT_linspace_as_inverse_temperature", False): + if d.get("linspace_in_beta", False): params.kTs = 1.0 / np.linspace(1.0 / kTstart, 1.0 / kTend, kTnum) else: params.kTs = np.linspace(kTstart, kTend, kTnum) diff --git a/abics/sampling/rxmc.py b/abics/sampling/rxmc.py index 7e7b003..602b102 100644 --- a/abics/sampling/rxmc.py +++ b/abics/sampling/rxmc.py @@ -96,7 +96,7 @@ def from_dict(cls, d): else: kTstart = d["kTstart"] kTend = d["kTend"] - if d.get("kT_linspace_as_inverse_temperature", False): + if d.get("linspace_in_beta", False): params.kTs = 1.0 / np.linspace(1.0 / kTstart, 1.0 / kTend, params.nreplicas) else: params.kTs = np.linspace(kTstart, kTend, params.nreplicas) diff --git a/docs/sphinx/en/source/inputfiles/parameter_sampling.rst b/docs/sphinx/en/source/inputfiles/parameter_sampling.rst index d624132..7d3817b 100644 --- a/docs/sphinx/en/source/inputfiles/parameter_sampling.rst +++ b/docs/sphinx/en/source/inputfiles/parameter_sampling.rst @@ -71,7 +71,7 @@ Keywords The number of temperature points. When ``sampler = "RXMC"``, the number of temperature points will equal to ``nreplicas``. - - ``kT_linspace_as_inverse_temperature`` + - ``linspace_in_beta`` **Format :** true or false diff --git a/docs/sphinx/ja/source/inputfiles/parameter_sampling.rst b/docs/sphinx/ja/source/inputfiles/parameter_sampling.rst index 5577555..a8cd91a 100644 --- a/docs/sphinx/ja/source/inputfiles/parameter_sampling.rst +++ b/docs/sphinx/ja/source/inputfiles/parameter_sampling.rst @@ -73,7 +73,7 @@ ``sampler = "PAMC"`` のときに使用. ``sampler = "RXMC"`` のときは、 レプリカ数 ``nreplicas`` が温度点の数になります. - - ``kT_linspace_as_inverse_temperature`` + - ``linspace_in_beta`` **形式 :** true or false