MCPcopy Create free account
hub / github.com/numpy/numpy / conv

Function conv

numpy/f2py/_src_pyf.py:101–109  ·  view source on GitHub ↗
(astr)

Source from the content-addressed store, hash-verified

99
100item_re = re.compile(r"\A\\(?P<index>\d+)\Z")
101def conv(astr):
102 b = astr.split(',')
103 l = [x.strip() for x in b]
104 for i in range(len(l)):
105 m = item_re.match(l[i])
106 if m:
107 j = int(m.group('index'))
108 l[i] = l[j]
109 return ','.join(l)
110
111def unique_key(adict):
112 """ Obtain a unique key given a dictionary."""

Callers 5

find_repl_patternsFunction · 0.70
listreplFunction · 0.70
test_shuffleMethod · 0.50
test_shuffleMethod · 0.50
test_shuffleMethod · 0.50

Calls 3

stripMethod · 0.80
splitMethod · 0.45
joinMethod · 0.45

Tested by 3

test_shuffleMethod · 0.40
test_shuffleMethod · 0.40
test_shuffleMethod · 0.40