Commit 98b2cb5d authored by deck's avatar deck

fix errors due to new tools new version

parent d481805b
......@@ -12,7 +12,6 @@ class Acrux1(Normalizer):
"""
The class providing equations for the satellite telemetry
"""
def __init__(self):
super(Acrux1, self).__init__()
self.normalizers = [ # pylint: disable=R0801
......
......@@ -14,7 +14,6 @@ class Normalizer:
Transforms frame values according to embedded equations
"""
def __init__(self):
self.normalizers = []
......
......@@ -12,7 +12,6 @@ class Lightsail2(Normalizer):
"""
The class providing equations for the satellite telemetry
"""
def __init__(self):
super(Lightsail2, self).__init__()
self.normalizers = [ # pylint: disable=R0801
......
......@@ -9,7 +9,6 @@ from polaris.common import constants
class JsonSerializable():
"""Class for JSON-serializable objects
"""
def to_json(self):
"""Write a dataset object to JSON.
"""
......
......@@ -12,7 +12,6 @@ from polaris.dataset.metadata import PolarisMetadata
class PolarisDataset(dict, JsonSerializable):
"""Class for dataset frames
"""
def __init__(self, metadata=None, frames=None):
"""Initialize a PolarisDataset object
......
......@@ -7,7 +7,6 @@ from polaris.common.json_serializable import JsonSerializable
class PolarisFrame(dict, JsonSerializable):
"""Class for Polaris frames
"""
def __init__(self, frame=None):
"""Initialize a Polaris Frame object
"""
......
......@@ -256,7 +256,6 @@ def write_or_merge(dataset, file, strategy):
strategy: overwrite, merge or error.
"""
def write_dataset(dataset, file):
with open(file, 'w') as f_handle:
f_handle.write(dataset.to_json())
......
......@@ -18,7 +18,6 @@ class FeatureImportanceOptimization(BaseEstimator, TransformerMixin):
augmentation (or distribution flattening).
"""
def __init__(self, list_of_transformers):
""" The constructor will help parameterize all options of this
transformer
......
......@@ -21,7 +21,6 @@ LOGGER = logging.getLogger(__name__)
class XCorr(BaseEstimator, TransformerMixin):
""" Cross Correlation predictor class
"""
def __init__(self, model_params=None):
"""
:param models: list of tuples (target column, model)
......
......@@ -20,7 +20,6 @@ WWW_DIR = "/tmp/"
class CustomHTTPHandler(http.server.SimpleHTTPRequestHandler):
""" HTTP Handler to serve viz directory """
def handle(self):
# pylint: disable=W0603
global WWW_DIR
......
......@@ -15,7 +15,6 @@ from polaris.fetch import data_fetch_decoder
class FixtureNormalizer(Normalizer):
"""Normalizer fixture for pytest
"""
def __init__(self):
super().__init__()
self.normalizers = [
......@@ -26,7 +25,6 @@ class FixtureNormalizer(Normalizer):
class FixtureNormalizerWithValidator(FixtureNormalizer):
"""Normalizer fixture with a validator
"""
def validate_frame(self, frame):
try:
return frame['fields']['src_callsign']['value'].lower() == 'a1b2c3'
......
......@@ -111,7 +111,6 @@ def test_extract_feature_importance(input_transformers):
:param input_transformers: fixtures for input transformers
"""
@dataclass
class FakeModel:
""" Fake Model object meant to hold the feature importance list only
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment