Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions thicket/thicket.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,31 @@ def from_caliperreader(
**kwargs,
)

@staticmethod
def from_timemory(
filename,
intersection=False,
fill_perfdata=True,
disable_tqdm=False,
**kwargs,
):
"""Helper function to read one timemory file

Arguments:
filename (str): name of a timemory json file
intersection (bool): whether to perform intersection or union (default)
fill_perfdata (bool): whether to fill missing performance data with NaNs
disable_tqdm (bool): whether to display tqdm progress bar
"""
return Thicket.reader_dispatch(
GraphFrame.from_timemory,
intersection,
fill_perfdata,
disable_tqdm,
filename,
**kwargs,
)

@staticmethod
def from_literal(graph_dict):
"""Create a Thicket from a list of dictionarires.
Expand Down
Loading