* added gradient calculation
* added magnet selection * calculate probe position
This commit is contained in:
@ -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})
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user