Rename ROS processing file and move to analysis submodule

This commit is contained in:
Christophe Bedard 2019-06-06 09:21:41 +02:00
parent d1ea1bd9bd
commit e3a1564041
3 changed files with 94 additions and 7 deletions

View file

@ -3,7 +3,7 @@
import sys
import pickle
from tracetools_analysis.conversion.ros import *
from tracetools_analysis.analysis.ros import *
def main(argv=sys.argv):
if len(argv) != 2:
@ -14,7 +14,7 @@ def main(argv=sys.argv):
with open(pickle_filename, 'rb') as f:
events = _get_events_from_pickled_file(f)
print(f'imported {len(events)} events')
ros_import(events)
ros_process(events)
def _get_events_from_pickled_file(file):
p = pickle.Unpickler(file)