Skip to content

Commit bf40536

Browse files
Temporarily revert slice integration behavior to original and thus allow this commit to serve as a checkpoint that ensures unit tests are passing and results are not affected by any structural issues in refactoring.
1 parent d309db0 commit bf40536

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/geophires_x/SurfacePlant.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ def integrate_time_series_slice(
2323
if len(_slice) == 1:
2424
return _slice[0]
2525

26+
# FIXME TEMP - WIP to ensure unit tests are unchanged by refactoring but with original behavior retained
27+
# dx_steps = (len(_slice) - 1) # correct behavior
28+
dx_steps = time_steps_per_year # original behavior
29+
2630
return np.trapz(
2731
_slice,
28-
dx=1. / (len(_slice) - 1) * 365. * 24.
32+
dx=1. / dx_steps * 365. * 24.
2933
) * 1000. * utilization_factor
3034

3135
def remaining_reservoir_heat_content(self, InitialReservoirHeatContent: np.ndarray, HeatkWhExtracted: np.ndarray) -> np.ndarray:

0 commit comments

Comments
 (0)