Skip to content

Commit c883aa4

Browse files
authored
Merge pull request #16 from staskh/14-bug-cannot-reshape-array
Version 0.4.2: Enhanced Compatibility and Dependency Management
2 parents 19dbc21 + 1c7a730 commit c883aa4

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,4 @@ tests/data/day5.csv
184184
# Other virtual environments
185185
.venv-*
186186
venv-*
187+
notebooks/test.ipynb

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 & 2 deletions
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"
@@ -28,7 +28,7 @@ dependencies = [
2828
"pandas",
2929
"tzlocal",
3030
"openpyxl",
31-
"matplotlib",
31+
"matplotlib"
3232
]
3333

3434
[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)