Skip to content

Commit eaa1509

Browse files
committed
ipfx/bin/make_stimulus_ontology.py: Avoid unknown escape sequence
This fixes the warning: /home/thomas/devel/ipfx/ipfx/bin/make_stimulus_ontology.py:26: DeprecationWarning: invalid escape sequence \d m = re.search("(.*)\d{6}$", scode)
1 parent 3f2f3c3 commit eaa1509

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipfx/bin/make_stimulus_ontology.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def make_stimulus_ontology(stims):
2323
scode = stim['stimulus_code']
2424

2525
# code tags
26-
m = re.search("(.*)\d{6}$", scode)
26+
m = re.search(r"(.*)\d{6}$", scode)
2727
if m:
2828
code_name, = m.groups()
2929
tags.add((CODE, code_name, scode))

0 commit comments

Comments
 (0)