YAML files with python/object/apply fail in pyyaml>5.2.1

Description

python/object/apply is considered unsafe. PyYAML 5.2.1+ (at least in 5.3 for sure) seems like they will not load YAML files with python/object/apply using the FullLoader. This seems to make, at a minimum, astro_metadata_translator unhappy in some inute tests for obs_lsst test data.

Here is a test failure

Checklist

Lucidchart Diagrams

Issue Matrix

hide

Activity

Show:

Brian Van Klaveren 
March 12, 2020 at 12:07 AM

I tested this out with 5.3 and it works fine.

Tim Jenness 
March 11, 2020 at 7:59 PM

Trivial fix of rewriting the YAML works for me. Can you please take a look?

Tim Jenness 
March 11, 2020 at 7:29 PM

The fix is to remove those OrderedDict entries in the yaml file.

Done
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Reviewers

Brian Van Klaveren

Story Points

RubinTeam

Components

Checklist

Created March 11, 2020 at 7:21 PM
Updated April 6, 2020 at 6:16 PM
Resolved March 12, 2020 at 5:16 AM