Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dmgav committed Mar 14, 2024
1 parent c76ab94 commit 8d95812
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion examples/load_abs_timestamps.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
ts_start = pd.Timestamp(start_time)
if hw_time_offset_ns:
ts_start += pd.Timedelta(nanoseconds=hw_time_offset_ns)
print(f"Start time using system clock instead of hardware clock: {ts_start}")
print(f"Start time (system clock instead of hardware clock): {ts_start}")


# Expected output:
Expand Down
27 changes: 15 additions & 12 deletions tests/test_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,21 @@ async def test_asyncio_data(
assert fast_dump_expected == events


@pytest.mark.parametrize("timing_params",[
{},
{
"arm_time": "2024-03-05T20:27:12.607841574Z",
"start_time": "2024-03-05T20:27:12.608875498Z",
},
{
"arm_time": "2024-03-05T20:27:12.607841574Z",
"start_time": "2024-03-05T20:27:12.608875498Z",
"hw_time_offset_ns": 100555,
},
])
@pytest.mark.parametrize(
"timing_params",
[
{},
{
"arm_time": "2024-03-05T20:27:12.607841574Z",
"start_time": "2024-03-05T20:27:12.608875498Z",
},
{
"arm_time": "2024-03-05T20:27:12.607841574Z",
"start_time": "2024-03-05T20:27:12.608875498Z",
"hw_time_offset_ns": 100555,
},
],
)
async def test_asyncio_data_with_abs_timing(
dummy_server_async,
fast_dump_with_extra_header_params,
Expand Down

0 comments on commit 8d95812

Please sign in to comment.