Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix arguments in the fetch_simple_connections function calls #63

Merged
merged 1 commit into from
Dec 11, 2024
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
4 changes: 2 additions & 2 deletions neuprint/queries/connectivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ def fetch_common_connectivity(criteria, search_direction='upstream', min_weight=
"""
assert search_direction in ('upstream', 'downstream')
if search_direction == "upstream":
edges_df = fetch_simple_connections(None, criteria, min_weight, properties, client=client)
edges_df = fetch_simple_connections(None, criteria, min_weight=min_weight, properties=properties, client=client)

# How bodies many met main search criteria?
num_primary = edges_df['bodyId_post'].nunique()
Expand All @@ -734,7 +734,7 @@ def fetch_common_connectivity(criteria, search_direction='upstream', min_weight=
return edges_df.query('bodyId_pre in @_keep')

if search_direction == "downstream":
edges_df = fetch_simple_connections(criteria, None, min_weight, properties, client=client)
edges_df = fetch_simple_connections(criteria, None, min_weight=min_weight, properties=properties, client=client)

# How bodies many met main search criteria?
num_primary = edges_df['bodyId_pre'].nunique()
Expand Down