utils
get_artifacts_from_artifactdef(db, artifact_entries)
¶
Converts LineaArtifactDef list to a LineaArtfact list by initializing the artifacts from the db provided Artifact entries are specified as name and optionally version as the end user would specify.
Source code in lineapy/graph_reader/utils.py
25 26 27 28 29 30 31 32 33 34 35 |
|
group_artifacts_by_session(all_linea_artifacts)
¶
This helper function is used to group target and reuse_precomputed artifacts so that we can create SessionArtifacts for each Session.
Source code in lineapy/graph_reader/utils.py
38 39 40 41 42 43 44 45 46 47 48 49 50 |
|
is_import_node(graph, node_id)
¶
Given node_id, check whether it is a CallNode doing module import
Source code in lineapy/graph_reader/utils.py
10 11 12 13 14 15 16 17 18 19 20 21 22 |
|