Skip to content

Conversation

MichaelGrupp
Copy link
Member

Apply the equivalent of the conversion that is done for the duration kwarg.

Fixes accidental interpretation of seconds as nanoseconds.

Closes: #10167

…__()

Apply the equivalent of the conversion that is done for the duration
kwarg.

Fixes accidental interpretation of seconds as nanoseconds.

Closes: rerun-io#10167
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! Thanks for opening this pull request.

Because this is your first time contributing to this repository, make sure you've read our Contributor Guide and Code of Conduct.

@Wumpf Wumpf self-requested a review June 9, 2025 08:48
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for looking into this!
Change looks good to me as is, but there should be test cases added to rerun_py/tests/unit/test_time_column.py

],
type=pa.timestamp("ns"),
),
),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same test fixture as the one for plain lists above, but with np.array.

Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neat, thx!

@Wumpf Wumpf changed the title Fix support for seconds-since-Epoch numpy arrays in TimeColumn.__init… Support for seconds-since-Epoch numpy arrays for constructing TimeColumn Jun 9, 2025
@Wumpf Wumpf merged commit 6323ca0 into rerun-io:main Jun 9, 2025
39 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rr.TimeColumn doesn't support numpy array with epoch second timestamps
2 participants