icaros-usc / pyribs

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

Make ArrayStore fields be valid identifiers #398

Closed btjanaka closed 8 months ago

btjanaka commented 8 months ago

Description

Although we mostly use the field names as dict keys, which can take on any value, it may be useful in the future to be able to use fields as identifiers. For example, if we are using kwargs, it makes sense to be able to pass in a field name as f(field1=[...]), which is not possible if field1 is an invalid identifier like field foo (note the space).

TODO

Questions

Status