Skip to content

Commit

Permalink
Fix ArrayStore field_desc test (#404)
Browse files Browse the repository at this point in the history
## Description

<!-- Provide a brief description of the PR's purpose here. -->

Oops

## TODO

<!-- Notable points that this PR has either accomplished or will
accomplish. -->

## Questions

<!-- Any concerns or points of confusion? -->

## Status

- [x] I have read the guidelines in

[CONTRIBUTING.md](https://github.com/icaros-usc/pyribs/blob/master/CONTRIBUTING.md)
- [x] I have formatted my code using `yapf`
- [x] I have tested my code by running `pytest`
- [x] I have linted my code with `pylint`
- [x] I have added a one-line description of my change to the changelog
in
      `HISTORY.md`
- [x] This PR is ready to go
  • Loading branch information
btjanaka committed Nov 6, 2023
1 parent e0aef64 commit a99a78f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- **Backwards-incompatible:** Rename `measure_*` columns to `measures_*` in
`as_pandas` ({pr}`396`)
- Add ArrayStore data structure ({pr}`395`, {pr}`398`, {pr}`400`, {pr}`402`,
{pr}`403`)
{pr}`403`, {pr}`404`)
- Add GradientOperatorEmitter to support OMG-MEGA and OG-MAP-Elites ({pr}`348`)

#### Improvements
Expand Down
6 changes: 4 additions & 2 deletions tests/archives/array_store_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ def test_init(shape):
assert len(store.occupied_list) == 0
assert store.field_desc == {
"objective": (shape[0], np.float32),
"measures": ((shape[1],), np.float32),
"solution": ((shape[2],), np.float32),
"measures": (
(shape[1],) if isinstance(shape[1], int) else shape[1], np.float32),
"solution": (
(shape[2],) if isinstance(shape[2], int) else shape[2], np.float32),
}


Expand Down

0 comments on commit a99a78f

Please sign in to comment.