-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Right now, we have an array src.filters that lists all the CTF filters for the images in an ImageSource. In reality, there are only a small number of filters in a dataset, so there's a natural mapping from the set of images to the (much smaller) set of images. Right now, we deal with this by constructing the array so that it contains many references to a small set of filters, but this causes problems, notably here:
ASPIRE-Python/src/aspire/source/__init__.py
Line 363 in 60f4ced
| f.__class__ = MultiplicativeFilter |
and here:
| unique_filters = list(set(src.filters)) |
A better approach might be to keep two separate variables: filters and filters_idx, the latter of which contains the indices corresponding to the list of unique filters in filters.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request