scheme_adapters/polyfit_adapter/polyfit_adapter.py [42:56]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self.params = ["min_size", "max_size", "min_freq", "max_freq", "min_age", "max_age"]

    def validate_json_list(self, json_list):
        if isinstance(json_list, list):
            for el in self.metrics:
                if type(el) != str:
                    raise Exception("List elements should be of type string.")
        else:
            raise Exception("Invalid type. List is expected.")

    def validate_json_string(self, json_string):
        if type(json_string) != str:
            raise Exception("String expected.")

    def parse_json(self, file_name):
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



scheme_adapters/pso_adapter/pso_adapter.py [41:55]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self.params = ["min_size", "max_size", "min_freq", "max_freq", "min_age", "max_age"]
        
    def validate_json_list(self, json_list):
        if isinstance(json_list, list):
            for el in self.metrics:
                if type(el) != str:
                    raise Exception("List elements should be of type string.")
        else:
            raise Exception("Invalid type. List is expected.")

    def validate_json_string(self, json_string):
        if type(json_string) != str:
            raise Exception("String expected.")

    def parse_json(self, file_name):
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



