summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/nucleardata/nucleardata.pytxcode
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/nucleardata/nucleardata.pytxcode')
-rw-r--r--Master/texmf-dist/tex/latex/nucleardata/nucleardata.pytxcode9
1 files changed, 4 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/nucleardata/nucleardata.pytxcode b/Master/texmf-dist/tex/latex/nucleardata/nucleardata.pytxcode
index 8febc57a607..29f15e528d7 100644
--- a/Master/texmf-dist/tex/latex/nucleardata/nucleardata.pytxcode
+++ b/Master/texmf-dist/tex/latex/nucleardata/nucleardata.pytxcode
@@ -58,7 +58,7 @@ class Nucdata(object):
"Gy":1e-9}
def timeenergy(self,ene):
- return hbarev*0.69315/ene/time_dict.get("s")
+ return hbarev*0.69315/ene/self.time_dict.get("s")
def getNuclide(self,EL,A):
res=[v for v in nucleardata if v.get('SYM').strip().upper()== EL.upper() and v.get('A') == A]
@@ -142,7 +142,7 @@ class Nucdata(object):
unit = value[1].strip()
if newunit: # user wants to change the unit
if unit in ['ev','kev','mev']:
- number=timeenergy(number)
+ number=self.timeenergy(number)
if unit=='kev':
number=number/1.e3
elif unit=='mev':
@@ -175,7 +175,7 @@ class Nucdata(object):
unit = value[1].strip()
if newunit: # user wants to change the unit
if unit in ['ev','kev','mev']:
- number=timeenergy(number)
+ number=self.timeenergy(number)
if unit=='kev':
number=number/1.e3
elif unit=='mev':
@@ -293,8 +293,7 @@ class Nucdata(object):
isotopes=[]
for v in res:
isotopes.append(int(v.get('A')))
- isostring=str(isotopes)[1:-1]
- return isostring
+ return isotopes
def getZ(self,name):
res=[v for v in elementdata if v.get('SYM').strip().upper()== name.upper() or v.get('NAME').strip().upper()== name.upper()]