Skip to content

Commit e04c73a

Browse files
committed
feat: bump version to 0.4.2 and add pyarrow dependency
- Bump version from 0.4.0 to 0.4.2 for latest improvements - Add pyarrow>=21.0.0 to main dependencies for enhanced data processing - Add empty time_diffs validation in CGMS2DayByDay to prevent errors - Update uv.lock with new dependency structure This version includes: - Full pandas 1.5.x compatibility for Databricks environments - Critical DST transition bug fixes - Enhanced test framework with rtol=0.001 precision - Modern dependency management with optional groups - Comprehensive timezone handling improvements Ready for production deployment with improved reliability and compatibility.
1 parent a6e314f commit e04c73a

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

iglu_python/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ def CGMS2DayByDay( # noqa: C901
213213
if dt0 is None:
214214
# Use most common time difference (for pandas 1.5.x backward compatibility)
215215
time_diffs = pd.Series(data.index).diff().dropna()
216+
if time_diffs.empty:
217+
raise ValueError("Not enough data to calculate time step")
216218
# Pandas TimedeltaIndex does not have a .mode() method directly.
217219
# We'll convert to seconds and use pd.Series.mode()
218220
# Use .dt accessor for pandas 1.5.x compatibility

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "iglu_python"
7-
version = "0.4.0"
7+
version = "0.4.2"
88
description = "Python implementation of the iglu package for continuous glucose monitoring data analysis"
99
readme = "README.md"
1010
requires-python = ">=3.11"
@@ -29,6 +29,7 @@ dependencies = [
2929
"tzlocal",
3030
"openpyxl",
3131
"matplotlib",
32+
"pyarrow>=21.0.0",
3233
]
3334

3435
[project.urls]

uv.lock

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)