Skip to content

cast_value README example writes "+Infinity", which the Zarr V3 fill value encoding spells "Infinity" #76

Closed

Description

@d-v-b

🤖 AI text below 🤖

The NumPy-compatibility example in the cast_value README maps "+Infinity" (L133-L135):

"encode": [
    ["NaN", 0],
    ["+Infinity", 0],
    ["-Infinity", 0]
]

The same README says each scalar_map scalar "is encoded to JSON using the Zarr V3 fill value encoding" for its data type (L107). That encoding spells positive infinity "Infinity", next to "-Infinity" and "NaN" (data types, L68-L74). A reader that follows the normative text refuses the example; zarr-python accepts it.

Suggested fix: write "Infinity" in the example.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions