Skip to content

error fetching atom #11

Description

@ronandrevon
atom.Atom('H',refresh_cache=True)
     59     return [
     60         {
     61             **{
     62                 "energy": remove_annotations(state["Level (Ry)"]) + " Ry",
     63                 "term": print_term(state["Term"], J=state["J"]),
     64                 "configuration": state["Configuration"],
     65                 "g": None if state["g"] == "" else float(state["g"]),
     66             },
     67             **(
     68                 {"n": int(monovalent.match(state["Configuration"])["n"])}
     69                 if monovalent.match(state["Configuration"])
     70                 else {}
     71             ),
     72         }
     73 
     74         for state in data
---> 75         if print_term(state["Term"], J=state["J"])
     76     ]

KeyError: 'Term'

It seems that the parameter land_out=off results in invalid column settings for the nist website which breaks the fetching procedure.
Replacing land_out=on seems to fix it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions