* added gradient calculation

* added magnet selection
* calculate probe position
This commit is contained in:
2025-04-23 21:40:33 +02:00
parent ef59bd1aa2
commit 53e1433394
3 changed files with 34 additions and 15 deletions

View File

@ -267,12 +267,15 @@ def position(request):
]
data_table = DataTable(source=source, columns=columns, width=400, height=280)
#show(data_table)
# boke plot
#plot.add_layout(data_table)
script, div = components(plot)
script_plot, div_plot = components(plot)
script_table, div_table = components(data_table)
ans = sorted(close_isotopes, key=lambda x: float(x[3]))
return render(request, 'posiiton.html', {'ans': ans, 'script': script, 'div': div})
print(div_plot)
return render(request, 'posiiton.html', {'ans': ans,
'script_plot': script_plot,
'div_plot': div_plot,
"script_table": script_table,
"div_table": div_table})