-
Notifications
You must be signed in to change notification settings - Fork 0
add loading of an example dataset with image and seed layers #7
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds functionality to load sample datasets (image and seed layers) for the CoTracker plugin, accessible via File > Open Sample > CoTracker sample menu in napari.
Key changes:
- Implements
load_sample_data()function that loads a chicken GIF from GitHub and corresponding seed points from a local CSV file - Updates napari.yaml to register the new sample data command and removes unused reader/writer plugin contributions
- Removes boilerplate reader and writer modules that were not being used
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| src/napari_cotcotcot/napari.yaml | Updates command registration from make_sample_data to load_sample_data and removes unused reader/writer plugin registrations |
| src/napari_cotcotcot/_sample_data.py | Replaces placeholder implementation with functional code that downloads a GIF and loads seed points from CSV |
| src/napari_cotcotcot/data/Gallus_gallus_domesticus/seed_Chicken1.csv | Adds sample seed point data with time and spatial coordinates |
| src/napari_cotcotcot/_reader.py | Removes unused boilerplate reader module |
| src/napari_cotcotcot/_writer.py | Removes unused boilerplate writer module |
Comments suppressed due to low confidence (1)
src/napari_cotcotcot/_sample_data.py:11
- Import of 'urlretrieve' is not used.
from urllib.request import urlretrieve
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
remove unnecessary import Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
References and relevant issues
(#4)
Description
File > Open Sample > CoTracker sample (cotcotcot)
