vrtulka23/scinumtools

Fix parsing

vrtulka23 opened this issue · 1 comments

dip = DIP()
dip.from_file('settings.dip')
dip.parse()
Traceback (most recent call last):
File "", line 1, in
File "/opt/homebrew/lib/python3.11/site-packages/scinumtools/dip/dip.py", line 130, in parse
node = self._determine_node(line)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/scinumtools/dip/dip.py", line 242, in _determine_node
raise Exception(f"Incorrect format: {code}")
^^^^
NameError: name 'code' is not defined. Did you mean: 'node'?

fixed in the newest commit