Skip to content
Snippets Groups Projects
  1. Sep 02, 2024
  2. Aug 26, 2024
  3. Aug 22, 2024
  4. Aug 21, 2024
  5. Aug 19, 2024
    • Mikhail Svechnikov's avatar
      optimized replication through mediation · 00582835
      Mikhail Svechnikov authored and Mikhail Svechnikov's avatar Mikhail Svechnikov committed
      00582835
    • Ammar Nejati's avatar
      [a.newExamples] Clean up the Examples provided to the user (Major change) · 3397f803
      Ammar Nejati authored
      Merging branch 'a.newExamples'  into 'main'.
      
      A multi-line Ruby macro is used to differentiate between the Examples presented to the user from those which are used for testing.
      For instance,
      ```
      <%- if test_mode -%>
      plotargs = bp.parse_commandline()
      bp.make_plot_row(results, **plotargs)
      bp.export(**plotargs)
      <%- else -%>
      bp.make_plot_row(results)
      plt.show()
      <%- end -%>
      ```
      which for the test mode reduces to 
      ```
      plotargs = bp.parse_commandline()
      bp.make_plot_row(results, **plotargs)
      bp.export(**plotargs)
      ```
      and, for the public user script, to
      ```
      bp.make_plot_row(results)
      plt.show()
      ```
      
      Hence, in this way, the details of the test scripts remains hidden from the user, and the script remains readable and less error-prone, regarding long-term maintenance.
      
      * Another mode, `figure_mode`, is added to produce the figures for the documentation (via `figures` target).
      
      * The unneeded function `show_or_export` is removed from `ba_plot`. Instead, a new function `export(**plotargs)` is added to `ba_plot` and whenever showing the plot is needed, the standard `matplotlib.pyplot.show` must be used.
      
      * `auto/MiniExamples` and `auto/Examples` are reproduced.
      
      * The following reference data are updated:
        - specular/SpecularSimulationWithRoughness
        - specular/RoughnessModel
        - specular/MagneticLayerImperfect
        - scatter2d/CorrelatedRoughness
        - scatter2d/CoreShellNanoparticles2
        - offspec/OffspecResolved
      
      
      * Problem: `Example.scatter2d.RoughAndSpecular.persist` does not pass on MacOS-ARM CI machine, although it is passed on Linux, Windows and MacOS-x64 CI machines. Reasons are to be investigated; see issue #864 .
      
      
      Related to issues #912 and #1008
      
      See merge request !2663
      3397f803
    • AlQuemist's avatar
      Turn off RoughAndSpecular test which fails only on MacOS-ARM · e17d1778
      AlQuemist authored
      Related to issue #864
      e17d1778
  6. Aug 14, 2024
  7. Aug 13, 2024
Loading