CharJon/GeCO

networkx decorator changed

Closed this issue · 2 comments

Networkx decorator changed. This causes
`networkx.exception.NetworkXError: index -1 not a parameter index and this function doesn't have args

../../miniconda3/envs/geco2/lib/python3.8/site-packages/networkx/utils/decorators.py:1029: NetworkXError`
and needs to be fixed.

Instead of using the position of the seed parameter like @py_random_state(-1) we need to use its name e.g. @py_random_state("seed")

Done