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 obs and var defaults to return all values if none spec'd #676

Merged
merged 1 commit into from
Oct 30, 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
6 changes: 2 additions & 4 deletions src/tiledb/cloud/soma/mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,6 @@ def build_collection_mapper_workflow_graph(
assert isinstance(task_graph_name, str)

args_dict = args_dict or {}
obs_attrs = obs_attrs or []
var_attrs = var_attrs or []

# Create context that enables faster array open
# cfg_dict = cfg_dict or {}
Expand Down Expand Up @@ -356,9 +354,9 @@ def experiment_to_anndata_slice(
query = exp.axis_query(measurement_name, obs_query=obs_query, var_query=var_query)

column_names = {}
if obs_attrs is not None:
if obs_attrs:
column_names["obs"] = obs_attrs
if var_attrs is not None:
if var_attrs:
column_names["var"] = var_attrs

adata = query.to_anndata(X_name=X_layer_name, column_names=column_names)
Expand Down
Loading