Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipeline run fixes #450

Merged
merged 5 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading