Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use pyyaml SafeLoader to suppress deprecation warning. #120

Closed
wants to merge 5 commits into from

Conversation

williamrowell
Copy link
Collaborator

https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation

This should also address errors about unsafe loading, like:

/opt/scripts/calculate_phrank.py:246: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  cohort_list = yaml.load("".join(yamlfile))

@williamrowell williamrowell self-assigned this Mar 12, 2024
@williamrowell
Copy link
Collaborator Author

Depends on PacificBiosciences/wdl-dockerfiles#45

@williamrowell williamrowell deleted the fix/pyyaml-safe-loader branch June 13, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants