Skip to content

Commit

Permalink
set self.graph_data_model and update it if data_model_grapher is not …
Browse files Browse the repository at this point in the history
…provided
  • Loading branch information
afwillia committed Aug 26, 2024
1 parent bb7c450 commit 8f5bc1a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions schematic/visualization/attributes_explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(

self.jsonld = load_json(self.path_to_jsonld)
if data_model_graph_pickle and not graph_data_model:
graph_data_model = read_pickle(data_model_graph_pickle)
self.graph_data_model = read_pickle(data_model_graph_pickle)

# Parse Model
if not parsed_data_model:
Expand All @@ -46,9 +46,8 @@ def __init__(
# Instantiate DataModelGraph
if not data_model_grapher:
data_model_grapher = DataModelGraph(parsed_data_model, data_model_labels)

# Generate graph
self.graph_data_model = data_model_grapher.graph
# Generate graph
self.graph_data_model = data_model_grapher.graph

# Instantiate Data Model Graph Explorer
if not data_model_graph_explorer:
Expand Down

0 comments on commit 8f5bc1a

Please sign in to comment.