diff options
| author | pepperpepperpepper <pepper@scannerjammer.com> | 2015-12-08 21:40:36 -0800 |
|---|---|---|
| committer | pepperpepperpepper <pepper@scannerjammer.com> | 2015-12-08 21:40:36 -0800 |
| commit | d702af2979ef4e023d0fff68639b53f8a40361e1 (patch) | |
| tree | f4703603c179cb56b0c03e77fa89ccfab5c7784e /ricky/params/__init__.py | |
| parent | 0e082b3065d8c3bafbd82cbaf24d6efb85825b05 (diff) | |
fixed some old api references
Diffstat (limited to 'ricky/params/__init__.py')
| -rw-r--r-- | ricky/params/__init__.py | 11 |
1 files changed, 1 insertions, 10 deletions
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""" |
