Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Treat arrays with empty shapes as numbers
Calling `tolist()` on these types of arrays yields a single number rather than a list. This would cause errors with the yaml dumper since it was expected a list. Instead, we should just follow the route for single numbers and call `.item()` instead. This fixes the issue. Signed-off-by: Patrick Avery <[email protected]>
- Loading branch information