Skip to content

Commit

Permalink
notebook changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JackWalpole committed Oct 26, 2017
1 parent 8a5c80d commit 6a97559
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 270 deletions.
313 changes: 49 additions & 264 deletions devel/Work_with_obspy.ipynb

Large diffs are not rendered by default.

Binary file modified docs/temp.eigm
Binary file not shown.
9 changes: 3 additions & 6 deletions splitwavepy/core/pair.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,9 @@ def __init__(self,*args,**kwargs):
raise Exception('Unexpected number of arguments')

# some sanity checks
if self.x.ndim != 1:
raise Exception('data must be one dimensional')
if self.x.size%2 == 0:
raise Exception('data must have odd number of samples')
if (self.x.size != self.y.size):
raise Exception('x and y must be the same length')
if self.x.ndim != 1: raise Exception('data must be one dimensional')
if self.x.size%2 == 0: raise Exception('data must have odd number of samples')
if (self.x.size != self.y.size): raise Exception('x and y must be the same length')

# Pair must have a window
self.set_window(**kwargs)
Expand Down

0 comments on commit 6a97559

Please sign in to comment.