Details
-
Type:
Bug
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: verify
-
Labels:None
-
Story Points:2
-
Epic Link:
-
Sprint:AP F19-6 (November)
-
Team:Alert Production
Description
Doing a build with Astropy4 I now get failures from verify package relating to YAML serialization.
This works fine with the same version of YAML on Astropy 3 but fails on Astropy 4.
self = <yaml.loader.SafeLoader object at 0x7fbb0063aba8>
|
node = SequenceNode(tag='tag:yaml.org,2002:python/object/apply:numpy.core.multiarray.scalar', value=[MappingNode(tag='tag:yam...Node(tag='tag:yaml.org,2002:int', value='0')]))]), ScalarNode(tag='tag:yaml.org,2002:binary', value='AAAAAAAAFEA=\n')])
|
|
def construct_undefined(self, node):
|
raise ConstructorError(None, None,
|
"could not determine a constructor for the tag %r" % node.tag,
|
> node.start_mark)
|
E yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:python/object/apply:numpy.core.multiarray.scalar'
|
E in "<unicode string>", line 9, column 14:
|
E value: !!python/object/apply:numpy.core ...
|
E ^
|
|
../../stack/DarwinX86/pyyaml/5.1+2/lib/python/yaml/constructor.py:420: ConstructorError
|
On Astropy 4 for the blob test:
!<lsst.verify.Blob>
data:
mag1: !<lsst.verify.Datum>
description: Magnitude
label: mag1
unit: mag
value: !!python/object/apply:numpy.core.multiarray.scalar
- &id001 !!python/object/apply:numpy.dtype
args:
- f8
- 0
- 1
state: !!python/tuple
- 3
- <
- null
- null
- null
- -1
- -1
- 0
- !!binary |
AAAAAAAAFEA=
mag2: !<lsst.verify.Datum>
description: Magnitude
label: mag2
unit: mag
value: !!python/object/apply:numpy.core.multiarray.scalar
- *id001
- !!binary |
AAAAAAAAJEA=
identifier: 81b88b52a20b47bda3a11cb74db9f41b
name: demo
For the working test with astropy 3:
!<lsst.verify.Blob>
data:
mag1: !<lsst.verify.Datum>
description: Magnitude
label: mag1
unit: mag
value: 5.0
mag2: !<lsst.verify.Datum>
description: Magnitude
label: mag2
unit: mag
value: 10.0
identifier: 78dfeee927cf4962bc2b1143b0e75184
name: demo