Skip to content
Draft
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
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ include requirements.txt
include gw_requirements.txt
include mcmc_requirements.txt
include optional_requirements.txt
include sampler_requirements.txt
include bilby/_version.py
recursive-include test *.py *.prior
13 changes: 13 additions & 0 deletions bilby/core/sampler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,19 @@ def valid_keys(self):
keys = set(self._samplers.keys())
return iter(keys.union({k.replace("bilby.", "") for k in keys}))

def native_keys(self):
"""Iterator of native sampler names (without the `bilby.` prefix).

This excludes any samplers that are only available through plugins.
"""
return iter(
{
k.replace("bilby.", "")
for k in self._samplers.keys()
if k.startswith("bilby.")
}
)

def __getitem__(self, key):
if key in self._samplers:
return self._samplers[key]
Expand Down
260 changes: 0 additions & 260 deletions bilby/core/sampler/cpnest.py

This file was deleted.

Loading
Loading