Skip to content

Commit

Permalink
Use iterate when fetching annotation in tables
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorjerse committed Mar 7, 2024
1 parent 4b85642 commit 2abfb81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resdk/tables/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def _get_annotations(self) -> pd.DataFrame:
# Make one query for all values instead of one per sample
avs = self.resolwe.annotation_value.filter(
entity__collection=self.collection.id
)
).iterate()

sample_data = defaultdict(dict)
sample_dtypes = defaultdict(dict)
Expand Down

0 comments on commit 2abfb81

Please sign in to comment.