SBFRF / pyDIWASP

DIWASP directional wave data processing package for python
https://github.com/metocean/diwasp
GNU General Public License v3.0
15 stars 9 forks source link

Pass integer to linspace #5

Closed dnowacki-usgs closed 2 years ago

dnowacki-usgs commented 3 years ago

Currently the code multiplies and then divides by 2π when generating the direction array. This unnecessary operation casts the result to float, which raises an error in np.linspace. Removing the multiply/divide keeps the original dtype from EP['dres'] which should be int.