amaurea / enlib

5 stars 12 forks source link

Fixed bug in rand_map when checking length of shape. #33

Closed aiolasimone closed 6 years ago

aiolasimone commented 6 years ago

In curvedsky.rand_map(), the len(shape) check fails with previously working and tested script. The current implementation fails due to logic ordering, which worked before with assert(). This small pull request should fix it.