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

Qtasks #18

Merged
merged 109 commits into from
Aug 18, 2020
Merged

Qtasks #18

merged 109 commits into from
Aug 18, 2020

Conversation

sustielz
Copy link
Collaborator

Pull reimplemented tasks and task GUI to master

Grier Group and others added 28 commits July 25, 2020 19:50
…tion. Include script for visualizing trajectories.
Re-implementing Record.py from main branch
Task to move traps off-screen, acquire a background image, and return traps to original position
Reorganized trajectory setter, revised save path for trajectories and added option to save at custom filename
Now functional. Modified MoveTraps so that running Move doesn't destroy the trajectory. Also worked out filename stuff.
Get and set task data from non-blocking tasks. (This will need more thought)

Fix bug in task data setter.

See new Tasks for examples of passing data between tasks
setTaskData is the highlight! This is a Task that's only function is to receive input, and save that input as taskData for the next task. Calling this task from the menu prompts the user to enter the task data via QInputBox.
An example of this is in TaskDataExample3, where the user can type 'xc' and 'yc' and their corresponding values to set the center for Encircle, instead of going into the Encircle file and changing it manually (which requires pyfab to restart). 
 
GlobalCounter is useful for testing background tasks, and timing # of frames between events (such as registering a task and that task finishing __init__, or timing how many frames initialize() takes to finish). Also used to demonstrate passing task data.


Note: In general, the screen and the terminal output freeze while init() is running, which is noticable for tasks which take longer than a frame to start. This is why assemble glitches the UI. One possible workaround could be to try running Assemble as a background task that calculates trajectories and then passes them to a Move task - though this needs more thought.
@sustielz sustielz merged commit 11ef8e6 into master Aug 18, 2020
@sustielz sustielz mentioned this pull request Aug 18, 2020
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.

2 participants