From d702af2979ef4e023d0fff68639b53f8a40361e1 Mon Sep 17 00:00:00 2001 From: pepperpepperpepper Date: Tue, 8 Dec 2015 21:40:36 -0800 Subject: fixed some old api references --- ricky/params/__init__.py | 11 +---------- ricky/pb.py | 3 --- 2 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 ricky/pb.py diff --git a/ricky/params/__init__.py b/ricky/params/__init__.py index da4562f..a48f681 100644 --- a/ricky/params/__init__.py +++ b/ricky/params/__init__.py @@ -9,7 +9,6 @@ import ricky.utils as utils class Params(object): def __init__(self, *args): - self._api = None self._url = None self._params = tuple(args) @@ -32,7 +31,7 @@ class Params(object): else: filepath = os.path.join( PROBABILITIES_DIR, - "%s.json" % (self.api.__class__.__name__) + "%s.json" % (self.__class__.__name__) ) try: f = open(filepath, 'r') @@ -65,15 +64,7 @@ class Params(object): for param in self._params: param.randomize(probabilities=probabilities_dict.get(param.name)) - @property - def api(self): - """property setter for im api""" - return self._api - @api.setter - def api(self, cls): - """property getter for im api""" - self._api = cls def execute(self): """calls the associated api""" diff --git a/ricky/pb.py b/ricky/pb.py deleted file mode 100644 index fe0cb0f..0000000 --- a/ricky/pb.py +++ /dev/null @@ -1,3 +0,0 @@ -class Pb(object): - def __init__(self): - pass -- cgit v1.2.3-70-g09d2