Skip to content

Commit

Permalink
Use raw string for regex
Browse files Browse the repository at this point in the history
  • Loading branch information
mstimberg committed Mar 22, 2024
1 parent 611f716 commit dcedd70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brian2cuda/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit dcedd70

Please sign in to comment.