Skip to content

Commit

Permalink
Initialize plugins whose depends_on is property (#1379)
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed May 16, 2024
1 parent 0379c2f commit 6effa1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions straxen/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ def storage_graph(
# if the plugin is stored, fill in green
fillcolor = "green"
else:
save_when = deepcopy(st._plugin_class_registry[target].save_when)
save_when = deepcopy(st._plugin_class_registry[target]().save_when)
if isinstance(save_when, immutabledict):
save_when = save_when[target]
# if it is not stored, fill in the color according to save_when
Expand All @@ -531,7 +531,7 @@ def storage_graph(
)
if (not st.is_stored(run_id, target)) and (target not in not_stored):
not_stored.add(target)
depends_on = deepcopy(st._plugin_class_registry[target].depends_on)
depends_on = deepcopy(st._plugin_class_registry[target]().depends_on)
depends_on = strax.to_str_tuple(depends_on)
for dep in depends_on:
# only add the node to the graph but not save the plot
Expand Down

0 comments on commit 6effa1e

Please sign in to comment.