Skip to content

Coord printing should be limited #356

@Datseris

Description

@Datseris

Because by nature the Coord dimension is typically used with vector values, its printing becomes really long. Example:

julia> dims(C)
Coord 1028-element CoordLookupArray{SVector{2, Float32}, Vector{SVector{2, Float32}}, Tuple{UnionAll, UnionAll}, NoMetadata}:
 [0.0, -86.0]
 [120.0, -86.0]
 [240.0, -86.0]
 [0.0, -82.0]
 [72.0, -82.0]
 [144.0, -82.0]
 [216.0, -82.0]
 [288.0, -82.0]
 [0.0, -78.0]
 [51.4286, -78.0]
 [102.857, -78.0]
 [154.286, -78.0]
 [205.714, -78.0]
 [257.143, -78.0]
 [308.571, -78.0]
 [0.0, -74.0]
 
 [0.0, 82.0]
 [72.0, 82.0]
 [144.0, 82.0]
 [216.0, 82.0]
 [288.0, 82.0]
 [0.0, 86.0]
 [120.0, 86.0]
 [240.0, 86.0],
Ti Sampled Date("2000-03-15"):Month(1):Date("2020-02-15") ForwardOrdered Regular Points

(I've actually significantly shortened the output)

Where in the printing pipeline is this happening? I think the solution is really a simple IOContext(limited = true).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions