Skip to content

Commit

Permalink
Update pocomc name
Browse files Browse the repository at this point in the history
  • Loading branch information
andreicuceu committed Jun 10, 2024
1 parent 753b192 commit d9f66a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vega/samplers/pocomc.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self, pocomc_setup, limits, log_lik_func):
def get_sampler_settings(self, sampler_config, num_params, num_derived):
# Initialize the pocomc settings
self.precondition = sampler_config.getboolean('precondition', True)
self.dynamic = sampler_config.getboolean('dynamic', True)
self.dynamic = sampler_config.getboolean('dynamic', False)
self.n_effective = sampler_config.getint('n_effective', 512)
self.n_active = sampler_config.getint('n_active', 256)
self.n_total = sampler_config.getint('n_total', 1024)
Expand Down
2 changes: 1 addition & 1 deletion vega/vega_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def __init__(self, main_path):
self.run_sampler = self.main_config['control'].getboolean('run_sampler', False)
self.sampler = self.main_config['control'].get('sampler', None)
if self.run_sampler:
if self.sampler not in ['Polychord', 'Pocomc']:
if self.sampler not in ['Polychord', 'PocoMC']:
raise ValueError('Sampler not recognized. Please use Polychord or PocoMC.')
if self.sampler not in self.main_config:
raise RuntimeError('run_sampler called, but no sampler config found')
Expand Down

0 comments on commit d9f66a0

Please sign in to comment.