Skip to content

Shapes in object representations are printed as lists instead of tuples #338

Description

@colleenjg

When printing different torch_brain objects, the shape of different attributes are shown, e.g.

behavior

prints:

RegularTimeSeries(
  hand_vel=[1000, 2],
  eye_pos=[1000, 2],
  pupil_size=[1000]
)

In a few cases (especially when printing an interval), I found this confusing. It looked to me like I was seeing the content of the attribute, instead of its shape. Since array shapes are typically printed as tuples in python, might we consider changing this to:

RegularTimeSeries(
  hand_vel=(1000, 2),
  eye_pos=(1000, 2),
  pupil_size=(1000, )
)

No activity

Activity on this issue will appear here.

Activity

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

Metadata

Metadata

Assignees

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