perfectly-balanced / PathBench

Benchmarking Platform for Classic and Learned Path Planning Algorithms.
Other
91 stars 18 forks source link

nptyping version downgrade to avoid code refactoring #76

Open h2jaafar opened 1 year ago

h2jaafar commented 1 year ago

Currently, when new users pull the repository and create a venv, the requirements.txt file will install nptyping v2.0+, which seems to cause the following issue:

raise InvalidArgumentsError(
nptyping.error.InvalidArgumentsError: Unexpected argument '(typing.Any, typing.Any, typing.Any)', expecting Shape[<ShapeExpression>] or Literal[<ShapeExpression>] or typing.Any.

The syntax seems to have changed. This problem is dotted throughout the code.

A temporary fix is to simply peg the version of nptyping to 1.4.4, and avoid this problem at the moment.

h2jaafar commented 1 year ago

@uncobruce