Skip to content

Nice-to-haves #22

@icweaver

Description

@icweaver

Just jotting some of these down here so I don't forget. Also happy to adjust if some of the current behavior is preferred.

Update: Subsumed by #31

Complete #26

  • Storing dictionaries typed more specifically than Dict{Any, Any}. Would allow to do things like:

    af_payload = Dict(
        "meta" => Dict("my" => Dict("nested" => "metadata")),
        "data" => [1, 2, 3, 4],
    )
    
    ASDF.write_file("my_asdf.asdf", af_payload)
    
    af = ASDF.load_file("my_asdf.asdf")

    instead of needing to widen it first by manually typing af_payload = Dict{Any, Any}(...)

  • Define getindex for ASDF.ASDFFile so that it can be indexed directly instead of needing to go through the internal .metadata field. In other words, get af["data"] working instead of af.metadata["data"].

  • Nice tree printing for ASDF.ASDFFile in the terminal. Might be nice to emulate what asdf.py info does:

    root (AsdfObject)
    ├─asdf_library (Software)
    │ ├─author (str): The ASDF Developers
    │ ├─homepage (str): http://github.com/asdf-format/asdf
    │ ├─name (str): asdf
    │ └─version (str): 5.1.0
    ├─history (dict)
    │ └─extensions (list)
    │   └─[0] (ExtensionMetadata) ...
    ├─co-Is (list)
    │ ├─[0] (str): Bug
  • FileIO.jl support so that load(my_file.asdf) will work

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions