Skip to content

Files produce asdf/library key which looks like it should be asdf_library #41

@braingram

Description

@braingram

With current main 3d5ef0c round tripping (load -> save) the following file (the read file contents don't really matter here)

#ASDF 1.0.0
#ASDF_STANDARD 1.6.0
%YAML 1.1
%TAG ! tag:stsci.edu:asdf/
--- !core/asdf-1.1.0
a: 1
...
#ASDF BLOCK INDEX
%YAML 1.1
---
[]
...

produces the following

#ASDF 1.0.0
#ASDF_STANDARD 1.2.0
# This is an ASDF file <https://asdf-standard.readthedocs.io/>
%YAML 1.1
%TAG ! tag:stsci.edu:asdf/
---
!core/asdf-1.1.0
a: 1
asdf/library: !core/software-1.0.0
  name: "ASDF.jl"
  author: "Erik Schnetter <schnetter@gmail.com>"
  homepage: "https://github.com/JuliaAstro/ASDF.jl"
  version: "2.0.0"
...
#ASDF BLOCK INDEX
%YAML 1.1
---
[]
...

with an asdf/library key that is compatible with the expected asdf_library metadata:
https://github.com/asdf-format/asdf-standard/blob/57e218b9c8873a9625f6ea76745891f89577f4c9/resources/stable/schemas/stsci.edu/asdf/core/asdf-1.1.0.yaml#L13

Should this be using asdf_library?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions