Skip to content

Set new reporters on restored species object#288

Merged
CodeReclaimers merged 1 commit into
CodeReclaimers:masterfrom
ThomasGjerde:fix-restored-reporters
Nov 9, 2025
Merged

Set new reporters on restored species object#288
CodeReclaimers merged 1 commit into
CodeReclaimers:masterfrom
ThomasGjerde:fix-restored-reporters

Conversation

@ThomasGjerde

@ThomasGjerde ThomasGjerde commented Nov 9, 2025

Copy link
Copy Markdown
Contributor

When restoring a population from a checkpoint, the ReporterSet is reinitialized on the reproduction object, but restored from the checkpoint on the species object. This can cause unexpected behavior.

This PR sets the newly initialized ReporterSet on the species object after it's been assigned by the initial state.

@sonarqubecloud

sonarqubecloud Bot commented Nov 9, 2025

Copy link
Copy Markdown

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 97.709% (+0.05%) from 97.655%
when pulling e0afd3a on ThomasGjerde:fix-restored-reporters
into 9d3957b on CodeReclaimers:master.

@CodeReclaimers CodeReclaimers merged commit 258cc6c into CodeReclaimers:master Nov 9, 2025
17 checks passed
@CodeReclaimers

Copy link
Copy Markdown
Owner

Thanks for the pull request!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants