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

Add support for getters #587

Merged
merged 19 commits into from
Nov 30, 2023
Merged

Commits on Nov 30, 2023

  1. ENH: Add getters

    Getters are designed with the expectation that they will be called twice. On the
    first pass the getter is added to a queue and a callback function is set on each.
    Once the getter resolves the result is set in the results dict and getters are
    ready to be called again to return their result.
    bnmajor committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    aec5993 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9a998a0 View commit details
    Browse the repository at this point in the history
  3. ENH: Listen to pre_run_cell signal

    This allows us to grab the cell id and raw cell string for re-running cells
    with getters.
    bnmajor committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    e1a74b7 View commit details
    Browse the repository at this point in the history
  4. ENH: Build a CellWatcher class to monitor cells before running

    Intercept execute_requests (which will be all cells queued to run after the
    Viewer class has been instantiated. Once the itk_viewer has been created the
    queue is processed one request at a time. If a cell contains getters, futures
    are created for each and a callback function is set to set the result as they
    resolve. Once all of the results are set the cell is run and the queue
    continues to be processed.
    bnmajor committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    4d4464e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0f59c64 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6b77217 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4138f47 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6b03793 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    06aa218 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    cba9c04 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    44e9913 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    1915084 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    e6f0bcc View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    c2783ca View commit details
    Browse the repository at this point in the history
  15. BUG: Fix logic for executing next request

    If we have a current request when the queue is empty we still need to execute
    that cell.
    bnmajor committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    d0c41c2 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    916dd5c View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    397fc00 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    2218712 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    a0b8352 View commit details
    Browse the repository at this point in the history