• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openego / eDisGo / 29927928854
83%
dev: 84%

Build:
Build:
LAST BUILD BRANCH: ci/oedb-test-reruns
DEFAULT BRANCH: dev
Ran 23 Jul 2026 10:00AM UTC
Jobs 1
Files 68
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Jul 2026 02:18PM UTC coverage: 83.256% (-0.6%) from 83.819%
29927928854

Pull #629

github

web-flow
fix: preserve gaps in the timeindex when resampling (#721)

The shared tools.resample() function called pandas' own .resample()
directly on each attribute's data, which always produces a contiguous
bucket sequence spanning the data's own min-to-max timestamp - any gap in
a legitimately gapped timeindex (e.g. as produced by select_timesteps in
auto mode, which deliberately keeps two disjoint intervals separate) got
silently filled with resample artifacts (forward-filled/averaged copies
of adjacent real values) rather than preserved.

TimeSeries.resample compounded this: after calling the shared function,
it also rebuilt self._timeindex via one pd.date_range(first, last, freq)
span, discarding the gap from the index itself, not just the data.

Add split_into_contiguous_runs, splitting a DataFrame into its maximal
contiguous runs (a run boundary is any gap larger than the original
frequency). The shared resample() function now resamples each run
independently and concatenates the results, so a gap is never bridged.
TimeSeries.resample's own _timeindex rebuild now reconstructs the new
index per contiguous run and unions them back together, fixing the
compounding issue on top.

Affects every caller of the shared function: TimeSeries.resample,
HeatPump.resample_timeseries, DSM.resample, OverlyingGrid.resample.
Electromobility.resample is unaffected - it already warns on
non-continuous input rather than silently fabricating data.

Found during the #703 PR series (time-series writers not uniformly
respecting a pre-existing timeindex), tracked separately since it's a
distinct pre-existing bug in shared infrastructure, not part of #703's
own scope.
Pull Request #629: Edisgo run edisgo

803 of 1080 new or added lines in 29 files covered. (74.35%)

2 existing lines in 2 files now uncovered.

9527 of 11443 relevant lines covered (83.26%)

0.83 hits per line

Uncovered Changes

Lines Coverage ∆ File
49
60.8
edisgo/run/tasks/timeseries.py
29
43.14
edisgo/run/tasks/flex.py
25
59.02
edisgo/run/tasks/analysis.py
21
82.05
edisgo/run/config.py
21
46.15
edisgo/run/context.py
20
76.19
edisgo/run/tasks/io.py
17
73.44
edisgo/run/runner.py
16
68.0
edisgo/run/tasks/grid.py
15
45.54
-5.53% edisgo/io/db.py
13
35.0
edisgo/run/tasks/spatial.py
12
93.32
-1.01% edisgo/tools/spatial_complexity_reduction.py
11
86.27
5.36% edisgo/tools/tools.py
8
86.07
1.63% edisgo/tools/temporal_complexity_reduction.py
6
92.49
-0.94% edisgo/io/powermodels_io.py
5
90.38
edisgo/run/validator.py
4
94.93
2.43% edisgo/opf/powermodels_opf.py
4
80.17
-1.05% edisgo/tools/config.py
1
78.63
0.14% edisgo/edisgo.py

Coverage Regressions

Lines Coverage ∆ File
1
92.49
-0.94% edisgo/io/powermodels_io.py
1
80.17
-1.05% edisgo/tools/config.py
Jobs
ID Job ID Ran Files Coverage
1 29927928854.1 23 Jul 2026 10:00AM UTC 68
83.26
GitHub Action Run
Source Files on build 29927928854
  • Tree
  • List 68
  • Changed 19
  • Source Changed 0
  • Coverage Changed 19
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #629
  • PR Base - dev (#28930710676)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc