From dcedd7066a1a09d672ee3193a5bca512d52c046a Mon Sep 17 00:00:00 2001 From: Marcel Stimberg Date: Thu, 21 Mar 2024 15:17:44 +0100 Subject: [PATCH] Use raw string for regex --- brian2cuda/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brian2cuda/device.py b/brian2cuda/device.py index d34f7e4..97c87c0 100644 --- a/brian2cuda/device.py +++ b/brian2cuda/device.py @@ -1995,7 +1995,7 @@ def prepare_codeobj_code_for_rng(codeobj): # If the codeobjec does not need curand states for poisson, check if it needs # them for binomial calls if not codeobj.needs_curand_states: - match = re.search('_binomial\w*\(const int vectorisation_idx\)', codeobj.code.cu_file) + match = re.search(r'_binomial\w*\(const int vectorisation_idx\)', codeobj.code.cu_file) if match is not None: codeobj.needs_curand_states = True