replace function
(Shortest import: from brian2.utils.stringtools import replace)
- brian2.utils.stringtools.replace(s, substitutions)[source]
Applies a dictionary of substitutions. Simpler than
word_substitute
, it does not attempt to only replace words