Skip to content

Commit

Permalink
BUG: fix add external reparameterisations
Browse files Browse the repository at this point in the history
  • Loading branch information
mj-will committed Sep 26, 2024
1 parent cd94fb9 commit bf38fb0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nessai/reparameterisations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def add_external_reparameterisations(self, group):
entry_points = get_entry_points(group)
for ep in entry_points.values():
reparam = ep.load()
if reparam is not isinstance(KnownReparameterisation):
if not isinstance(reparam, KnownReparameterisation):
raise RuntimeError(
f"Invalid external reparameterisation: {reparam}"
)
Expand Down Expand Up @@ -230,7 +230,6 @@ def add_external_reparameterisations(self, group):
None, NullReparameterisation
)


default_reparameterisations.add_external_reparameterisations(
"nessai.reparameterisations"
)
Expand Down

0 comments on commit bf38fb0

Please sign in to comment.