GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still and

Commit 7b0c91f1 authored by Ana Custura's avatar Ana Custura

Order analysis and filter keys, authored by Karsten

parent 95b749a8
......@@ -65,10 +65,12 @@ class Filtering(object):
if not keep:
tor_circuits[circuit_id]["filtered"] = True
tor_circuits[circuit_id] = dict(sorted(tor_circuit.items()))
def apply_filters(self, input_path, output_dir, output_file):
self.analysis = OPAnalysis.load(filename=input_path)
self.analysis.json_db["filters"] = self.filters
self.analysis.json_db = dict(sorted(self.analysis.json_db.items())), output_prefix=output_dir, sort_keys=False)
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