This pull request includes significant enhancements to the simulation analysis and data collection processes, along with improvements to the logging system and user interface for viewing simulation statistics. The most important changes include updates to the SimulationAnalyzer class, the addition of new metrics in the Collector class, and the enhancement of the Database class with new methods for logging competitive interactions.
Analysis Enhancements:
analysis.py: Updated calculate_survival_rates to track agent survival over time and added new methods for analyzing resource distribution and competitive interactions.
analysis.py: Modified generate_report to use double quotes consistently and updated the HTML report generation.
Data Collection Improvements:
collector.py: Added new metrics such as competitive_interactions, initial_agent_count, and agent resource history tracking. [1][2]
collector.py: Enhanced the collect method to include new metrics like survival rates and resource inequality.
collector.py: Added methods for calculating average resource accumulation and resource inequality.
Database Enhancements:
database.py: Added log_competitive_interaction method and improved buffer flushing with flush_all_buffers.
User Interface and Logging:
main.py: Enhanced the statistics viewing window with tabbed interfaces and added plots for survival rates, resource distribution, and competitive interactions.
simulation.py: Improved logging setup by removing timestamps from log file names and ensuring detailed logging format.
This pull request includes significant enhancements to the simulation analysis and data collection processes, along with improvements to the logging system and user interface for viewing simulation statistics. The most important changes include updates to the
SimulationAnalyzer
class, the addition of new metrics in theCollector
class, and the enhancement of theDatabase
class with new methods for logging competitive interactions.Analysis Enhancements:
analysis.py
: Updatedcalculate_survival_rates
to track agent survival over time and added new methods for analyzing resource distribution and competitive interactions.analysis.py
: Modifiedgenerate_report
to use double quotes consistently and updated the HTML report generation.Data Collection Improvements:
collector.py
: Added new metrics such ascompetitive_interactions
,initial_agent_count
, and agent resource history tracking. [1] [2]collector.py
: Enhanced thecollect
method to include new metrics like survival rates and resource inequality.collector.py
: Added methods for calculating average resource accumulation and resource inequality.Database Enhancements:
database.py
: Addedlog_competitive_interaction
method and improved buffer flushing withflush_all_buffers
.User Interface and Logging:
main.py
: Enhanced the statistics viewing window with tabbed interfaces and added plots for survival rates, resource distribution, and competitive interactions.simulation.py
: Improved logging setup by removing timestamps from log file names and ensuring detailed logging format.