1
0
Fork 0
mirror of https://github.com/gwm17/spspy.git synced 2024-11-22 18:18:52 -05:00
This commit is contained in:
Gordon McCann 2023-08-04 08:35:57 -04:00
parent 106e8ea70c
commit ae5724afbc

View File

@ -53,7 +53,7 @@ def get_excitations(Z: int, A: int) -> list[float]:
levels = [] levels = []
text = '' text = ''
symbol = global_nuclear_data.get_data(Z, A).isotopicSymbol symbol = global_nuclear_data.get_data(Z, A).isotopicSymbol
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")
contents = xhtml.fromstring(site.content) contents = xhtml.fromstring(site.content)
tables = contents.xpath("//table") tables = contents.xpath("//table")
rows = tables[2].xpath("./tr") rows = tables[2].xpath("./tr")