icaros-usc / pyribs

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

Refactor visualize module into multiple files #357

Closed btjanaka closed 1 year ago

btjanaka commented 1 year ago

Description

The visualize module has grown to ~1000 lines, and we expect it to get longer as we introduce further functionality. This length is also making it difficult to run tools like Pylint, which consume more time with file size. Thus, this PR breaks the visualize module into multiple smaller files.

The best way to do this while preserving history is to create multiple branches where we make copies of visualize.py and then merge the copies. This has the drawback of adding many commits to master as we cannot squash the commits (that would destroy the history). For more information on this procedure of splitting files while maintaining history, see here.

In addition to the commits which copy visualize.py, this PR also adds a commit that tidies up the copies by removing the duplicated code.

TODO

Questions

Status