dekamps / miind

http://miind.sf.net
MIT License
13 stars 7 forks source link

Error when running xml: key error "algorithm name" #21

Closed lepmik closed 5 years ago

lepmik commented 7 years ago
  File "/home/mikkel/apps/miind/python/miind.py", line 28, in <module>
    directories.add_executable(dirname, filename, modname)
  File "/home/mikkel/apps/miind/python/directories.py", line 137, in add_executable
    create_cpp_file(xmlfile, dirpath, progname, modname)
  File "/home/mikkel/apps/miind/python/directories.py", line 99, in create_cpp_file
    codegen.generate_outputfile(fin,fout)
  File "/home/mikkel/apps/miind/python/codegen.py", line 117, in generate_outputfile
    nodes.parse_nodes(node_list,weighttype,outfile)
  File "/home/mikkel/apps/miind/python/nodes.py", line 26, in parse_nodes
    s = parse_node(node,weighttype,i)
  File "/home/mikkel/apps/miind/python/nodes.py", line 15, in parse_node
    s += algorithms.ALGORITHM_NAMES[node.attrib['algorithm']] + ','
KeyError: 'E'
dekamps commented 7 years ago

There have been changes to the XML. I will correct your XML file.


From: Mikkel Elle Lepperød notifications@github.com Sent: 10 October 2017 21:21:22 To: dekamps/miind Cc: Subscribed Subject: [dekamps/miind] Error when running xml: key error "algorithm name" (#21)

File "/home/mikkel/apps/miind/python/miind.py", line 28, in directories.add_executable(dirname, filename, modname) File "/home/mikkel/apps/miind/python/directories.py", line 137, in add_executable create_cpp_file(xmlfile, dirpath, progname, modname) File "/home/mikkel/apps/miind/python/directories.py", line 99, in create_cpp_file codegen.generate_outputfile(fin,fout) File "/home/mikkel/apps/miind/python/codegen.py", line 117, in generate_outputfile nodes.parse_nodes(node_list,weighttype,outfile) File "/home/mikkel/apps/miind/python/nodes.py", line 26, in parse_nodes s = parse_node(node,weighttype,i) File "/home/mikkel/apps/miind/python/nodes.py", line 15, in parse_node s += algorithms.ALGORITHM_NAMES[node.attrib['algorithm']] + ',' KeyError: 'E'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/dekamps/miind/issues/21, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEk-Y6q-Q4TWO7knLM7olm6JuJafUTXwks5sq9HCgaJpZM4P0hOR.