Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parser: pre_filter is not run in _get_data #315

Open
danielrichman opened this issue May 25, 2013 · 0 comments · May be fixed by #316
Open

parser: pre_filter is not run in _get_data #315

danielrichman opened this issue May 25, 2013 · 0 comments · May be fixed by #316

Comments

@danielrichman
Copy link
Member

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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant