Skip to content

Commit c98ec09

Browse files
authored
Merge pull request #450 from NREL/pipeline_run_fixes
Pipeline run fixes
2 parents bd86075 + 924bdb3 commit c98ec09

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.readthedocs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
version: 2
22

3+
sphinx:
4+
# Path to your Sphinx configuration file.
5+
configuration: docs/sphinx/source/conf.py
6+
37
build:
48
os: "ubuntu-24.04"
59
tools:

rdtools/analysis_chains.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,3 +1292,6 @@ def _validate_keys(self):
12921292
for key in self.keys():
12931293
if key not in self.valid_keys:
12941294
raise KeyError(self._err_msg.format(key))
1295+
1296+
def __reduce__(self):
1297+
return (self.__class__, (self.valid_keys, dict(self)))

rdtools/normalization.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,9 +575,9 @@ def _interpolate_series(time_series, target_index, max_timedelta=None,
575575
df = df.dropna()
576576

577577
# convert to integer index and calculate the size of gaps in input
578-
timestamps = df.index.view('int64')
579-
df['timestamp'] = timestamps
580-
df['gapsize_ns'] = df['timestamp'].diff()
578+
timestamps = df.index.view("int64").copy()
579+
df["timestamp"] = timestamps
580+
df["gapsize_ns"] = df["timestamp"].diff()
581581
df.index = timestamps
582582

583583
valid_indput_index = df.index.copy()

0 commit comments

Comments
 (0)