From 3c6ffb531e4c2e2c27e87c68384b3e31954d168b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Ferran=20Pousa?= Date: Mon, 15 May 2023 18:28:44 +0200 Subject: [PATCH 1/2] Add numba version warning --- wake_t/utilities/numba.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wake_t/utilities/numba.py b/wake_t/utilities/numba.py index 99596422..89583907 100644 --- a/wake_t/utilities/numba.py +++ b/wake_t/utilities/numba.py @@ -1,7 +1,14 @@ """This module contains custom definitions of the numba decorators.""" import os -from numba import njit +from numba import njit, __version__ as numba_version + + +if numba_version == '0.57.0': + raise RuntimeError( + 'Wake-T is incompatible with numba 0.57.0.\n' + 'Please install either a later or an earlier version.' + ) # Check if the environment variable WAKET_DISABLE_CACHING is set to 1 From 9333f852f2cbd0a976fd8bcad74675cc0e328b30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Ferran=20Pousa?= Date: Mon, 15 May 2023 18:29:45 +0200 Subject: [PATCH 2/2] Bump version number --- wake_t/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wake_t/__init__.py b/wake_t/__init__.py index b1966fd9..a60fb1b5 100644 --- a/wake_t/__init__.py +++ b/wake_t/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.6.0' +__version__ = '0.6.1' from .beamline_elements import (PlasmaStage, PlasmaRamp, ActivePlasmaLens,