7 import matplotlib.pyplot
as plt
11 elname = [
'neutron',
'h',
'he',
'li',
'be',
'b',
'c',
'n',
'o',
'f',
'ne',
'na',
'mg',
'al',
'si',
'p',
's',
'cl',
'ar',
'k',
'ca',
'sc',
'ti',
'v',
'cr',
'mn',
'fe',
12 'co',
'ni',
'cu',
'zn',
'ga',
'ge',
'as',
'se',
'br',
'kr',
'rb',
'sr',
'y',
'zr',
'nb',
'mo',
'tc',
'ru',
'rh',
'pd',
'ag',
'cd',
'in',
'sn',
'sb',
13 'te',
'i',
'xe',
'cs',
'ba',
'la',
'ce',
'pr',
'nd',
'pm',
'sm',
'eu',
'gd',
'tb',
'dy',
'ho',
'er',
'tm',
'yb',
'lu',
'hf',
'ta',
'w',
're',
'os',
14 'ir',
'pt',
'au',
'hg',
'tl',
'pb',
'bi',
'po',
'at',
'rn',
'fr',
'ra',
'ac',
'th',
'pa',
'u',
'np',
'pu',
'am',
'cm',
'bk',
'cf',
'es',
'fm',
'md',
15 'no',
'lr',
'rf',
'db',
'sg',
'bh',
'hs',
'mt',
'ds',
'rg',
'ub',
'ut',
'uq',
'up',
'uh',
'us',
'uo']
20 path =
"betadecay_supplemental_material.dat"
22 with open(path,
"r")
as f:
26 if len(line.split(
" "))>2:
27 linesplit = line.split(
" ")[1:]
28 linesplit = list(map(
lambda x: x.strip(),linesplit))
31 linesplit = np.array([
"name"]+linesplit)
32 header = linesplit[linesplit!=
""]
35 df = pd.read_csv(path,names=header, comment=
'#',delim_whitespace=
True)
38 for ind, row
in df.iterrows():
41 name = elname[ztmp]+str(atmp)
43 halflive = row[
"T_1/2 [s]"]
44 Etot = row[[
"<E_e> [MeV]",
"<E_nu> [MeV]",
"<E_gamma> [MeV]"]].sum()
45 Enu = row[
"<E_nu> [MeV]"]
47 print(
"Skipped "+str(name)+
" due to large halflife.")
49 print(Etot,Enu,Enu/Etot)
50 out+=name.rjust(5)+
" "*4+
"{:12.6e}".
format(halflive)+
" "+
"{:10.6e}".
format(Etot)+
" "+
"{:10.6e}".
format(Enu)+
"\n"
53 pns[i] = row[
"P"+str(i)+
"n"]
55 out+=
"{:1.4f}".
format(p)+
" "
59 with open(
"marketin.dat",
"w")
as f: