PlotConfig.py
Configuration reader for the live plotting system.
-
class PlotConfig.PlotConfig(filename: str)[source]
Reads experiment config from an INI file for use by the plotting scripts.
-
__init__(filename: str)[source]
Load config from the given INI file path.
-
get_desired_frequency() → int[source]
Return the target frequency in Hz.
-
get_diversity_measure() → str[source]
Return the name of the diversity measure.
-
get_plots_directory() → Path[source]
Return the directory path for saved plots.
-
get_population_size() → int[source]
Return the population size.
-
get_save_plots() → bool[source]
Return whether plots should be saved to disk.
-
get_transfer_interval() → int[source]
Return the migration transfer interval in generations.
-
is_pulse_count() → bool[source]
Return whether pulse-count fitness is used.
-
is_tone_discriminator() → bool[source]
Return whether tone-discriminator mode is enabled.
-
uses_init_existing_population() → bool[source]
Return whether the run starts from an existing population.
-
using_transfer_interval() → bool[source]
Return whether a positive transfer interval is configured.
-
PlotConfig.save_plot_config(file_path: Path, *, pop_sz: int, is_pulse_count: bool, is_td: bool, desired_freq: int, transfer_interval: int, diversity_measure: str, save_plots: bool, plots_dir: str, uses_init_existing_population: bool) → None[source]
Write experiment configuration to an INI file at file_path.