我正在运行一个使用bokeh显示交互式绘图的代码。它工作正常,直到我突然发现与龙卷风有关的错误。我安装了最新版本的bokeh和tornado,但它并不能解决问题。回溯很长:
我正在使用为apres数据缩减pyarpes开发的pyarpes代码:
import arpes
from arpes.io import(load_example_data, load_without_dataset, direct_load)
from arpes.utilities import default_dataset
from arpes.utilities.conversion import convert_to_kspace
from arpes.utilities.conversion import *
from arpes.fits import *
from pathlib import Path
import arpes.corrections
import arpes.plotting
from arpes.analysis import *
from arpes.provenance import update_provenance
#DIRECT DATA LOADING test
p = Path('.')/'arpes'/'example_data'/'test.nxs'
load_without_dataset(p)
f = load_without_dataset(p, location='xxx')
data = f.sel(psi=2, phi=slice(-0.01, 0.07), eV=slice(95.2, 96.5)).transpose('eV', 'phi') # pocket selection
data_mean = (data - data.mean('eV')) # background substraction
data_mean.S.show()
ERROR:tornado.application:Uncaught exception GET /autoload.js?bokeh-autoload-element=1001&bokeh-absolute-url=http://localhost:52526&resources=none (127.0.0.1)
HTTPServerRequest(protocol='http', host='localhost:52526', method='GET', uri='/autoload.js?bokeh-autoload-element=1001&bokeh-absolute-url=http://localhost:52526&resources=none', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
File "C:\Users\xxx\Anaconda3\lib\site-packages\tornado\web.py", line 1704, in _execute
result = await result
File "C:\Users\xxx\Anaconda3\lib\site-packages\bokeh\server\views\autoload_js_handler.py", line 60, in get
session = await self.get_session()
File "C:\Users\xxx\Anaconda3\lib\site-packages\bokeh\server\views\session_handler.py", line 120, in get_session
session = await self.application_context.create_session_if_needed(session_id, self.request, token)
File "C:\Users\xxx\Anaconda3\lib\site-packages\bokeh\server\contexts.py", line 218, in create_session_if_needed
self._application.initialize_document(doc)
File "C:\Users\xxx\Anaconda3\lib\site-packages\bokeh\application\application.py", line 171, in initialize_document
h.modify_document(doc)
File "C:\Users\xxx\Anaconda3\lib\site-packages\bokeh\application\handlers\function.py", line 132, in modify_document
self._func(doc)
File "C:\Users\xxx\arpes\arpes\plotting\interactive.py", line 43, in tool_handler
return self.tool_handler_2d(doc)
File "C:\Users\xxx\arpes\arpes\plotting\interactive.py", line 225, in tool_handler_2d
color_mode_dropdown.on_change('value', on_change_color_mode)
File "C:\Users\xxx\Anaconda3\lib\site-packages\bokeh\model.py", line 551, in on_change
descriptor = self.lookup(attr)
File "C:\Users\xxx\Anaconda3\lib\site-packages\bokeh\core\has_props.py", line 492, in lookup
raise AttributeError(f"{cls.__name__}.{name} property descriptor does not exist")
AttributeError: Dropdown.value property descriptor does not exist
ERROR:tornado.access:500 GET /autoload.js?bokeh-autoload-element=1001&bokeh-absolute-url=http://localhost:52526&resources=none (127.0.0.1) 80.00ms
谢谢你的帮助
目前没有回答
相关问题 更多 >
编程相关推荐