Skip to content
Snippets Groups Projects
  1. Jul 11, 2019
  2. Jul 08, 2019
  3. May 24, 2019
  4. May 22, 2019
    • Enric Tejedor Saavedra's avatar
      [Exp PyROOT] Implement TObject __eq__ and __ne__ in C++ · bc09ba26
      Enric Tejedor Saavedra authored
      The equality and inequality operators are better implemented in C++,
      since we need to need to rely on Cppyy's rich comparison if the object
      we are comparing ourselves with is not a Python proxy or if it contains
      a null pointer. For example, we need to support the comparison to None.
      
      The rest of comparison operators (i.e. those that define order)
      can be implemented in Python, throwing a NotImplemented exception
      if we are not comparing two proxies to TObject or derivate.
      bc09ba26
  5. Apr 30, 2019
  6. Apr 29, 2019
    • Enric Tejedor Saavedra's avatar
      [Exp PyROOT] Add argument parsing to TPyROOTApplication · 505502c9
      Enric Tejedor Saavedra authored
      By default, PyROOT will send sys.argv to TApplication for the
      arguments to be parsed. User arguments for the Python script
      can be passed after a "-" or "--" in the command line and
      they will be ignored by PyROOT.
      
      The user can disable the aforementioned argument parsing by
      adding a configuration option before any lookup in the ROOT module:
      > import ROOT
      > ROOT.PyConfig.IgnoreCommandLineOptions = True
      505502c9
    • Enric Tejedor Saavedra's avatar
      [Exp PyROOT] Enable interactive ROOT graphics from Python · 61a7a685
      Enric Tejedor Saavedra authored
      This commit introduces the logic to display ROOT graphics when
      using Python interactively. For that purpose, hooks are installed
      to process the GUI events and to update the display.
      
      Note that the threading approach is not used anymore: no thread
      is explicitly created to process the events. The code based on
      hooks should work on all the platforms, but it needs to be
      tested. For the same reason, some code that handled the
      threading case on Windows has been removed for now, and will be
      restored only if necessary.
      
      Most of the code has been picked from several parts of the
      current ROOT.py and put together in the configuration of the
      PyROOT TApplication.
      
      The activation of the graphics is triggered only if ROOT is not
      in batch mode. Such mode can be set by the user right after
      importing ROOT.
      61a7a685
    • Enric Tejedor Saavedra's avatar
      [Exp PyROOT] Create an RPyROOTApplication when importing ROOT · 02517118
      Enric Tejedor Saavedra authored
      The RPyROOTApplication is a TApplication that sets up the nuts
      and bolts for interactive ROOT use from Python, closely
      following TRint.
      02517118
  7. Apr 23, 2019
  8. Apr 18, 2019
  9. Apr 17, 2019
  10. Apr 14, 2019
    • Stefan Wunsch's avatar
      [PyROOT exp] Make DeclareCppCallable py3 compliant · 4264cd49
      Stefan Wunsch authored
      [PyROOT exp] long does not exist anymore in Python3, map to int
      
      [PyROOT exp] Clear error indicator for fallback (enforced since py3.6)
      
      [PyROOT] Use Python/C API utility for warnings
      
      [PyROOT exp] Dont set error indicator during fetching keyword
      4264cd49
  11. Apr 11, 2019
    • Stefan Wunsch's avatar
      [PyROOT exp] Add feature to invoke Python callables from C++ · c6ecc408
      Stefan Wunsch authored
      [PyROOT exp] Move implementation of DeclareGenericCallable to separate source file
      
      [PyROOT exp] Add feature to jit Python callable using numba
      
      So far, the jitting is only supported for basic types.
      
      [PyROOT exp] Add proxy class to switch between numba and generic impl
      
      [PyROOT exp] Ensure no leaking PyObject if stepping out early in callable proxy
      
      [PyROOT exp] Allow user to pass optional name of wrapper function
      
      [PyROOT exp] Add test for dispatcher of wrapper functions
      
      [PyROOT exp] Put in first round of comment
      
       - numba_only, generic_only and verbose flag
       - put only one decorator
       - change namespace of C++ side functions
       - modularize code
       - adapt tests
      
      [PyROOT exp] Add missing DECREFs when stepping out due to an exception
      
      [PyROOT exp] Remove unnecessary import of headers
      
      [PyROOT exp] Make verbose=True to new default
      c6ecc408
  12. Mar 13, 2019
  13. Mar 12, 2019
  14. Mar 05, 2019
  15. Feb 22, 2019
  16. Feb 21, 2019
  17. Feb 19, 2019
  18. Feb 13, 2019
  19. Feb 11, 2019
  20. Feb 04, 2019
  21. Jan 25, 2019
  22. Jan 07, 2019
  23. Dec 12, 2018
  24. Nov 09, 2018
  25. Nov 02, 2018
Loading