Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.9.1 #52

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -35,6 +35,6 @@ repos:
- id: python-check-blanket-type-ignore
- id: python-use-type-annotations
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.4
rev: v0.9.6
hooks:
- id: ruff
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
Versions follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html) (`<major>`.`<minor>`.`<patch>`)

## [0.9.1]
### Fixed
* #50 fix tz-awareness issue from `calculate_sync_delta`

## [0.9.0]
### Changed
* #44 Add optional consideration for the `./TEMP` log directory on FlySight V2 hardware. This directory contains log sessions that have not yet been finalized and may contain the entire flight log of interest in certain situations (e.g. battery has depleted)
2 changes: 1 addition & 1 deletion pyflysight/flysight_proc.py
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
)
from pyflysight.log_utils import get_idx, normalize_gps_location

GPS_EPOCH = dt.datetime(year=1980, month=1, day=6)
GPS_EPOCH = dt.datetime(year=1980, month=1, day=6, tzinfo=dt.UTC)

GroupedSensorData: t.TypeAlias = dict[str, list[list[float]]]
SensorDataFrames: t.TypeAlias = dict[str, polars.DataFrame]
2 changes: 1 addition & 1 deletion tests/checks.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
from pytest_check import check_func


@check_func # type: ignore[misc] # fine with this untyped decorator
@check_func
def is_col(df: polars.DataFrame, col_name: str) -> None:
"""Assert that the specified column name is present in the given `DataFrame`."""
assert col_name in df
2 changes: 1 addition & 1 deletion tests/test_flysight_v2_parser.py
Original file line number Diff line number Diff line change
@@ -353,7 +353,7 @@ def test_v2_flightlog_normalize_gps() -> None:
def test_time_sync_delta_calculation() -> None:
track_data = polars.DataFrame(
{
"time": [dt.datetime(year=2024, month=4, day=20)],
"time": [dt.datetime(year=2024, month=4, day=20, tzinfo=dt.UTC)],
}
)
time_sensor = polars.DataFrame(
333 changes: 167 additions & 166 deletions uv.lock

Large diffs are not rendered by default.