Skip to content

parser: pre_filter is not run in _get_data #315

@danielrichman

Description

@danielrichman
diff --git a/habitat/parser.py b/habitat/parser.py
index 5435093..27739d8 100644
--- a/habitat/parser.py
+++ b/habitat/parser.py
@@ -228,6 +228,8 @@ class Parser(object):

     def _get_data(self, raw_data, callsign, config, module):
         """Attempt to parse data from what we know so far."""
+        raw_data = self.filtering.pre_filter(raw_data, module)
+
         sentences = config["payload_configuration"]["sentences"]
         for sentence_index, sentence in enumerate(sentences):
             if sentence["callsign"] != callsign:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions