Skip to content

Commit

Permalink
Merge pull request #979 from rhayes777/feature/test_mode_samples_weig…
Browse files Browse the repository at this point in the history
…ht_threshold

Feature/test mode samples weight threshold
  • Loading branch information
Jammy2211 authored Mar 22, 2024
2 parents 6528a2c + 4a96585 commit fa923f7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 3 additions & 0 deletions autofit/non_linear/search/abstract_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,9 @@ def perform_update(

samples_weight_threshold = conf.instance["output"]["samples_weight_threshold"]

if os.environ.get("PYAUTOFIT_TEST_MODE") == "1":
samples_weight_threshold = None

if samples_weight_threshold is not None:
samples_for_csv = samples_for_csv.samples_above_weight_threshold_from(
weight_threshold=samples_weight_threshold
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def _fit(self, model: AbstractPriorModel, analysis):
"Resuming PySwarms non-linear search (previous samples found)."
)

except (FileNotFoundError, TypeError):
except (FileNotFoundError, TypeError, AttributeError):

unit_parameter_lists, parameter_lists, log_posterior_list = self.initializer.samples_from_model(
total_points=self.config_dict_search["n_particles"],
Expand Down
8 changes: 3 additions & 5 deletions docs/api/plot.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ Plotters
:template: custom-class-template.rst
:recursive:

DynestyPlotter
UltraNestPlotter
EmceePlotter
ZeusPlotter
PySwarmsPlotter
NestPlotter
MCMCPlotter
OptimizePlotter

0 comments on commit fa923f7

Please # to comment.