Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in forced_identifiability_transform #122

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
:target: https://arxiv.org/abs/1506.00171
:alt: Open-access paper

PolyChord v 1.22.1
PolyChord v 1.22.2

Will Handley, Mike Hobson & Anthony Lasenby

Expand Down
2 changes: 1 addition & 1 deletion pypolychord/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "1.22.1"
__version__ = "1.22.2"
from pypolychord.settings import PolyChordSettings
from pypolychord.polychord import run_polychord, run
6 changes: 3 additions & 3 deletions pypolychord/priors.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __call__(self, x):
return self.a * (self.b/self.a) ** x


def forced_indentifiability_transform(x):
def forced_identifiability_transform(x):
N = len(x)
t = numpy.zeros(N)
t[N-1] = x[N-1]**(1./N)
Expand All @@ -37,11 +37,11 @@ def forced_indentifiability_transform(x):

class SortedUniformPrior(UniformPrior):
def __call__(self, x):
t = forced_indentifiability_transform(x)
t = forced_identifiability_transform(x)
return super(SortedUniformPrior, self).__call__(t)


class LogSortedUniformPrior(LogUniformPrior):
def __call__(self, x):
t = forced_indentifiability_transform(x)
t = forced_identifiability_transform(x)
return super(LogSortedUniformPrior, self).__call__(t)
2 changes: 1 addition & 1 deletion src/polychord/feedback.f90
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ subroutine write_opening_statement(settings)
write(stdout_unit,'("")')
write(stdout_unit,'("PolyChord: Next Generation Nested Sampling")')
write(stdout_unit,'("copyright: Will Handley, Mike Hobson & Anthony Lasenby")')
write(stdout_unit,'(" version: 1.22.1")')
write(stdout_unit,'(" version: 1.22.2")')
write(stdout_unit,'(" release: 10th Jan 2024")')
write(stdout_unit,'(" email: [email protected]")')
write(stdout_unit,'("")')
Expand Down
Loading