Issue with nndc url in NuclearData.py
Closed this issue · 0 comments
BryanKelly13 commented
When trying to input a reaction, the code leaves the follow error message:
File "/home/bkelly/Programs/spspy/spspy/data/NuclearData.py", line 59, in get_excitations
rows = tables[2].xpath("./tr")
IndexError: list index out of range
This is fixed by changing: site = req.get(f"https://www.nndc.bnl.gov/**nudat2**/getdatasetClassic.jsp?nucleus={symbol}&unc=nds") --> site = req.get(f"https://www.nndc.bnl.gov/**nudat3**/getdatasetClassic.jsp?nucleus={symbol}&unc=nds")
Why must they change things