File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed
Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -184,3 +184,4 @@ tests/data/day5.csv
184184# Other virtual environments
185185.venv- *
186186venv- *
187+ notebooks /test.ipynb
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44
55[project ]
66name = " iglu_python"
7- version = " 0.4.0 "
7+ version = " 0.4.2 "
88description = " Python implementation of the iglu package for continuous glucose monitoring data analysis"
99readme = " README.md"
1010requires-python = " >=3.11"
@@ -28,7 +28,7 @@ dependencies = [
2828 " pandas" ,
2929 " tzlocal" ,
3030 " openpyxl" ,
31- " matplotlib" ,
31+ " matplotlib"
3232]
3333
3434[project .urls ]
You can’t perform that action at this time.
0 commit comments