opto.trace.utils.parse_eqs_to_dict

opto.trace.utils.parse_eqs_to_dict#

parse_eqs_to_dict(text)[source]#

Parse the text of equations into a dictionary

Example

x0 = 1 x1=2 x2=`2` x3= def fun():n print(‘hello’)n abc_test1=test

would be parsed into

{‘x0’: ‘1’, ‘x1’: ‘2’, ‘x2’: ‘2’, ‘x3’: “def fun():nprint(‘hello’)”, ‘abc_test1’: ‘test’}