Commit 38bc67cd authored by Matheus Müller's avatar Matheus Müller
Browse files

Alpha -> Agora clicando em calculate o programa atualiza a distribuicao de...

Alpha -> Agora clicando em calculate o programa atualiza a distribuicao de cada elemento antes de calcular
parent 7cb31688
...@@ -25,6 +25,8 @@ def init_calc(): ...@@ -25,6 +25,8 @@ def init_calc():
ionb['mass'] = float(Entryionmass.get()) ionb['mass'] = float(Entryionmass.get())
ionb['Z'] = float(EntryionZ.get()) ionb['Z'] = float(EntryionZ.get())
for i in range(len(Edict)):
Edict[i]['dist'] = np.loadtxt(Edict[i]['symbol']+".prof")
spectro(param, str(modelvar.get()), ionb, float(EntryEmin.get()),float(EntryEmax.get()), float(EntryEstep.get()), float(EntryDstep.get()), int(LSvar.get()) ) spectro(param, str(modelvar.get()), ionb, float(EntryEmin.get()),float(EntryEmax.get()), float(EntryEstep.get()), float(EntryDstep.get()), int(LSvar.get()) )
############################################################################## ##############################################################################
......
...@@ -108,11 +108,11 @@ def spectro(p, modelo, ion, Emin, Emax, EPasso, passox, LScontrol): ...@@ -108,11 +108,11 @@ def spectro(p, modelo, ion, Emin, Emax, EPasso, passox, LScontrol):
xlabel("Enegy (eV)") xlabel("Enegy (eV)")
ylabel("Yield") ylabel("Yield")
amostra = np.loadtxt('H2.py') #amostra = np.loadtxt('H2.py')
xxx= amostra[:,0]*1000 #xxx= amostra[:,0]*1000
ccc=amostra[:,1] #ccc=amostra[:,1]
plot (xxx, ccc, 'r.') #plot (xxx, ccc, 'r.')
show() show()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment