Skip to content

Commit

Permalink
rename to linspace_in_beta
Browse files Browse the repository at this point in the history
  • Loading branch information
yomichi committed Oct 24, 2024
1 parent 31e6249 commit 7b58f3d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion abics/sampling/pamc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion abics/sampling/rxmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion docs/sphinx/en/source/inputfiles/parameter_sampling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/sphinx/ja/source/inputfiles/parameter_sampling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
``sampler = "PAMC"`` のときに使用.
``sampler = "RXMC"`` のときは、 レプリカ数 ``nreplicas`` が温度点の数になります.

- ``kT_linspace_as_inverse_temperature``
- ``linspace_in_beta``

**形式 :** true or false

Expand Down

0 comments on commit 7b58f3d

Please sign in to comment.