Skip to content

RuntimeWarning: nopython is set for njit and is ignored #3

@fishbacp

Description

@fishbacp

I'm using python 3.9 on a Mac running OSX 11.6.1. I installed PyIF okay and attempted a simple example, such as the one you provided:

from PyIF import te_compute as te
import numpy as np
rand = np.random.RandomState(seed=23)
X = rand.randn(1000, 1).flatten()
Y = rand.randn(1000, 1).flatten()

TE = te.te_compute(X,Y, k=1, embedding=1, safetyCheck=True, GPU=False)
print(TE)

The resulting value was -0.0378384954814468. However, it was accompanied by a run-time warning:

Warning (from warnings module):
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/core/decorators.py", line 255
    warnings.warn('nopython is set for njit and is ignored', RuntimeWarning)
RuntimeWarning: nopython is set for njit and is ignored

The result obtained using the PyInform package was 0.005256077374203942

Also: Which logarithm base is used in your calculations?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions