Skip to content
Open
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
Binary file added .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
*.pyc
.idea
.idea/*
.ipynb_checkpoints
*/.ipynb_checkpoints/*
10 changes: 5 additions & 5 deletions MovingWindow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Error
import error
import numpy as np

class MovingWindow(object):
Expand All @@ -7,11 +7,11 @@ class MovingWindow(object):

def __init__(self, *args, **kwargs):
if kwargs.get('window_dimension') is None:
raise Error.InputError('Window dimension','is a required parameter')
raise error.InputError('Window dimension', 'is a required parameter')
self.window_dimension = kwargs.get('window_dimension')

if self.__class__ is MovingWindow:
raise Error.Error('MovingWindow is an abstract base class')
raise error.Error('MovingWindow is an abstract base class')

def _build_search_kernel(self, dx):
return None, None
Expand Down Expand Up @@ -58,7 +58,7 @@ class RectangularMovingWindow(MovingWindow):
def __init__(self, *args, **kwargs):
super(RectangularMovingWindow, self).__init__(*args, **kwargs)
if self.__class__ is RectangularMovingWindow:
raise Error.Error('RectangularMovingWindow has no bound function')
raise error.Error('RectangularMovingWindow has no bound function')

def _build_search_kernel(self, dx):
# Function to build a search kernel that is either square or circular
Expand All @@ -73,7 +73,7 @@ class CircularMovingWindow(MovingWindow):
def __init__(self, *args, **kwargs):
super(CircularMovingWindow, self).__init__(*args, **kwargs)
if self.__class__ is CircularMovingWindow:
raise Error.Error('CircularMovingWindow has no bound function')
raise error.Error('CircularMovingWindow has no bound function')

def _build_search_kernel(self, dx):
# Function to build a search kernel that is either square or circular
Expand Down
Loading