Skip to content

Support streamed arrays (source: -1) #226

Description

@embray

The ASDF standard allows a single streamed array as the last block in a file, denoted by source: -1 and a shape whose first element is '*' (the number of rows is determined by the block's length). libasdf currently parses source as a uint64, so -1 fails with ASDF_VALUE_ERR_TYPE_MISMATCH, and asdf_datatype_shape_parse does not accept '*' as a dimension.

The reference files asdf-standard/reference_files/*/stream.asdf exercise this. They are currently listed as exceptions in tests/test-reference-files.c (being added in #224); that exception should be removed once this is implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestrefactoringChanges to code structure or APIsstandard-complianceMissing feature required to meet fully compliance with the ASDF standard

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions