Skip to content

Commit

Permalink
Minor debug
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Nov 23, 2023
1 parent 8b9c5bd commit 91cac65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/check_lineage_updates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function cleanup {
}
trap cleanup EXIT

cd $top_level/binn
cd $top_level/bin

git checkout $old_branch
./report_pr_changes --branch old --computation lineage_hash
Expand Down
6 changes: 3 additions & 3 deletions straxen/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def lowest_level_plugins(context, plugins):
"""

if not type(plugins) == np.ndarray:
if not isinstance(plugins, np.ndarray):
plugins = np.array(plugins)

low_lev_plugs = []
Expand All @@ -339,9 +339,9 @@ def directly_depends_on(context, base_plugins, all_plugins):
next_layer_plugins = []
for p in all_plugins:
dep_on = context._plugin_class_registry[p].depends_on
if type(dep_on) == str:
if isinstance(dep_on, str):
dep_on = [dep_on]
elif type(dep_on) == tuple:
elif isinstance(dep_on, tuple):
dep_on = list(dep_on)

if np.any(np.isin(base_plugins, dep_on)):
Expand Down

0 comments on commit 91cac65

Please sign in to comment.