You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "./Environment/BaseEnv.py", line 1210, in seed
super().seed(seed_init)
File "./Space/RandomObject.py", line 133, in seed
self.space_prng.seed(seed=self.seed_used)
File "mtrand.pyx", line 245, in numpy.random.mtrand.RandomState.seed
File "_mt19937.pyx", line 166, in numpy.random._mt19937.MT19937._legacy_seeding
File "_mt19937.pyx", line 180, in numpy.random._mt19937.MT19937._legacy_seeding
ValueError: Seed must be between 0 and 2**32 - 1
Expected output
Nothing
The text was updated successfully, but these errors were encountered:
This is because the seed here is too large for grid2op. It would be ok for numpy random but grid2op cast it to int32 which causes this number to be negative and unsuitable for seeding.
Environment
1.7.1
ubuntu
Bug description
env.seed(2735729614)
will raise an error.How to reproduce
Command line
# command line used if any
Code snippet
Current output
Expected output
Nothing
The text was updated successfully, but these errors were encountered: