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

Simplify image loader signals #334

Merged
merged 16 commits into from
May 30, 2024
Merged

Conversation

saeliddp
Copy link
Collaborator

@saeliddp saeliddp commented May 20, 2024

Context

In addressing #314 , I decided to simplify our image loader signals. Before, we had three signals, one for signifying whether curr, prev, and next were finished loading. Now we just have one signal, is_idle which is emitted when all images are done loading in the image loader.

Changes

  1. curation/curation_image_loader: modify signals in interface and implementations. Some significant work in the real implementation to address the new is_idle signal.
  2. curation/curation_model.py: update the signals here to correspond with the image loader signals. Also added a 'start image loading' method to correspond with the loader as well.
  3. curation/main_view.py: update to listen and react to the new signals

Testing

Updated unit tests where necessary, manually tested.

@saeliddp saeliddp requested review from hughes036 and yrkim98 May 20, 2024 22:31
Copy link
Collaborator

@hughes036 hughes036 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the design improvement.

I noted a few places where I am confused and some commenting would help. A few other pieces of feedback - looks very close to ready.

@saeliddp saeliddp force-pushed the 314_enable_next_when_curr_ready branch from 1d550a6 to db01496 Compare May 29, 2024 18:40
@saeliddp saeliddp merged commit 1be105e into main May 30, 2024
3 checks passed
@saeliddp saeliddp deleted the 314_enable_next_when_curr_ready branch May 30, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants