icaros-usc / pyribs

A bare-bones Python library for quality diversity optimization.
https://pyribs.org
MIT License
208 stars 33 forks source link

Reset thresholds when calling clear #260

Closed btjanaka closed 1 year ago

btjanaka commented 1 year ago

Description

We encountered a bug where after calling clear(), adding to the archive did not result in the correct statuses and values. This happens because we did not reset the thresholds when calling clear(), and since archive addition is based on crossing the thresholds, nothing was being added to the archive. This PR clears the thresholds to resolve this bug.

TODO

Questions

Status