Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/mantidproject/mantid.git. Pull mirroring updated .
  1. Feb 21, 2020
    • Martyn Gigg's avatar
      Replace block-style progress reporter with C-api based one · f35671a7
      Martyn Gigg authored
      This implementation is based on the implementation in MantidPlot.
      A C++-based executor has been added that can execute Python code
      with the option of installing a trace function to update
      a progress marker on a given editor window.
      
      The old implementation attempted to chunk up the script into
      the smallest executable blocks and mark each of these as when
      they were executed. There were 2 issues:
        - the chunking of the scripts was error prone as it actually
          requires a good knowledge of how Python internally handles
          indentation etc. It was fairly easy to break and future
          internal updates to Python would have required unknown changes.
        - the progress reporting resolution was far poorer than MantidPlot
          as the actual line being executed was not reported but inferred
          by what block was being executed giving a false sense of progress
          through a script.
      f35671a7
  2. Nov 14, 2019
  3. Oct 24, 2019
    • Harry Saunders's avatar
      Add comment to line that checks for SyntaxErrors · 9082f843
      Harry Saunders authored
      It was unclear (at least to me) what a particular line in
      PythonCodeExecution.execute was doing. A comment was added so that no
      one (like me) is tempted to remove it in the future.
      9082f843
    • Harry Saunders's avatar
      Pass future import compiler flags to script exec · 09048917
      Harry Saunders authored
      The __future__ imports were not doing their job in scripts run in
      Workbench because the relevant compiler flags were not passed to the
      `compile` function when the scripts were executed.
      
      Parse the given the given code for __future__ imports and pass the
      relevant flags.
      09048917
  4. Oct 04, 2019
    • Harry Saunders's avatar
      Make jedi completions optional in CodeCompleter · c7fd91c0
      Harry Saunders authored
      jedi crashes when launched using PyCharm's debugger on Python 2. Having
      jedi as optional means we can still use the debugger whilst we're not
      using Python 3.
      
      Only add functions/builtins from simple api if they are title case and
      don not begin with a '_'.
      c7fd91c0
  5. Oct 01, 2019
  6. Apr 11, 2019
  7. Mar 14, 2019
  8. Mar 05, 2019
  9. Feb 25, 2019
  10. Feb 21, 2019
  11. Feb 20, 2019
  12. Feb 15, 2019
  13. Feb 07, 2019
  14. Nov 14, 2018
  15. Nov 13, 2018
  16. Oct 05, 2018
    • Nick Draper's avatar
      Merge pull request #23693 from mantidproject/23488_update_file_headers · ef3ccb58
      Nick Draper authored
      Update copyright headers in all files
      
      Squashed commit of the following:
      
      * First version of a script to manage copyright statements
      
      re #23468
      
      * Neatened up script, added comments
      
      re #23488
      
      * move script to tools directory
      
      re #23488
      
      * small script changes and a couple of manual file changes
      
      re #23488
      
      * Minor chnage to whitespace detection in regex
      
      re #23488
      
      * Add an excluded directory
      
      re #23488
      
      * remove a repeasted copyright statement in a file
      
      re #23488
      
      * Don't comsume the comment end if it is on the same line
      
      re #23488
      
      * fix error in new copright parsing
      
      re #23488
      
      * remove double copyrifght entry
      
      re #23488
      
      * Improve handling of old copyrights at the start of comments
      
      re #23488
      
      * remove empty comments re #23488
      
      * exclude gsoapgenerated directories
      
      re #23488
      
      * Sort out greedy line matching re #23488
      
      * improve empty comment removal
      
      re #23488
      
      * improve false positives
      
      re #23488
      
      * impressive speedup by limiting regex matching length
      
      re #23488
      
      * remove evil invisible non ascii character
      
      Also upadte the copyright at the same time
      
      re #23488
      
      * resolve multiple copyrights in a single file
      
      re #23488
      
      * resolve an issue with new statement detection
      
      re #23488
      
      * another unprintable unicode character
      
      re #23488
      
      * pep updates and cmake the new copyright fit clang format
      
      re #23488
      
      * update already done new format headers
      
      re #23488
      
      * wrong type of bracket
      
      re #23488
      
      * Update class_maker and friends
      
      re #23488
      
      * Update all copyright statements
      
      re #23488
      
      * clang format re #23488
      
      * flake8 warnings re #23488
      
      * Flake8 warnings re #23488
      
      * Exclude .cmake.in and rb.in files
      
      re #23488
      
      * replace missing line re #23488
      
      * exclude .py.in files as they are flasely recognized as C++
      
      re #23488
      
      * another setp.py.in re #23488
      
      * another .py.in correction re #23488
      
      * Hopefully the last of the .py.in files re #23488
      
      * resolve utf-8 encoding of python files and changed ABINS checksum
      
      re #23488
      
      * updates to unit tests that reference line numbers
      
      re #23488
      
      * remaining unit test files and other fixes
      
      re #23488
      ef3ccb58
  17. Sep 26, 2018
  18. Feb 14, 2018
    • WHITFIELDRE email's avatar
      Fix workbench for IPython 6 · 751b8b94
      WHITFIELDRE email authored
      ._update_indent() was changed not to take arguments and IPython.core.usage.quick_guide was removed.
      
      In test_execute_async_returns_failure_on_runtime_error_and_captures_expected_stack the comment was causing an IndentationError, changing it to a docstring fixes the problem. I don't think this is related to IPython but probably a python 3.6 problem.
      751b8b94
  19. Jan 26, 2018
  20. Jan 16, 2018
  21. Jan 15, 2018
  22. Jan 14, 2018
  23. Jan 12, 2018
  24. Jan 11, 2018
    • Martyn Gigg's avatar
      Convert PythonCodeExecution callbacks to Qt signals · 0e553c2a
      Martyn Gigg authored
      It makes it easier to integrate with other code. This uncovered an
      error in the code execution that has been fixed here. Previous changes
      were not always executing the code as blocks and this caused
      some tests to pass when they would fail in the block-based scenario.
      We now only execute as blocks so the test now covers this.
      Refs #21251
      0e553c2a
  25. Jan 10, 2018
  26. Jan 09, 2018
  27. Jan 08, 2018
Loading