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

Incompatibility with Numba #63

Open
PabloMBarral opened this issue May 28, 2024 · 3 comments
Open

Incompatibility with Numba #63

PabloMBarral opened this issue May 28, 2024 · 3 comments

Comments

@PabloMBarral
Copy link

Hi.

The following problem arises

numba.core.errors.NumbaNotImplementedError: none cannot be represented as a NumPy dtype

when I try to run

from psychrochart import PsychroChart

Load default style:

chart_default = PsychroChart.create()

customize anything

chart_default.config.limits.range_temp_c = (15.0, 35.0)
chart_default.config.limits.range_humidity_g_kg = (5, 25)
chart_default.config.saturation.linewidth = 1
chart_default.config.constant_wet_temp.color = "darkblue"

plot

axes = chart_default.plot()
axes.get_figure()

or store on disk

chart_default.save("my-custom-chart.svg")

I've already upgraded Numba & psychrochart to the latest versions.

Regards.-

PS: I'm not quite sure if this is a psychrochart problem or a problem of my setup.

@drmartinrohde
Copy link

I can confirm that I have the same issue. Tried to install older versions of psychrochart, but I always get the same error:

numba.core.errors.NumbaNotImplementedError: none cannot be represented as a NumPy dtype

@AGeissler
Copy link

I can also confirm - any workaround available?

@AGeissler
Copy link

I can also confirm - any workaround available?

... just found one:

import psychrolib

psychrolib.SetUnitSystem(psychrolib.SI)

seems to work, now.

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