yaml loader depreciated
We tried to use a vispr pipeline that we had previously had working, but when we tried to run the pipeline, we got this error message.
vispr server MP2_config.yaml
/Users/jared/anaconda3/lib/python3.7/site-packages/vispr/server.py:23: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
CAPTIONS = yaml.load(f)
Loading data.
/Users/jared/anaconda3/lib/python3.7/site-packages/vispr/cli.py:40: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
config = yaml.load(f)
Traceback (most recent call last):
File "/Users/jared/anaconda3/bin/vispr", line 10, in <module>
sys.exit(main())
File "/Users/jared/anaconda3/lib/python3.7/site-packages/vispr/cli.py", line 207, in main
init_server(*args.config, host=args.host, port=args.port)
File "/Users/jared/anaconda3/lib/python3.7/site-packages/vispr/cli.py", line 42, in init_server
app.screens.add(config, parentdir=os.path.dirname(path))
File "/Users/jared/anaconda3/lib/python3.7/site-packages/vispr/results/__init__.py", line 29, in add
self.screens[screen] = Screen(config, parentdir=parentdir)
File "/Users/jared/anaconda3/lib/python3.7/site-packages/vispr/results/__init__.py", line 76, in __init__
get_path(config["targets"]["results"]))
File "/Users/jared/anaconda3/lib/python3.7/site-packages/vispr/results/__init__.py", line 162, in parse_target_results
for selection in selections}
File "/Users/jared/anaconda3/lib/python3.7/site-packages/vispr/results/__init__.py", line 162, in <dictcomp>
for selection in selections}
File "/Users/jared/anaconda3/lib/python3.7/site-packages/vispr/results/__init__.py", line 157, in get_results
return target.Results(res.copy())
File "/Users/jared/anaconda3/lib/python3.7/site-packages/vispr/results/target.py", line 46, in __init__
pval_cdf.index = np.maximum(0, pval_cdf.index)
File "pandas/_libs/interval.pyx", line 358, in pandas._libs.interval.Interval.__richcmp__
TypeError: unorderable types: Interval() <= int()
Can you please offer any suggestions for how to fix this. Thanks!