Skip to content

Empty G3SuperTimestream can cause error on load #242

Description

@mhasself

Examples should not be hard to fine but consider: obs_1750634677_satp1_1111111/D_ufm_mv18_000.g3

Error occurs when accessing .data for the first time

>>> print(x)
G3SuperTimestream(0, 2207)

>>> x.times
spt3g.core.G3VectorTime([22-Jun-2025:23:27:07.770191680, 22-Jun-2025:23:27:07.775191680, 22-Jun-2025:23:27:07.780191680, ..., 22-Jun-2025:23:27:18.790191680, 22-Jun-2025:23:27:18.795191680, 22-Jun-2025:23:27:18.800191680])

>>> x.names
spt3g.core.G3VectorString([])

>>> x.data
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Destination array should be strictly packed on last dimension.

>>> x.data
array([], shape=(0, 2207), dtype=int32)

Anyway this is something about stride checking.

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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions