mirror of
https://github.com/gwm17/spspy.git
synced 2024-11-22 18:18:52 -05:00
Fix #5
This commit is contained in:
parent
106e8ea70c
commit
ae5724afbc
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user