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

EntityCollection.map(predicate) should produce a list #35

Closed
rkoschmitzky opened this issue Jun 27, 2023 · 0 comments · Fixed by #41
Closed

EntityCollection.map(predicate) should produce a list #35

rkoschmitzky opened this issue Jun 27, 2023 · 0 comments · Fixed by #41
Assignees
Labels
bug Something isn't working good first issue Good for newcomers
Milestone

Comments

@rkoschmitzky
Copy link
Contributor

Problem Statement

EntityCollection.map(predicate) produces a generator and not a list anymore.

Expected Behavior

EntityCollection.map(predicate) should produce a list and not a generator object, as this was the intended behavior and correlates to the current behavior of the group_and_map method.

Context

Provide any relevant background information or context that may help in understanding the issue.

  • OS: Any
  • Python version: Any 3.x
  • Trackteroid version: main

Reproducible Steps

  1. Produce a collection via query
  2. print the result of collection.map(lambda _: True).
@rkoschmitzky rkoschmitzky added the bug Something isn't working label Jun 27, 2023
@rkoschmitzky rkoschmitzky added this to the v0.1.0rc4 milestone Jun 27, 2023
@rkoschmitzky rkoschmitzky added the good first issue Good for newcomers label Jun 28, 2023
@rkoschmitzky rkoschmitzky changed the title EntityCollection.map(predicate) should produce a list EntityCollection.map(predicate) should produce a list Jun 28, 2023
@rkoschmitzky rkoschmitzky self-assigned this Jun 28, 2023
@rkoschmitzky rkoschmitzky linked a pull request Jun 28, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant