Skip to content

yaml deprecation warning #35

Description

@asebian

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions