Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
ImageSeriesWidget fixes #196
base: master
Are you sure you want to change the base?
ImageSeriesWidget fixes #196
Changes from 44 commits
0606860
eaa77b8
8e38592
22396a5
3603e17
68a4e80
4940ee7
3a6a197
f5e21cb
b438b7c
234f37d
e5024ad
6a45abd
45b2098
b91e39a
5211089
85f71d8
45b1f7c
b6bcaad
1095759
bf5fa4d
1136fac
2d02901
a7c06e7
34a053c
8906b88
9782709
17d9495
d2b7d59
22a34ff
0288883
4d785c2
7dda8db
f31e312
f73fde3
798a528
c8a622f
aa04d9f
d29ea9b
5509487
b5af95c
0213ccc
9737047
29b003e
8e72ae9
9bb4cf0
3add69a
ae8e9cc
c2e2be0
fe7d182
85a0d0e
3ea7f58
329d702
6541993
089ed60
1d131bf
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
why reset tmin to 0 every update?
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.
knowing the
starting_time
for video files other than the first one is not possible. Unless we assume the starting time to the end time for the last video in the sequence. But I don't think this would be a good approximation, so I have made thetime_slider
widget to span the video frames (0, num_frames) instead, only when the user requests video other than the first one. What do you think of this approach?Check here https://github.com/NeurodataWithoutBorders/nwb-jupyter-widgets/blob/3add69ade68d62a7790abeac45f538e11c7ea7dc/nwbwidgets/image.py#L114
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.
a foreign time slider should not be included in the children
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.
In case there is a
foreign_time_slider
, then what is the best way to add another callback (update figure) ? The usual way of usingforeign_time_slider.observe(set_figure)
would overwrite the old callbacks.One possible solution would be to link the values of
foreign_time_slider
to the newtime_slider
:widgets.jslink((foreign_time_slider,"value"),(time_slider,"value"))
In effect, the time_slider would now be controlled by the foreign slider while keeping the functionality of being changed independently.Check ae8e9cc