Skip to content

Commit

Permalink
add exception message for #252
Browse files Browse the repository at this point in the history
  • Loading branch information
kkappler committed Jun 19, 2023
1 parent 774cd0f commit 69b54e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aurora/transfer_function/kernel_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,9 @@ def num_sample_rates(self):
@property
def sample_rate(self):
if self.num_sample_rates != 1:
print("Aurora does not yet process data from mixed sample rates")
raise NotImplementedError
msg = "Aurora does not yet process data from mixed sample rates"
print(f"{msg}")
raise NotImplementedError(msg)
sample_rate = self.df.sample_rate.unique()[0]
return sample_rate

Expand Down

0 comments on commit 69b54e7

Please sign in to comment.