Skip to content

Commit

Permalink
autoformat kappy using autopep8
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinepouille committed Mar 26, 2024
1 parent e67589e commit 8e363f6
Show file tree
Hide file tree
Showing 3 changed files with 227 additions and 182 deletions.
8 changes: 5 additions & 3 deletions kappy/kappa_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ class SimulationParameter(object):
"""

def __init__(self, plot_period : float, pause_condition : str,
seed : int = None, store_trace : bool =False):
def __init__(self, plot_period: float, pause_condition: str,
seed: int = None, store_trace: bool = False):
self.plot_period = plot_period
self.pause_condition = pause_condition
self.seed = seed
Expand Down Expand Up @@ -199,13 +199,15 @@ def toJSON(self):

class KappaError(Exception):
""" Error returned from the Kappa server"""

def __init__(self, errors):
Exception.__init__(self, errors)
self.errors = errors


class KappaApi(ABC):
"""General api for a kappa interface."""

def __init__(self):
self.__default_param = None
return
Expand Down Expand Up @@ -388,7 +390,7 @@ def simulation_plot(self, limit=None):
"""

@abc.abstractmethod
def simulation_snapshot(self, snapshot_id: str) -> KappaSnapshot :
def simulation_snapshot(self, snapshot_id: str) -> KappaSnapshot:
"""Returns a given generated snapshot
"""
Expand Down
Loading

0 comments on commit 8e363f6

Please sign in to comment.