Skip to content

Commit

Permalink
Merge pull request #450 from NREL/pipeline_run_fixes
Browse files Browse the repository at this point in the history
Pipeline run fixes
  • Loading branch information
mdeceglie authored Jan 22, 2025
2 parents bd86075 + 924bdb3 commit c98ec09
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
version: 2

sphinx:
# Path to your Sphinx configuration file.
configuration: docs/sphinx/source/conf.py

build:
os: "ubuntu-24.04"
tools:
Expand Down
3 changes: 3 additions & 0 deletions rdtools/analysis_chains.py
Original file line number Diff line number Diff line change
Expand Up @@ -1292,3 +1292,6 @@ def _validate_keys(self):
for key in self.keys():
if key not in self.valid_keys:
raise KeyError(self._err_msg.format(key))

def __reduce__(self):
return (self.__class__, (self.valid_keys, dict(self)))
6 changes: 3 additions & 3 deletions rdtools/normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,9 @@ def _interpolate_series(time_series, target_index, max_timedelta=None,
df = df.dropna()

# convert to integer index and calculate the size of gaps in input
timestamps = df.index.view('int64')
df['timestamp'] = timestamps
df['gapsize_ns'] = df['timestamp'].diff()
timestamps = df.index.view("int64").copy()
df["timestamp"] = timestamps
df["gapsize_ns"] = df["timestamp"].diff()
df.index = timestamps

valid_indput_index = df.index.copy()
Expand Down

0 comments on commit c98ec09

Please sign in to comment.