diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/nucleardata/nucleardata.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/nucleardata/nucleardata.sty | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/nucleardata/nucleardata.sty b/Master/texmf-dist/tex/latex/nucleardata/nucleardata.sty index 151bb32f2cb..7f02172aa5b 100644 --- a/Master/texmf-dist/tex/latex/nucleardata/nucleardata.sty +++ b/Master/texmf-dist/tex/latex/nucleardata/nucleardata.sty @@ -15,11 +15,11 @@ %% %% See http://www.latex-project.org/lppl.txt %% -%% Version Date: 10/18/2016 +%% Version Date: 04/04/2018 %% %% ---------------------------------------------------------------- \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{nucleardata}[2016/10/18 v1.01d LaTeX package for providing basic nuclear properties to documents efficiently] +\ProvidesPackage{nucleardata}[2018/04/04 v1.1 LaTeX package for providing basic nuclear properties to documents efficiently] \RequirePackage{pythontex} \RequirePackage{siunitx} @@ -49,6 +49,7 @@ class Nucdata(object): 'Mev':'\si{\mega\electronvolt}', 'kev':'\si{\kilo\electronvolt}', 'us':'\si{\micro\second}', + 'ns':'\si{\\nano\second}', 'y':'\si{\ensuremath{\mathrm{yr}}}', 'yr':'\si{\ensuremath{\mathrm{yr}}}', 'm':'\si{\min}', @@ -59,8 +60,9 @@ class Nucdata(object): 'day':'\si{\day}', 's':'\si{\second}', 'ms':'\si{\ms}', - 'ps':'\si{\ps}', - 'ns':'\si{\\ns}', + 'ps':'\si{\pico\second}', + 'fs':'\si{\\femto\second}', + 'as':'\si{\\atto\second}', 'My':'\si{\ensuremath{\mathrm{My}}}', 'Gy':'\si{\ensuremath{\mathrm{Gy}}}' } @@ -80,6 +82,8 @@ class Nucdata(object): "us":365.25*24*3600*1e6, "ns":365.25*24*3600*1e9, "ps":365.25*24*3600*1e12, + "fs":365.25*24*3600*1e15, + "as":365.25*24*3600*1e18, "My":1e-6, "Gy":1e-9} @@ -100,13 +104,13 @@ class Nucdata(object): except: res=[v for v in nucleardata if v.get('SYM').strip().upper() == EL.upper() and v.get('A') == A] else: - res=[v for v in nucleardata if int(v.get('Z')) == EL and v.get('A') == A] + res=[v for v in nucleardata if int(v.get('Z')) == EL and v.get('A') == A] return res[0].get('mass') def getNuclearMass_u(self,EL,A): try: EL = int(eval(str(EL))) - res=[v for v in nucleardata if int(v.get('Z'))== EL and v.get('A') == A] + res=[v for v in nucleardata if int(v.get('Z'))== EL and v.get('A') == A] except: res=[v for v in nucleardata if v.get('SYM').strip().upper()== EL.upper() and v.get('A') == A] @@ -316,7 +320,7 @@ class Nucdata(object): else: res=[v for v in nucleardata if int(v.get('Z'))== EL] - isotopes=[] + isotopes=[] for v in res: isotopes.append(int(v.get('A'))) return isotopes @@ -464,7 +468,7 @@ nuc=Nucdata() \newcommand{\nucreactionqkev}[9][3]{\py{round(nuc.getReaction_kev('#2',#3,'#4',#5,'#6',#7,'#8',#9),#1)}} \endinput -%% Copyright (C) 2015-2016 by Bill Nettles <bnettles@uu.edu> +%% Copyright (C) 2015-2018 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 @@ -485,6 +489,6 @@ nuc=Nucdata() %% nuccommandtest.tex, %% nuccommandtext.pdf %% -%% Version Date: 10/18/2016 +%% Version Date: 04/04/2018 %% %% End of file `nucleardata.sty'. |