azogue / psychrochart

A Python 3 library to make psychrometric charts and overlay information on them.
MIT License
99 stars 26 forks source link

Incompatibility with Numba #63

Open PabloMBarral opened 1 month ago

PabloMBarral commented 1 month ago

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 commented 3 weeks ago

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