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 iteration over Pandas Series #1262

Merged
merged 1 commit into from
Jul 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 scvelo/inference/_metabolic_labeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def get_counts(gex, labeling_time_mask, obs_dist_argsort, obs_id, neighbors):
# IDs of observations in each labeling time to consider
obs_ids = {
idx: obs_dist_argsort[idx][obs_id, : (val + 1)]
for idx, val in neighbors.iteritems()
for idx, val in neighbors.items()
}
# Stacked counts to consider
counts = np.hstack(
Expand Down Expand Up @@ -452,7 +452,7 @@ def _fit(obs_id: int):
)

_labeling_times = np.hstack(
[[idx] * (val + 1) for idx, val in neighbors.iteritems()]
[[idx] * (val + 1) for idx, val in neighbors.items()]
)

experiment = (
Expand Down
Loading