gemseo-multi-fidelity 0.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. gemseo_multi_fidelity-0.0.1/.copier-answers.yml +13 -0
  2. gemseo_multi_fidelity-0.0.1/.coveragerc +7 -0
  3. gemseo_multi_fidelity-0.0.1/.gitattributes +26 -0
  4. gemseo_multi_fidelity-0.0.1/.gitignore +25 -0
  5. gemseo_multi_fidelity-0.0.1/.gitlab-ci.yml +2 -0
  6. gemseo_multi_fidelity-0.0.1/.markdownlint.yml +18 -0
  7. gemseo_multi_fidelity-0.0.1/.pre-commit-config.yaml +93 -0
  8. gemseo_multi_fidelity-0.0.1/.pytest.ini +9 -0
  9. gemseo_multi_fidelity-0.0.1/.ruff.toml +157 -0
  10. gemseo_multi_fidelity-0.0.1/CHANGELOG.md +31 -0
  11. gemseo_multi_fidelity-0.0.1/LICENSE.txt +165 -0
  12. gemseo_multi_fidelity-0.0.1/LICENSES/LGPLv3.txt +165 -0
  13. gemseo_multi_fidelity-0.0.1/LICENSES/headers/BSD-0-Clause.txt +15 -0
  14. gemseo_multi_fidelity-0.0.1/LICENSES/headers/CC-BY-SA-4.0.txt +6 -0
  15. gemseo_multi_fidelity-0.0.1/LICENSES/headers/LGPL-3.0.txt +14 -0
  16. gemseo_multi_fidelity-0.0.1/PKG-INFO +99 -0
  17. gemseo_multi_fidelity-0.0.1/README.md +74 -0
  18. gemseo_multi_fidelity-0.0.1/docs/changelog.md +9 -0
  19. gemseo_multi_fidelity-0.0.1/docs/credits.md +11 -0
  20. gemseo_multi_fidelity-0.0.1/docs/credits.md.jinja +57 -0
  21. gemseo_multi_fidelity-0.0.1/docs/examples/.gitignore +0 -0
  22. gemseo_multi_fidelity-0.0.1/docs/examples/multifidelity_with_uncertainties/README.md +12 -0
  23. gemseo_multi_fidelity-0.0.1/docs/examples/multifidelity_with_uncertainties/plot_sellar_mf_umdo.py +115 -0
  24. gemseo_multi_fidelity-0.0.1/docs/examples/multifidelity_with_uncertainties/plot_ssbj_mf_umdo.py +123 -0
  25. gemseo_multi_fidelity-0.0.1/docs/examples/ssbj_refine/README.md +10 -0
  26. gemseo_multi_fidelity-0.0.1/docs/examples/ssbj_refine/inputs/sobieski_design_space.txt +21 -0
  27. gemseo_multi_fidelity-0.0.1/docs/examples/ssbj_refine/plot_ssbj_mf_bilevel.py +218 -0
  28. gemseo_multi_fidelity-0.0.1/docs/examples/ssbj_refine/plot_ssbj_mf_refine.py +158 -0
  29. gemseo_multi_fidelity-0.0.1/docs/examples/ssbj_refine/plot_ssbj_mf_refine_surrogate.py +203 -0
  30. gemseo_multi_fidelity-0.0.1/docs/gallery_conf.py +33 -0
  31. gemseo_multi_fidelity-0.0.1/docs/gen_credits.py +218 -0
  32. gemseo_multi_fidelity-0.0.1/docs/gen_ref_nav.py +51 -0
  33. gemseo_multi_fidelity-0.0.1/docs/images/.gitignore +0 -0
  34. gemseo_multi_fidelity-0.0.1/docs/images/monogram.png +0 -0
  35. gemseo_multi_fidelity-0.0.1/docs/index.md +9 -0
  36. gemseo_multi_fidelity-0.0.1/docs/javascripts/mathjax.js +16 -0
  37. gemseo_multi_fidelity-0.0.1/docs/licenses.md +28 -0
  38. gemseo_multi_fidelity-0.0.1/docs/references.bib +0 -0
  39. gemseo_multi_fidelity-0.0.1/docs/user_guide/GEMSEO_Multifidelity_Mechanisms.md +37 -0
  40. gemseo_multi_fidelity-0.0.1/docs/user_guide/How_To_Create_Multiple_Scenario_Fidelity_Levels.md +42 -0
  41. gemseo_multi_fidelity-0.0.1/docs/user_guide/Refinements Methods.md +33 -0
  42. gemseo_multi_fidelity-0.0.1/docs/user_guide/gemseo_multifidelity_in_10_minutes.md +77 -0
  43. gemseo_multi_fidelity-0.0.1/docs/user_guide/img/multifi.png +0 -0
  44. gemseo_multi_fidelity-0.0.1/docs/user_guide/index.md +11 -0
  45. gemseo_multi_fidelity-0.0.1/docs/user_guide/settings.md +12 -0
  46. gemseo_multi_fidelity-0.0.1/mkdocs.yml +126 -0
  47. gemseo_multi_fidelity-0.0.1/pyproject.toml +68 -0
  48. gemseo_multi_fidelity-0.0.1/requirements/check.in +4 -0
  49. gemseo_multi_fidelity-0.0.1/requirements/check.txt +22 -0
  50. gemseo_multi_fidelity-0.0.1/requirements/doc.txt +332 -0
  51. gemseo_multi_fidelity-0.0.1/requirements/test-constraints.in +1 -0
  52. gemseo_multi_fidelity-0.0.1/requirements/test-python3.10.txt +193 -0
  53. gemseo_multi_fidelity-0.0.1/requirements/test-python3.11.txt +188 -0
  54. gemseo_multi_fidelity-0.0.1/requirements/test-python3.12.txt +186 -0
  55. gemseo_multi_fidelity-0.0.1/requirements/test-python3.13.txt +186 -0
  56. gemseo_multi_fidelity-0.0.1/setup.cfg +4 -0
  57. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/__init__.py +17 -0
  58. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/MFMapperAdapter_input.json +22 -0
  59. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/MFMapperAdapter_output.json +22 -0
  60. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/MFMapperLinker_input.json +22 -0
  61. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/MFMapperLinker_output.json +22 -0
  62. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/MFScenarioAdapter_input.json +39 -0
  63. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/MFScenarioAdapter_output.json +23 -0
  64. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/__init__.py +16 -0
  65. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/boxed_domain.py +242 -0
  66. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/corr_function.py +411 -0
  67. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/criticality.py +124 -0
  68. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/ds_mapper.py +307 -0
  69. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/errors.py +42 -0
  70. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/eval_mapper.py +188 -0
  71. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/id_mapper_adapter.py +61 -0
  72. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/mapper_adapter.py +126 -0
  73. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/mapper_linker.py +72 -0
  74. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/mf_formulation.py +635 -0
  75. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/mf_logger.py +216 -0
  76. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/mf_opt_problem.py +480 -0
  77. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/mf_scenario.py +205 -0
  78. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/noise_criterion.py +94 -0
  79. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/projpolytope.out +0 -0
  80. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/scenario_adapter.py +568 -0
  81. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/stop_criteria.py +201 -0
  82. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/strict_chain.py +75 -0
  83. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/core/utils_model_quality.py +74 -0
  84. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/corrections/__init__.py +16 -0
  85. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/corrections/add_corr_function.py +80 -0
  86. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/corrections/correction_factory.py +65 -0
  87. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/corrections/mul_corr_function.py +86 -0
  88. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/drivers/__init__.py +16 -0
  89. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/drivers/mf_algo_factory.py +38 -0
  90. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/drivers/mf_driver_lib.py +462 -0
  91. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/drivers/refinement.py +234 -0
  92. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/drivers/settings/__init__.py +16 -0
  93. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/drivers/settings/base_mf_driver_settings.py +59 -0
  94. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/drivers/settings/mf_refine_settings.py +50 -0
  95. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/formulations/__init__.py +16 -0
  96. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/formulations/refinement.py +144 -0
  97. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/mapping/__init__.py +16 -0
  98. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/mapping/identity_mapper.py +74 -0
  99. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/mapping/interp_mapper.py +422 -0
  100. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/mapping/mapper_factory.py +70 -0
  101. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/mapping/mapping_errors.py +46 -0
  102. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/mapping/subset_mapper.py +122 -0
  103. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/mf_rosenbrock/__init__.py +16 -0
  104. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/mf_rosenbrock/delayed_disc.py +136 -0
  105. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/mf_rosenbrock/refact_rosen_testcase.py +46 -0
  106. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/mf_rosenbrock/rosen_mf_case.py +284 -0
  107. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/mf_rosenbrock/rosen_mf_funcs.py +350 -0
  108. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/models/__init__.py +16 -0
  109. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/models/fake_updater.py +112 -0
  110. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/models/model_updater.py +91 -0
  111. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/models/rbf/__init__.py +16 -0
  112. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/models/rbf/kernel_factory.py +66 -0
  113. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/models/rbf/kernels/__init__.py +16 -0
  114. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/models/rbf/kernels/gaussian.py +93 -0
  115. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/models/rbf/kernels/matern_3_2.py +101 -0
  116. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/models/rbf/kernels/matern_5_2.py +101 -0
  117. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/models/rbf/kernels/rbf_kernel.py +172 -0
  118. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/models/rbf/rbf_model.py +422 -0
  119. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/models/sparse_rbf_updater.py +96 -0
  120. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/models/taylor/__init__.py +16 -0
  121. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/models/taylor/taylor.py +212 -0
  122. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/models/taylor_updater.py +66 -0
  123. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/models/updater_factory.py +62 -0
  124. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/settings/__init__.py +16 -0
  125. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/settings/drivers.py +22 -0
  126. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity/settings/formulations.py +16 -0
  127. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity.egg-info/PKG-INFO +99 -0
  128. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity.egg-info/SOURCES.txt +188 -0
  129. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity.egg-info/dependency_links.txt +1 -0
  130. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity.egg-info/entry_points.txt +2 -0
  131. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity.egg-info/requires.txt +1 -0
  132. gemseo_multi_fidelity-0.0.1/src/gemseo_multi_fidelity.egg-info/top_level.txt +1 -0
  133. gemseo_multi_fidelity-0.0.1/tests/__init__.py +15 -0
  134. gemseo_multi_fidelity-0.0.1/tests/conftest.py +18 -0
  135. gemseo_multi_fidelity-0.0.1/tests/core/__init__.py +14 -0
  136. gemseo_multi_fidelity-0.0.1/tests/core/ref_data/exported_std_hf_prob.h5 +0 -0
  137. gemseo_multi_fidelity-0.0.1/tests/core/ref_data/exported_test_prob.h5 +0 -0
  138. gemseo_multi_fidelity-0.0.1/tests/core/ref_data/exported_test_prob_data_inconsistent.h5 +0 -0
  139. gemseo_multi_fidelity-0.0.1/tests/core/ref_data/exported_test_prob_missing_f_map.h5 +0 -0
  140. gemseo_multi_fidelity-0.0.1/tests/core/ref_data/exported_test_prob_test_node.h5 +0 -0
  141. gemseo_multi_fidelity-0.0.1/tests/core/test_boxed_domain.py +151 -0
  142. gemseo_multi_fidelity-0.0.1/tests/core/test_criticality.py +69 -0
  143. gemseo_multi_fidelity-0.0.1/tests/core/test_ds_mapper.py +28 -0
  144. gemseo_multi_fidelity-0.0.1/tests/core/test_eval_mapper.py +204 -0
  145. gemseo_multi_fidelity-0.0.1/tests/core/test_id_mapper_adapter.py +102 -0
  146. gemseo_multi_fidelity-0.0.1/tests/core/test_mapper_adapter.py +166 -0
  147. gemseo_multi_fidelity-0.0.1/tests/core/test_mapper_linker.py +113 -0
  148. gemseo_multi_fidelity-0.0.1/tests/core/test_mf_formulation.py +304 -0
  149. gemseo_multi_fidelity-0.0.1/tests/core/test_mf_logger.py +60 -0
  150. gemseo_multi_fidelity-0.0.1/tests/core/test_mf_opt_problem.py +380 -0
  151. gemseo_multi_fidelity-0.0.1/tests/core/test_mf_scenario.py +175 -0
  152. gemseo_multi_fidelity-0.0.1/tests/core/test_noise_criterion.py +91 -0
  153. gemseo_multi_fidelity-0.0.1/tests/core/test_scenario_adapter.py +568 -0
  154. gemseo_multi_fidelity-0.0.1/tests/core/test_stop_criteria.py +71 -0
  155. gemseo_multi_fidelity-0.0.1/tests/core/test_utils_model_quality.py +27 -0
  156. gemseo_multi_fidelity-0.0.1/tests/core/testcase_array.py +47 -0
  157. gemseo_multi_fidelity-0.0.1/tests/corrections/__init__.py +14 -0
  158. gemseo_multi_fidelity-0.0.1/tests/corrections/abstract_test_corr_function.py +327 -0
  159. gemseo_multi_fidelity-0.0.1/tests/corrections/test_corr_function.py +85 -0
  160. gemseo_multi_fidelity-0.0.1/tests/corrections/test_mul_corr_function.py +50 -0
  161. gemseo_multi_fidelity-0.0.1/tests/drivers/__init__.py +14 -0
  162. gemseo_multi_fidelity-0.0.1/tests/drivers/settings/__init__.py +14 -0
  163. gemseo_multi_fidelity-0.0.1/tests/drivers/settings/test_base_mf_driver_settings.py +56 -0
  164. gemseo_multi_fidelity-0.0.1/tests/drivers/test_mf_driver_lib.py +418 -0
  165. gemseo_multi_fidelity-0.0.1/tests/drivers/test_refinement_driver.py +65 -0
  166. gemseo_multi_fidelity-0.0.1/tests/mapping/__init__.py +14 -0
  167. gemseo_multi_fidelity-0.0.1/tests/mapping/test_identity_mapper.py +192 -0
  168. gemseo_multi_fidelity-0.0.1/tests/mapping/test_interp_mapper.py +429 -0
  169. gemseo_multi_fidelity-0.0.1/tests/mapping/test_mapper_factory.py +32 -0
  170. gemseo_multi_fidelity-0.0.1/tests/mapping/test_mapping_errors.py +28 -0
  171. gemseo_multi_fidelity-0.0.1/tests/mapping/test_subset_mapper.py +184 -0
  172. gemseo_multi_fidelity-0.0.1/tests/mf_rosenbrock/__init__.py +14 -0
  173. gemseo_multi_fidelity-0.0.1/tests/mf_rosenbrock/test_refact_rosen_testcase.py +38 -0
  174. gemseo_multi_fidelity-0.0.1/tests/mf_rosenbrock/test_rosen_mf_funcs.py +85 -0
  175. gemseo_multi_fidelity-0.0.1/tests/models/__init__.py +14 -0
  176. gemseo_multi_fidelity-0.0.1/tests/models/rbf/__init__.py +14 -0
  177. gemseo_multi_fidelity-0.0.1/tests/models/rbf/kernels/__init__.py +14 -0
  178. gemseo_multi_fidelity-0.0.1/tests/models/rbf/kernels/abstract_test_kernel.py +160 -0
  179. gemseo_multi_fidelity-0.0.1/tests/models/rbf/kernels/test_matern_3_2.py +65 -0
  180. gemseo_multi_fidelity-0.0.1/tests/models/rbf/kernels/test_matern_5_2.py +68 -0
  181. gemseo_multi_fidelity-0.0.1/tests/models/rbf/kernels/test_rbf_kernel.py +79 -0
  182. gemseo_multi_fidelity-0.0.1/tests/models/rbf/test_kernel_factory.py +51 -0
  183. gemseo_multi_fidelity-0.0.1/tests/models/rbf/test_rbf_model.py +178 -0
  184. gemseo_multi_fidelity-0.0.1/tests/models/taylor/__init__.py +14 -0
  185. gemseo_multi_fidelity-0.0.1/tests/models/taylor/test_taylor_model.py +172 -0
  186. gemseo_multi_fidelity-0.0.1/tests/models/test_fake_updater.py +127 -0
  187. gemseo_multi_fidelity-0.0.1/tests/models/test_sparse_rbf_updater.py +46 -0
  188. gemseo_multi_fidelity-0.0.1/tests/sobieski_design_space.txt +21 -0
  189. gemseo_multi_fidelity-0.0.1/tests/test_ssbj_mf_refine.py +259 -0
  190. gemseo_multi_fidelity-0.0.1/tox.ini +92 -0
@@ -0,0 +1,13 @@
1
+ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2
+ _commit: cd9e6c9
3
+ _src_path: https://gitlab.com/gemseo/dev/copier-gemseo
4
+ author_email: contact@gemseo.org
5
+ author_name: GEMSEO Team
6
+ gemseo_min_version: '6'
7
+ package_is_a_gemseo_plugin: true
8
+ project_is_open_source: true
9
+ project_name: gemseo-multi-fidelity
10
+ project_name_suffix: multifi
11
+ project_slug: gemseo_multi_fidelity
12
+ short_description: A plugin for multi-fidelity MDO
13
+ use_gemseo_develop: true
@@ -0,0 +1,7 @@
1
+ [run]
2
+ plugins = covdefaults
3
+ source = gemseo_multi_fidelity
4
+
5
+ [report]
6
+ # Override covdefaults.
7
+ fail_under = 1
@@ -0,0 +1,26 @@
1
+ # Set the default behavior, in case people don't have core.autocrlf set.
2
+ * text=auto
3
+
4
+ # End of lines are set to UNIX
5
+ * text eol=lf
6
+
7
+ # Denote all files that are truly binary and should not be modified.
8
+ *.db binary
9
+ *.di binary
10
+ *.dvi binary
11
+ *.gif binary
12
+ *.h5 binary
13
+ *.hdf5 binary
14
+ *.idx binary
15
+ *.jpg binary
16
+ *.npy binary
17
+ *.out binary
18
+ *.pack binary
19
+ *.pdf binary
20
+ *.png binary
21
+ *.pptx binary
22
+ *.xcf binary
23
+ *.xlsm binary
24
+ *.xlsx binary
25
+ *.eot binary
26
+ *.ttf binary
@@ -0,0 +1,25 @@
1
+ /build
2
+ /dist
3
+ /.tox
4
+ *.pyc
5
+ /src/gemseo_multi_fidelity.egg-info
6
+
7
+ /.project
8
+ /.pydevproject
9
+ /.settings
10
+ /.idea
11
+ /.vim*
12
+ /.vscode
13
+ /tags
14
+
15
+ /docs/generated/examples
16
+ /docs/examples/**/*.png
17
+ /site
18
+
19
+ /htmlcov
20
+
21
+ /coverage.xml
22
+ /.coverage*
23
+ !/.coveragerc
24
+
25
+ /.pytest_cache
@@ -0,0 +1,2 @@
1
+ include:
2
+ - remote: "https://gitlab.com/gemseo/dev/ci-includes/-/raw/5.1/main.yml"
@@ -0,0 +1,18 @@
1
+ # MD013/line-length - Line length
2
+ MD013:
3
+ # Number of characters for code blocks
4
+ code_block_line_length: 100
5
+
6
+ # MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content
7
+ MD024:
8
+ allow_different_nesting: true
9
+
10
+ # MD041/first-line-heading/first-line-h1 - First line in a file should be a top-level heading
11
+ MD041: false
12
+
13
+ # MD046/code-block-style - Code block style
14
+ # Set to false because admonition bugs with it
15
+ MD046: false
16
+
17
+ # MD052/reference-links-images - Reference links and images should use a label that is defined
18
+ MD052: false
@@ -0,0 +1,93 @@
1
+ repos:
2
+
3
+ - repo: https://github.com/pre-commit/pre-commit-hooks
4
+ rev: v6.0.0
5
+ hooks:
6
+ - id: trailing-whitespace
7
+ - id: end-of-file-fixer
8
+ exclude: LICENSES/headers
9
+ - id: check-yaml
10
+ # !reference is specific to gitlab
11
+ # !! prefix is specific to mkdocs
12
+ exclude: \.gitlab-ci.yml|mkdocs.yml
13
+ - id: check-added-large-files
14
+ - id: check-json
15
+ - id: pretty-format-json
16
+ args: [
17
+ --autofix,
18
+ --no-sort-keys,
19
+ ]
20
+ exclude: \.ipynb
21
+ - id: check-toml
22
+ - id: destroyed-symlinks
23
+ - id: check-symlinks
24
+
25
+ - repo: https://github.com/pre-commit/pygrep-hooks
26
+ rev: v1.10.0
27
+ hooks:
28
+ - id: rst-backticks
29
+ - id: rst-directive-colons
30
+ - id: rst-inline-touching-normal
31
+
32
+ - repo: https://github.com/astral-sh/ruff-pre-commit
33
+ rev: v0.14.14
34
+ hooks:
35
+ - id: ruff-check
36
+ types_or: [ python, pyi, jupyter ]
37
+ args: [ --exit-non-zero-on-fix ]
38
+ - id: ruff-format
39
+ types_or: [ python, pyi, jupyter ]
40
+
41
+ - repo: https://github.com/commitizen-tools/commitizen
42
+ rev: v4.12.1
43
+ hooks:
44
+ - id: commitizen
45
+ stages: [commit-msg]
46
+
47
+ - repo: https://github.com/kynan/nbstripout
48
+ rev: 0.9.0
49
+ hooks:
50
+ - id: nbstripout
51
+
52
+ - repo: https://github.com/igorshubovych/markdownlint-cli
53
+ rev: v0.47.0
54
+ hooks:
55
+ - id: markdownlint
56
+ args: [
57
+ --fix,
58
+ --disable,
59
+ MD024,
60
+ ]
61
+
62
+ - repo: https://github.com/Lucas-C/pre-commit-hooks
63
+ rev: v1.5.6
64
+ hooks:
65
+ - id: insert-license
66
+ name: insert LGPL license
67
+ exclude: ^docs
68
+ files: \.py$
69
+ args:
70
+ - --license-filepath
71
+ - LICENSES/headers/LGPL-3.0.txt
72
+ - id: insert-license
73
+ name: insert BSD license
74
+ files: ^docs/(examples|tutorials).*\.py$
75
+ args:
76
+ - --license-filepath
77
+ - LICENSES/headers/BSD-0-Clause.txt
78
+ - id: insert-license
79
+ name: insert CC BY-SA license for rst files
80
+ files: \.rst$
81
+ args:
82
+ - --license-filepath
83
+ - LICENSES/headers/CC-BY-SA-4.0.txt
84
+ - --comment-style
85
+ - ..| |
86
+ - id: insert-license
87
+ name: insert CC BY-SA license for md files
88
+ files: \.md$
89
+ args:
90
+ - --license-filepath
91
+ - LICENSES/headers/CC-BY-SA-4.0.txt
92
+ - --comment-style
93
+ - <!--||-->
@@ -0,0 +1,9 @@
1
+ [pytest]
2
+ # Show extra info on xfailed, xpassed, and skipped tests.
3
+ addopts = --disable-pytest-warnings -rxs
4
+ testpaths = tests
5
+ # These logging settings identical to the defaults of gemseo.configure_logger().
6
+ log_file_level = INFO
7
+ log_file_date_format = %H:%M:%S
8
+ log_file_format = %(levelname)8s - %(asctime)s: %(message)s
9
+ # filterwarnings = ignore::pytest.PytestExperimentalApiWarning
@@ -0,0 +1,157 @@
1
+ fix = true
2
+ unsafe-fixes = true
3
+ preview = true
4
+ target-version = "py310"
5
+ src = ["src"]
6
+
7
+ [lint]
8
+ future-annotations = true
9
+ task-tags = ["TODO"]
10
+ ignore = [
11
+ # Shadowing a Python builtin module.
12
+ "A005",
13
+ # Dynamically typed expressions (typing.Any) are disallowed.
14
+ "ANN401",
15
+ # Checks for undocumented magic method definitions.
16
+ "D105",
17
+ # Missing argument description in the docstring.
18
+ "D417",
19
+ # Conflicts with ruff format.
20
+ "E203",
21
+ # Avoid unexpected behavior with the formatter.
22
+ "ISC001",
23
+ # Too many arguments in function definition.
24
+ "PLR0913",
25
+ # `subprocess.run` without explicit `check` argument.
26
+ "PLR2004",
27
+ # Too many public methods.
28
+ "PLR0904",
29
+ # Too many branches.
30
+ "PLR0912",
31
+ # Too many statements.
32
+ "PLR0915",
33
+ # Too many return statements.
34
+ "PLR0911",
35
+ # `for` loop variable `name` overwritten by assignment target.
36
+ "PLW1510",
37
+ # Magic value used in comparison.
38
+ "PLW2901",
39
+ # Bad or misspelled dunder method name `_repr_html_`.
40
+ "PLW3201",
41
+ # Object does not implement `__hash__` method.
42
+ "PLW1641",
43
+ # `__init__` module should only contain docstrings and re-exports.
44
+ "RUF067",
45
+ # Checks for noqa directives that are no longer applicable.
46
+ "RUF100",
47
+ # Checks for long exception messages that are not defined in the exception class itself.
48
+ "TRY003",
49
+ ]
50
+
51
+ select = [
52
+ "A",
53
+ # "ANN",
54
+ "ASYNC",
55
+ "B",
56
+ "BLE",
57
+ # "C",
58
+ "C4",
59
+ "D",
60
+ # "DOC",
61
+ "E",
62
+ "EM",
63
+ "F",
64
+ # "FA",
65
+ # "FBT",
66
+ "FLY",
67
+ "FURB",
68
+ "G",
69
+ "I",
70
+ "ISC",
71
+ "INP",
72
+ "LOG",
73
+ "Q",
74
+ "N",
75
+ "NPY",
76
+ # "PL",
77
+ # "PD",
78
+ "PT",
79
+ "PIE",
80
+ "PGH",
81
+ "PTH",
82
+ "PYI",
83
+ "PERF",
84
+ "RET",
85
+ "RSE",
86
+ "RUF",
87
+ # "S",
88
+ "SIM",
89
+ # "SLF",
90
+ "SLOT",
91
+ "T",
92
+ "T10",
93
+ "T20",
94
+ "TCH",
95
+ "TRY",
96
+ "W",
97
+ "UP",
98
+ "YTT",
99
+ ]
100
+
101
+ [lint.flake8-type-checking]
102
+ runtime-evaluated-base-classes = [
103
+ "pydantic.BaseModel",
104
+ "pydantic_settings.BaseSettings",
105
+ "gemseo.algos.doe.base_doe_settings.BaseDOESettings",
106
+ "gemseo.settings.base_settings.BaseSettings",
107
+ "gemseo.algos.linear_solvers.base_linear_solver_settings.BaseLinearSolverSettings",
108
+ "gemseo.algos.opt.base_optimizer_settings.BaseOptimizerSettings",
109
+ "gemseo.algos.opt.nlopt.settings.base_nlopt_settings.BaseNLoptSettings",
110
+ "gemseo.algos.opt.nlopt.settings.base_gradient_free_nlopt_settings.BaseGradientFreeNLoptSettings",
111
+ "gemseo.mlearning.classification.algos.base_classifier_settings.BaseClassifierSettings",
112
+ "gemseo.algos.base_driver_settings.BaseDriverSettings",
113
+ "gemseo.mda.base_mda_solver_settings.BaseMDASolverSettings",
114
+ "gemseo.mlearning.core.algos.unsupervised_settings.BaseMLUnsupervisedAlgoSettings",
115
+ "gemseo.mlearning.regression.algos.base_regressor_settings.BaseRegressorSettings",
116
+ "gemseo.mlearning.regression.algos.linreg_settings.LinearRegressor_Settings",
117
+ "gemseo.post.base_post_settings.BasePostSettings",
118
+ "gemseo.uncertainty.distributions.base_distribution_settings.BaseDistributionSettings",
119
+ "gemseo.uncertainty.distributions.base_settings.weibull_settings.BaseWeibullDistributionSettings",
120
+ "gemseo.algos.doe.pydoe.settings.base_pydoe_settings.BasePyDOESettings",
121
+ "gemseo.algos.doe.openturns.settings.base_openturns_settings.BaseOpenTURNSSettings",
122
+ "gemseo.algos.doe.scipy.settings.base_scipy_doe_settings.BaseSciPyDOESettings",
123
+ "gemseo.algos.opt.scipy_global.settings.base_scipy_global_settings.BaseSciPyGlobalSettings",
124
+ "gemseo.formulations.base_formulation_settings.BaseFormulationSettings",
125
+ "gemseo.mlearning.linear_model_fitting.base_linear_model_fitter_settings.BaseLinearModelFitterSettings",
126
+ "gemseo.mlearning.regression.algos.base_fce_settings.BaseFCERegressorSettings",
127
+ "gemseo.algos.opt.augmented_lagrangian.settings.base.BaseAugmentedLagrangianSettings",
128
+ "gemseo.algos.opt.base_milp_settings.BaseMILPSettings",
129
+ "gemseo.algos.opt.base_gradient_based_algorithm_settings.BaseGradientBasedAlgorithmSettings",
130
+ "gemseo.algos.opt.scipy_milp.settings.scipy_milp_settings.SciPyMILP_Settings",
131
+ ]
132
+
133
+ [lint.isort]
134
+ force-single-line = true
135
+ required-imports = ["from __future__ import annotations"]
136
+
137
+ [lint.pydocstyle]
138
+ convention = "google"
139
+
140
+ [lint.per-file-ignores]
141
+ "*.ipynb" = ["RET504"]
142
+ "tests/*.py" = ["D", "PT009", "PT011", "PT027", "PTH"]
143
+ "docs/*.py" = [
144
+ "T",
145
+ "D",
146
+ "B018",
147
+ "PTH",
148
+ "E501",
149
+ "PERF",
150
+ "A001",
151
+ "RET504",
152
+ "INP001",
153
+ ]
154
+
155
+ [format]
156
+ docstring-code-format = true
157
+ docstring-code-line-length = 75
@@ -0,0 +1,31 @@
1
+ <!--
2
+ Copyright 2021 IRT Saint Exupéry, https://www.irt-saintexupery.com
3
+
4
+ This work is licensed under the Creative Commons Attribution-ShareAlike 4.0
5
+ International License. To view a copy of this license, visit
6
+ http://creativecommons.org/licenses/by-sa/4.0/ or send a letter to Creative
7
+ Commons, PO Box 1866, Mountain View, CA 94042, USA.
8
+ -->
9
+
10
+ <!--
11
+ Changelog titles are:
12
+ - Added: for new features.
13
+ - Changed: for changes in existing functionality.
14
+ - Deprecated: for soon-to-be removed features.
15
+ - Removed: for now removed features.
16
+ - Fixed: for any bug fixes.
17
+ - Security: in case of vulnerabilities.
18
+ -->
19
+
20
+ # Changelog
21
+
22
+ All notable changes of this project will be documented here.
23
+
24
+ The format is based on
25
+ [Keep a Changelog](https://keepachangelog.com/en/1.0.0)
26
+ and this project adheres to
27
+ [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
28
+
29
+ ## Version 0.0.1 (January 2026)
30
+
31
+ First version.
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.