Simplify imports
This commit is contained in:
parent
2450c7bd24
commit
699347e461
2 changed files with 5 additions and 6 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from pickle import Pickler
|
from pickle import Pickler
|
||||||
from tracetools_analysis.conversion.ctf import *
|
from tracetools_analysis.conversion import ctf
|
||||||
|
|
||||||
def main(argv=sys.argv):
|
def main(argv=sys.argv):
|
||||||
if len(argv) != 3:
|
if len(argv) != 3:
|
||||||
|
@ -16,4 +16,4 @@ def main(argv=sys.argv):
|
||||||
|
|
||||||
with open(pickle_target_file, 'wb') as f:
|
with open(pickle_target_file, 'wb') as f:
|
||||||
p = Pickler(f, protocol=4)
|
p = Pickler(f, protocol=4)
|
||||||
ctf_to_pickle(trace_directory, p)
|
ctf.ctf_to_pickle(trace_directory, p)
|
||||||
|
|
|
@ -4,8 +4,7 @@
|
||||||
import sys
|
import sys
|
||||||
import pickle
|
import pickle
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
from tracetools_analysis.analysis.ros_processor import *
|
from tracetools_analysis.analysis import ros_processor, to_pandas
|
||||||
from tracetools_analysis.analysis.to_pandas import *
|
|
||||||
|
|
||||||
def main(argv=sys.argv):
|
def main(argv=sys.argv):
|
||||||
if len(argv) != 2:
|
if len(argv) != 2:
|
||||||
|
@ -16,9 +15,9 @@ def main(argv=sys.argv):
|
||||||
with open(pickle_filename, 'rb') as f:
|
with open(pickle_filename, 'rb') as f:
|
||||||
events = _get_events_from_pickled_file(f)
|
events = _get_events_from_pickled_file(f)
|
||||||
print(f'imported {len(events)} events')
|
print(f'imported {len(events)} events')
|
||||||
processor = ros_process(events)
|
processor = ros_processor.ros_process(events)
|
||||||
|
|
||||||
df = callback_durations_to_df(processor)
|
df = to_pandas.callback_durations_to_df(processor)
|
||||||
print(df.to_string())
|
print(df.to_string())
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue