rayopt icon indicating copy to clipboard operation
rayopt copied to clipboard

yaml deprecation warning

Open asebian opened this issue 2 years ago • 1 comments

Hi, working through the jupyter tutorial I came across this warning.

s = ro.system_from_yaml(...)
/usr/local/lib/python3.9/dist-packages/rayopt/formats.py:89: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  dat = yaml.load(text)

It was easy to suppress it, but there might be a better way.

import yaml
yaml.warnings({'YAMLLoadWarning': False})

Thanks for sharing!

asebian avatar Dec 19 '21 10:12 asebian