1. 04 Jan, 2023 3 commits
  2. 01 Jun, 2022 1 commit
  3. 19 May, 2022 2 commits
  4. 11 May, 2022 1 commit
  5. 24 Apr, 2022 1 commit
  6. 21 Apr, 2022 2 commits
    • Wuttke, Joachim's avatar
      yapf3 -i --style=.style.yapf3 ./Tests/PyUnit/shape2d.py · 3af5e45c
      Wuttke, Joachim authored
      ./Tests/PyUnit/transform_CoreShellBox.py
      ./Tests/PyUnit/fit2d.py
      ./Tests/PyUnit/sliced_spheres.py
      ./Tests/PyUnit/transform_box.py
      ./Tests/PyUnit/histogram2d.py
      ./Tests/PyUnit/intensitydata_io.py
      ./Tests/PyUnit/utils.py
      ./Tests/PyUnit/transform_cube.py
      ./Tests/PyUnit/intensitydata.py
      ./Tests/PyUnit/sliced_composition.py
      ./Tests/PyUnit/intensitydata_io_tiff.py
      ./Tests/PyUnit/transform_BoxComposition.py
      ./Tests/Examples/CheckEquality.py
      ./Tests/Functional/PyFit/fitobjective_api.py
      ./Tests/Functional/PyFit/standalone_fits.py
      ./Tests/Functional/PyFit/minimizer_api.py
      ./Wrap/Python/std_simulations.py
      ./Wrap/Python/std_samples.py
      ./Wrap/Python/sample_tools.py
      ./Wrap/Python/ba_plot.py
      ./Wrap/Python/ba_fitmonitor.py
      ./Wrap/PythonPackage/src/bornagain/lib/__init__.py
      ./Wrap/Swig/tweaks.py
      ./Wrap/Swig/doxy2swig.py
      ./Doc/PhysicsManual/fig/drawing/Green.py
      ./Examples/fit54_ExternalMinimizer/lmfit_with_plotting.py
      ./Examples/fit54_ExternalMinimizer/lmfit_basics.py
      ./Examples/scatter2d/CylindersInAverageLayer.py
      ./Examples/scatter2d/CustomFormFactor.py
      ./Examples/scatter2d/DodecahedraSAS.py
      ./Examples/scatter2d/ParticlesCrossingInterface.py
      ./Examples/scatter2d/Interference1DLattice.py
      ./Examples/scatter2d/CoreShellNanoparticles.py
      ./Examples/scatter2d/BeamDivergence.py
      ./Examples/scatter2d/MagneticCylinders2.py
      ./Examples/scatter2d/Interference2DRotatedSquareLattice.py
      ./Examples/scatter2d/CylindersInBA.py
      ./Examples/scatter2d/PolarizedSANS.py
      ./Examples/scatter2d/HalfSpheresInAverageTopLayer.py
      ./Examples/scatter2d/MagneticCylinders1.py
      ./Examples/scatter2d/Interference2DCenteredSquareLattice.py
      ./Examples/scatter2d/HexagonalLatticesWithBasis.py
      ./Examples/scatter2d/TriangularRipple.py
      ./Examples/scatter2d/DetectorResolutionFunction.py
      ./Examples/scatter2d/ApproximationDA.py
      ./Examples/scatter2d/Interference2DSquareFiniteLattice.py
      ./Examples/scatter2d/CosineRipplesAtRectLattice.py
      ./Examples/scatter2d/Cylinders.py
      ./Examples/scatter2d/CorrelatedRoughness.py
      ./Examples/scatter2d/ConstantBackground.py
      ./Examples/scatter2d/CylindersAndPrisms.py
      ./Examples/scatter2d/MesoCrystal2.py
      ./Examples/scatter2d/Interference1DRadialParaCrystal.py
      ./Examples/scatter2d/ApproximationLMA.py
      ./Examples/scatter2d/RotatedPyramids.py
      ./Examples/scatter2d/FindPeaks.py
      ./Examples/scatter2d/disabled/TwoTypesOfCylindersWithSizeDistribution.py
      ./Examples/scatter2d/disabled/CylindersWithSizeDistribution.py
      ./Examples/scatter2d/disabled/Interference2DLatticeSumOfRotated.py
      ./Examples/scatter2d/BoxesWithSpecularPeak.py
      ./Examples/scatter2d/GratingMC.py
      ./Examples/scatter2d/AxesInDifferentUnits.py
      ./Examples/scatter2d/MesoCrystal.py
      ./Examples/scatter2d/PositionVariance.py
      ./Examples/scatter2d/LargeParticlesFormFactor.py
      ./Examples/scatter2d/BiMaterialCylinders.py
      ./Examples/scatter2d/ApproximationSSCA.py
      ./Examples/scatter2d/BuriedParticles.py
      ./Examples/scatter2d/MagneticSpheres.py
      ./Examples/scatter2d/RectangularGrating.py
      ./Examples/scatter2d/Interference2DParaCrystal.py
      ./Examples/scatter2d/SpheresAtHexLattice.py
      ./Examples/varia/AccessingSimulationResults.py
      ./Examples/varia/MaterialProfileWithParticles.py
      ./Examples/varia/MaterialProfile.py
      ./Examples/varia/PolarizedNoAnalyzer.py
      ./Examples/varia/PolarizedNonperfectAnalyzerPolarizer.py
      ./Examples/varia/OffSpecularSimulation.py
      ./Examples/varia/PolarizedSpinAsymmetry.py
      ./Examples/varia/PolarizedSpinFlip.py
      ./Examples/varia/DepthProbe.py
      ./Examples/ff/SasIcosahedron_asy.py
      ./Examples/ff/SasPyramid3.py
      ./Examples/ff/SasSawtoothRipple.py
      ./Examples/ff/SasHemiEllipsoid.py
      ./Examples/ff/SasCone.py
      ./Examples/ff/SasPrism6.py
      ./Examples/ff/SasBox.py
      ./Examples/ff/sim_demo_1quadrants.py
      ./Examples/ff/SasDodecahedron_asy.py
      ./Examples/ff/SasCylinder.py
      ./Examples/ff/Pyramid4.py
      ./Examples/ff/SasPyramid6.py
      ./Examples/ff/SasIcosahedron_sym.py
      ./Examples/ff/SasDodecahedron_sym.py
      ./Examples/ff/SasTruncatedSpheroid.py
      ./Examples/ff/SasEllipsoidalCylinder.py
      ./Examples/ff/SasCantellatedCube.py
      ./Examples/ff/SasFullSpheroid.py
      ./Examples/ff/SasPrism3.py
      ./Examples/ff/SasTruncatedSphere.py
      ./Examples/ff/SasPyramid2.py
      ./Examples/ff/sim_demo_4quadrants.py
      ./Examples/ff/SasCosineRipple.py
      ./Examples/ff/SasBipyramid4.py
      ./Examples/ff/SasTruncatedCube.py
      ./Examples/ff/SasFullSphere.py
      ./Examples/ff/sim_det_box.py
      ./Examples/fit53_CustomObjective/custom_objective_function.py
      ./Examples/fit61_Galaxi/sample_builder.py
      ./Examples/fit61_Galaxi/fit_galaxi_data.py
      ./Examples/fit/algo/fit_rosenbrock.py
      ./Examples/fit/gisas2d/gisas_model1.py
      ./Examples/fit/gisas2d/fit_gisas.py
      ./Examples/fit51_Basic/consecutive_fitting.py
      ./Examples/fit51_Basic/minimizer_settings.py
      ./Examples/fit52_Advanced/fit_with_masks.py
      ./Examples/fit52_Advanced/find_background.py
      ./Examples/fit52_Advanced/fit_along_slices.py
      ./Examples/fit52_Advanced/multiple_datasets.py
      ./Examples/fit56_SpecularAdvanced/Pt_layer_fit.py
      ./Examples/fit56_SpecularAdvanced/Honeycomb_fit.py
      ./Examples/fit55_SpecularBasic/FitSpecularBasics.py
      ./Examples/fit55_SpecularBasic/FitWithUncertainties.py
      ./Examples/fit55_SpecularBasic/RealLifeReflectometryFitting.py
      ./Examples/fit55_SpecularBasic/PolarizedSpinAsymmetryFit.py
      ./Examples/specular/AlternatingLayers1.py
      ./Examples/specular/RoughnessModel.py
      ./Examples/specular/SpecularSimulationWithRoughness.py
      ./Examples/specular/BeamAngularDivergence.py
      ./Examples/specular/AlternatingLayers2.py
      ./Examples/specular/BeamFullDivergence.py
      ./Examples/specular/AlternatingLayers.py
      ./Examples/specular/FootprintCorrection.py
      ./Examples/specular/BasicPolarizedReflectometry.py
      ./Examples/specular/TOFRWithResolution.py
      ./Examples/specular/TimeOfFlightReflectometry.py
      ./Examples/anaklasis/calculate_two_simple_layers.py
      ./Examples/anaklasis/calculate_bimodal_brush.py
      ./Examples/anaklasis/calculate_XRR_SLB.py
      ./Examples/anaklasis/ba_anaklasis.py
      ./Examples/anaklasis/calculate_NP_islands_NR.py
      ./Examples/anaklasis/calculate_NP_islands_polydispersity.py
      ./Examples/anaklasis/compare_membrane.py
      ./Examples/anaklasis/calculate_lipid_multilayer.py
      ./Examples/bayesian/likelihood_sampling.py
      ./cmake/tests/find_pkg.py
      ./cmake/pack/fix_apple_bundle.py
      ./hugo/content/py/sample/interference/3d-nanoparticle-arrangements/mesocrystal.py
      ./hugo/content/py/sample/interference/3d-nanoparticle-arrangements/particle_composition_rotational_distribution.py
      ./hugo/content/py/sample/interference/3d-nanoparticle-arrangements/particle_composition.py
      ./hugo/content/py/sample/interference/3d-nanoparticle-arrangements/mesocrystal_4plots.py
      3af5e45c
    • Wuttke, Joachim's avatar
      +1; add forgotten · 7e554527
      Wuttke, Joachim authored
      7e554527
  7. 13 Apr, 2022 5 commits
    • Wuttke, Joachim's avatar
      simargs, plotargs -> bp module variables · d322d986
      Wuttke, Joachim authored
      d322d986
    • Wuttke, Joachim's avatar
      subscript i|f -> upright · 0781988f
      Wuttke, Joachim authored
      0781988f
    • Wuttke, Joachim's avatar
      uniform varphi · a879260e
      Wuttke, Joachim authored
      a879260e
    • Wuttke, Joachim's avatar
      25c069f7
    • 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
  8. 08 Apr, 2022 3 commits
  9. 08 Mar, 2022 1 commit
  10. 26 Feb, 2022 1 commit
  11. 22 Sep, 2021 1 commit
  12. 03 Aug, 2021 1 commit
  13. 25 May, 2021 1 commit
    • Ammar Nejati's avatar
      Correct the Python import statements · 6a2c7476
      Ammar Nejati authored
      The addition of the path of `BA/Wrap/Python/__init__.py` to `os.path`
      is _not_ necessary anymore.
      
      The import statements need to be changed:
      ```
      import ba_plot -> from bornagain import ba_plot
      import ba_fitmonitor -> from bornagain import ba_fitmonitor
      ```
      
      The root-path of the project is correctly set in the shell script
      `thisbornagain.sh`.
      
      Consult e.g. "The Definitive Guide to Python import Statements" <https://chrisyeh96.github.io/2017/08/08/definitive-guide-python-imports.html>
      
      Tested under Debian Buster, Python 3.7.3.
      
      Resolves issue #1198
      6a2c7476
  14. 14 Mar, 2021 2 commits
  15. 07 Mar, 2021 3 commits
  16. 05 Mar, 2021 1 commit
  17. 21 Dec, 2020 1 commit
  18. 14 Dec, 2020 2 commits
  19. 09 Dec, 2020 1 commit
  20. 02 Dec, 2020 2 commits
  21. 19 Nov, 2020 4 commits
  22. 02 Oct, 2020 1 commit