8000 Sequences restructuring by Pwhsky · Pull Request #331 · DeepTrackAI/DeepTrack2 · GitHub
[go: up one dir, main page]

Skip to content

Sequences restructuring #331

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

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

Pwhsky
Copy link
Contributor
@Pwhsky Pwhsky commented May 14, 2025

WIP of restructuring sequences to be more intuitive.

SequentialProperty changes:

SequentialProperty now has two new methods:
set_sequence_length(), set_sequence_step(), which lets you directly set the Property.sequence_length and Property.sequence_step attributes without having to use SequentialProperty.store().

SequentialProperty now has one new additional argument:
current_value, which is assigned to the SequentialProperty.current attribute upon creation.

Feature changes:

to_sequential() is a Feature class method intended to replace the Sequential() method found in sequences.py.

Sequential() is used as:

rotating_ellipse = deeptrack.sequences.Sequential(rotation=get_rotation)
imaged_rotating_ellipse = optics(rotating_ellipse)
...

The new Feature method to_sequential() will replace Sequential(), and is used as:

rotating_ellipse = ellipse.to_sequential(rotation=get_rotation)
imaged_rotating_ellipse = optics(rotating_ellipse)
...

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.

1 participant
0