1. 14 Sep, 2022 2 commits
  2. 08 Sep, 2022 3 commits
  3. 25 Jan, 2022 7 commits
  4. 24 Jan, 2022 11 commits
  5. 13 Aug, 2019 1 commit
  6. 08 Aug, 2019 1 commit
  7. 03 Apr, 2019 1 commit
  8. 08 Mar, 2019 1 commit
  9. 04 Jun, 2018 3 commits
  10. 03 Jun, 2018 4 commits
    • Jason Milhone's avatar
      fc1c1104
    • Jason Milhone's avatar
      e4f39b1c
    • Jason Milhone's avatar
      Add concurrent.futures functionality · 8aca22a3
      Jason Milhone authored
      I'm replacing using the QThreadPool for handling all of the MDSplus
      calls with a concurrent.futures.ThreadPoolExecutor.
      
      There is a new function in mdsplushelpers called retrieve_all_data that
      uses the ThreadPoolExecutor.  A keyword is a progress_signal. This is a
      Qt signal that can be connected back to a progress bar to keep
      functionality from before.  I should probably wrap the emitting in a
      try except clause.
      
      retrieve_all_data is called from an instance of a Worker using the
      original QThreadPool in app.py. The done signal is connected to
      handle_mdsplus_data.
      
      I've removed handle_returning_data because it is no longer needed.  The
      progress bar is updated via the new function update_progress_bar which
      is connected to the worker progress signal.
      
      I modified workers.py to pass its progress signal to retrieve_all_data.
      
      ToDo:
          Decide on an timeout implementation detail.  I'm thinking about
          adding it to a global configuration.  It is nice to have, but it can
          take a long time to grab all of the data for long cathode plasmas.
      8aca22a3
    • Jason Milhone's avatar
      Cast time and data as numpy ndarrays · f7043a09
      Jason Milhone authored
      I've decided to just leverage numpy for my type checking. I really only
      want to deal with numpy arrays, so I removed the isistance check against
      Iterable.
      
      The truthyness now is simplier and just checks if len(self) is greater
      than 1.  An implementation detail that I'm not sure if I like is it will
      throw a ValueError if the lengths of time and data don't match.
      f7043a09
  11. 01 Jun, 2018 1 commit
    • Jason Milhone's avatar
      Add lru_cache logging and emptying in GUI · f80b2d99
      Jason Milhone authored
      Users can now empty the cache when they need to regrab data such as
      after a change has been made on the MDSplus tree side.
      
      The size of the cache can now be monitored via logging.
      f80b2d99
  12. 31 May, 2018 5 commits