Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The function in the library tried to use Numba to speed up the computation, but received an array of type numpy.ma.MaskedArray that is not supported by Numba. #221

Closed
joyyy1407 opened this issue Nov 7, 2023 · 2 comments

Comments

@joyyy1407
Copy link

Hello, thank you very much for providing this method for you to learn, but I have the following problem when running the pet_sla_and_adt, and I have tried multiple methods and still not solved, so I came to you for help:

import os
os.environ['NUMBA_DISABLE_JIT'] = '1'
from py_eddy_tracker.dataset.grid import GridDataset

a_adt, c_adt = g.eddy_identification("adt", "ugos", "vgos", date, 0.002)

a_sla, c_sla = g.eddy_identification("sla", "ugosa", "vgosa", date, 0.002)

NumbaTypeError: Unsupported array type: numpy.ma.MaskedArray.

@AntSimi
Copy link
Owner

AntSimi commented Dec 12, 2023

Numba version is too recent for last version of py eddy tracker

@reillyja
Copy link

Using pip install numba==0.55.2 fixed this error for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants