1. 04 Jan, 2023 1 commit
  2. 19 Dec, 2022 1 commit
  3. 24 May, 2022 1 commit
  4. 21 May, 2022 1 commit
  5. 13 May, 2022 1 commit
  6. 10 May, 2022 1 commit
  7. 24 Apr, 2022 1 commit
  8. 13 Apr, 2022 2 commits
    • Wuttke, Joachim's avatar
      simargs, plotargs -> bp module variables · d322d986
      Wuttke, Joachim authored
      d322d986
    • Wuttke, Joachim's avatar
      auto update many examples; many tests broken · a4920b13
      Wuttke, Joachim authored
      def user_edit(fn, t):
      
          t = re.sub(r'def get_simulation\(sample\):',
                     'def get_simulation(sample, **simargs):', t)
      
          N = 0
          xx = r'\n((\s+?)\w+ = ba\.\w+?Detector)\((\d+), (.+?, .+?), \d+, (.+?, .+?)\)'
          m = re.search(xx, t)
          if m:
              N = int(m.group(3))
          t = re.sub(xx, r"\n\2n = simargs['n']\n\1(n, \4, n, \5)", t)
      
          xx = r'(\w+ = ba\.\w+?Detector)\((\d+), (.+?, .+?, .+?)\)'
          m = re.search(xx, t)
          if m:
              N = int(m.group(2))
          t = re.sub(xx, r"\1(simargs['n'], \3)", t)
      
          xx = r"(if __name__ == '__main__':\n)((.*?\n)+?)(\s+\w+ = get_simulation\(\w+)\)\n((.*?\n)*?)\s+bp\.plot_simulation_result\(simulation\.simulate\(\)\)"
          t = re.sub(xx, r"\1" +
                     "    plotargs, simargs = bp.kwargs_from_cmdline(sim_n=" + str(N) + ")\n" +
                     r"\2" +
                     r"\4, **simargs)\n"
                     r"\5" +
                     "    result = simulation.simulate()\n" +
                     "    bp.plot_simulation_result(result, **plotargs)", t)
      
          return t
      a4920b13
  9. 08 Apr, 2022 1 commit
  10. 26 Feb, 2022 1 commit
  11. 25 Aug, 2021 1 commit
  12. 19 Apr, 2021 2 commits
  13. 14 Mar, 2021 1 commit
  14. 07 Mar, 2021 2 commits
  15. 05 Mar, 2021 1 commit
  16. 14 Dec, 2020 1 commit
  17. 07 Dec, 2020 1 commit
  18. 28 Nov, 2020 1 commit
  19. 19 Nov, 2020 4 commits
  20. 27 Sep, 2020 1 commit
  21. 15 Jul, 2020 1 commit
  22. 30 Nov, 2018 1 commit
  23. 19 Nov, 2018 3 commits
  24. 23 Jul, 2018 2 commits
  25. 18 Dec, 2017 2 commits
  26. 29 Mar, 2017 1 commit
  27. 19 Jan, 2017 1 commit
  28. 22 Sep, 2016 1 commit
  29. 25 Aug, 2016 1 commit
  30. 17 Aug, 2016 1 commit