*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/labscript-suite/lyse.git. Pull mirroring updated .
  1. Jun 11, 2024
  2. Apr 15, 2024
  3. Apr 12, 2024
  4. Mar 19, 2024
  5. Feb 09, 2024
  6. Feb 07, 2024
  7. Feb 06, 2024
  8. Jan 19, 2024
  9. Jan 17, 2024
  10. Oct 12, 2023
  11. Aug 15, 2023
  12. May 11, 2023
  13. Apr 19, 2023
  14. Apr 18, 2023
    • Chris Billington's avatar
      Merge pull request #106 from labscript-suite/group-introspection-simplification · dfd3ba3a
      Chris Billington authored
      Resolve issue with Run object choosing group name based on script name
      dfd3ba3a
    • chrisjbillington's avatar
      Resolve issue with Run object choosing group name based on script name · 5138e40a
      chrisjbillington authored
      Unsure since when this has been broken, but lyse routines used to work
      fine outside of lyse, as long as you specified the h5 file. However,
      prior to this fix, when instantiating a `Run` object whilst running a
      script outside of lyse, `Run.__init__()` fails to introspect the name
      of the main script, in order to select the default group name to which
      results should be saved.
      
      The previous introspection code likely predates some changes we made
      such that traversing a call stack in order to find the top-level script
      is no longer necessary. The analysis routine appears in `sys.modules`
      as the `__main__` module, as does the top-level script when running an
      analysis routine from outside of lyse. So we can just use that. As
      before, if the `Run` object finds it is being instantiated in an
      unusual environment where there is no `__main__` module in
      `sys.modules` or it doesn't have a `__file__`, then we just skip
      setting the group name. We used to cough a warning about this, but
      that's no longer needed as the user will instead get an exception if
      they try to save a result, telling them they they need to set the group
      first.
      5138e40a
    • David Meyer's avatar
      31e7c120
    • David Meyer's avatar
  15. Apr 17, 2023
Loading