summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/nucleardata
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-01-08 00:03:11 +0000
committerKarl Berry <karl@freefriends.org>2016-01-08 00:03:11 +0000
commite6cd0f91db8da2a477425aeeac70568b3702c6c0 (patch)
tree416f793db33a7a2a0e40e0e339b6bbfa8f82c76f /Master/texmf-dist/source/latex/nucleardata
parent42af20fa9b4836de5fd19cb86d1ac6cc125b8480 (diff)
nucleardata (7jan16)
git-svn-id: svn://tug.org/texlive/trunk@39306 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/nucleardata')
-rw-r--r--Master/texmf-dist/source/latex/nucleardata/nucleardata.dtx23
-rw-r--r--Master/texmf-dist/source/latex/nucleardata/nucleardata.ins12
2 files changed, 21 insertions, 14 deletions
diff --git a/Master/texmf-dist/source/latex/nucleardata/nucleardata.dtx b/Master/texmf-dist/source/latex/nucleardata/nucleardata.dtx
index ff41d194079..ac26399822d 100644
--- a/Master/texmf-dist/source/latex/nucleardata/nucleardata.dtx
+++ b/Master/texmf-dist/source/latex/nucleardata/nucleardata.dtx
@@ -48,7 +48,7 @@ See http://www.latex-project.org/lppl.txt
----------------------------------------------------------------
\endpreamble
\postamble
-Copyright (C) 2015 by Bill Nettles <bnettles@uu.edu>
+Copyright (C) 2015-2016 by Bill Nettles <bnettles@uu.edu>
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License (LPPL), either
@@ -65,7 +65,9 @@ and the derived files nucleardata.ins,
nucleardata.pdf,
nucleardata.sty,
elementlist.csv,
- massdata.csv
+ massdata.csv,
+ nuccommandtest.tex,
+ nuccommandtext.pdf
\endpostamble
\usedir{./}
\generate{
@@ -95,7 +97,7 @@ and the derived files nucleardata.ins,
%
%<*package>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{nucleardata}[2015/11/18 v1.01 LaTeX package for providing basic nuclear properties to documents efficiently]
+\ProvidesPackage{nucleardata}[2015/01/06 v1.01b LaTeX package for providing basic nuclear properties to documents efficiently]
\RequirePackage{pythontex}
\RequirePackage{siunitx}
%</package>
@@ -132,7 +134,9 @@ and the derived files nucleardata.ins,
%
%\maketitle
%
-%\changes{v1.01}{2015/11/18}{getIsotopes returns an integer list; getHalfLifeValue returns an unformatted float}
+%\changes{v1.00}{2015/11/15}{Initial Public Release}
+%\changes{v1.01}{2015/11/18}{getIsotopes() returns an integer list; getHalfLifeValue returns a float}
+%\changes{v1.01b}{2016/01/06}{getIsotopes() bug fix; calls to timeenergy(), time_dict, units_dict bug fixes}
%
% The |nucleardata| package provides a method for quickly accessing information about atomic nuclides (isotopes of elements) by referring to the chemical symbol and mass number (A) or to the atomic number (Z) and mass number (A). This information can be inserted and typeset without the user having to search an outside source. The information available in the current version includes chemical symbol or name given Z, Z given the chemical symbol or name, atomic mass, nuclear mass, Q-values for radioactive decay, half-life of ground states, binding energy, mass excess, and list of known isotopes of an element. \par
%~
@@ -348,7 +352,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]
@@ -432,7 +436,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':
@@ -465,7 +469,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':
@@ -583,8 +587,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()]
@@ -796,7 +799,7 @@ nuc=Nucdata()
%\begin{macro}{\nucisotopes}
% \begin{macrocode}
-\newcommand{\nucisotopes}[1]{\py{nuc.getIsotopes('#1')}}
+\newcommand{\nucisotopes}[1]{\py{str(nuc.getIsotopes('#1'))[1:-1]}}
% \end{macrocode}
%\end{macro}
diff --git a/Master/texmf-dist/source/latex/nucleardata/nucleardata.ins b/Master/texmf-dist/source/latex/nucleardata/nucleardata.ins
index d70b7146d0d..8fd793b7b11 100644
--- a/Master/texmf-dist/source/latex/nucleardata/nucleardata.ins
+++ b/Master/texmf-dist/source/latex/nucleardata/nucleardata.ins
@@ -33,7 +33,7 @@ See http://www.latex-project.org/lppl.txt
----------------------------------------------------------------
\endpreamble
\postamble
-Copyright (C) 2015 by Bill Nettles <bnettles@uu.edu>
+Copyright (C) 2015-2016 by Bill Nettles <bnettles@uu.edu>
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License (LPPL), either
@@ -50,14 +50,16 @@ and the derived files nucleardata.ins,
nucleardata.pdf,
nucleardata.sty,
elementlist.csv,
- massdata.csv
+ massdata.csv,
+ nuccommandtest.tex,
+ nuccommandtext.pdf
\endpostamble
\usedir{./}
\generate{
\file{\jobname.sty}{\from{\jobname.dtx}{package}}
}
\endbatchfile
-%% Copyright (C) 2015 by Bill Nettles <bnettles@uu.edu>
+%% Copyright (C) 2015-2016 by Bill Nettles <bnettles@uu.edu>
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License (LPPL), either
@@ -74,6 +76,8 @@ and the derived files nucleardata.ins,
%% nucleardata.pdf,
%% nucleardata.sty,
%% elementlist.csv,
-%% massdata.csv
+%% massdata.csv,
+%% nuccommandtest.tex,
+%% nuccommandtext.pdf
%%
%% End of file `nucleardata.ins'.