nested-fit 5.5.4__tar.gz → 5.6.0.dev106__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 (222) hide show
  1. nested_fit-5.6.0.dev106/.github/workflows/build_wheels.yml +172 -0
  2. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/CMakeLists.txt +8 -5
  3. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/PKG-INFO +1 -1
  4. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/README.md +31 -12
  5. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/STEPBYSTEP_INSTALL.md +1 -1
  6. nested_fit-5.6.0.dev106/examples/README.md +24 -0
  7. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/01_simple_example/RANDOM_WALK/nf_input.yaml +3 -3
  8. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/01_simple_example/RANDOM_WALK_NO_DB/nf_input.yaml +3 -3
  9. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/01_simple_example/RANDOM_WALK_SYN/nf_input.yaml +3 -3
  10. {nested_fit-5.5.4/examples/data_analysis/01_simple_example/internal_func_input → nested_fit-5.6.0.dev106/examples/data_analysis/01_simple_example/internal_func_hard_writing}/nf_input.yaml +4 -3
  11. nested_fit-5.6.0.dev106/examples/data_analysis/01_simple_example/internal_func_input/nf_input.yaml +41 -0
  12. nested_fit-5.6.0.dev106/examples/data_analysis/01_simple_example/internal_func_no_points_file/nf_input.yaml +41 -0
  13. nested_fit-5.6.0.dev106/examples/data_analysis/01_simple_example/internal_func_no_stat/nf_input.yaml +41 -0
  14. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/01_simple_example/latex_func_input/nf_input.yaml +3 -3
  15. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/01_simple_example/legacy_func_input/nf_input.yaml +3 -3
  16. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/02_error_bars_data/nf_input.yaml +1 -1
  17. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/03_with_cluster_analysis/DBSCAN-RANDOM_WALK_SYN/nf_input.yaml +1 -1
  18. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/03_with_cluster_analysis/DBSCAN-SLICE_SAMPLING/nf_input.yaml +1 -1
  19. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/03_with_cluster_analysis/KNN-RANDOM_WALK_SYN/nf_input.yaml +1 -1
  20. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/03_with_cluster_analysis/KNN-SLICE_SAMPLING/nf_input.yaml +1 -1
  21. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/03_with_cluster_analysis/agglomerative-RANDOM_WALK_SYN/nf_input.yaml +1 -1
  22. nested_fit-5.6.0.dev106/examples/data_analysis/03_with_cluster_analysis/agglomerative-SLICE_SAMPLING/he-histo.dat +1024 -0
  23. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/03_with_cluster_analysis/agglomerative-SLICE_SAMPLING/nf_input.yaml +1 -1
  24. nested_fit-5.6.0.dev106/examples/data_analysis/03_with_cluster_analysis/mean-shift-RANDOM_WALK_SYN/he-histo.dat +1024 -0
  25. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/03_with_cluster_analysis/mean-shift-RANDOM_WALK_SYN/nf_input.yaml +2 -2
  26. nested_fit-5.6.0.dev106/examples/data_analysis/03_with_cluster_analysis/mean-shift-SLICE_SAMPLING/he-histo.dat +1024 -0
  27. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/03_with_cluster_analysis/mean-shift-SLICE_SAMPLING/nf_input.yaml +1 -1
  28. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/04_set_of_datafiles/latex_func_input/nf_input.yaml +1 -1
  29. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/04_set_of_datafiles/legacy_func_input/nf_input.yaml +1 -1
  30. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/05_data_2D/nf_input.yaml +1 -1
  31. nested_fit-5.6.0.dev106/examples/data_analysis/06_interpolation_function/ginterp.csv +200 -0
  32. nested_fit-5.6.0.dev106/examples/data_analysis/06_interpolation_function/interp.csv +200 -0
  33. nested_fit-5.6.0.dev106/examples/data_analysis/06_interpolation_function/nf_input.yaml +42 -0
  34. nested_fit-5.6.0.dev106/examples/function_integration/07_func_GAUSS/hard_writing/nf_input.yaml +27 -0
  35. {nested_fit-5.5.4/examples/function_integration/07_func_GAUSS → nested_fit-5.6.0.dev106/examples/function_integration/07_func_GAUSS/no_hard_writing}/nf_input.yaml +3 -2
  36. nested_fit-5.6.0.dev106/examples/jupyter_notebooks/pynf_interp.ipynb +219 -0
  37. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/jupyter_notebooks/quick_start_with_google_colab.ipynb +6 -16
  38. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/jupyter_notebooks/res_1gauss_bg/nf_input.yaml +6 -1
  39. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/jupyter_notebooks/res_2gauss_bg/nf_input.yaml +6 -1
  40. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/jupyter_notebooks/res_3gauss_bg/nf_input.yaml +7 -2
  41. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/jupyter_notebooks/res_4gauss_bg/nf_input.yaml +6 -1
  42. nested_fit-5.6.0.dev106/examples/jupyter_notebooks/set_of_datafiles/gauss_bg-x0_300-sigma_20-A_300-p_to_bg_20-bin_1.dat +600 -0
  43. nested_fit-5.6.0.dev106/examples/jupyter_notebooks/set_of_datafiles/gauss_bg-x0_310-sigma_20-A_150-p_to_bg_10-bin_1.dat +600 -0
  44. nested_fit-5.6.0.dev106/examples/jupyter_notebooks/set_of_datafiles/nf_input.yaml +73 -0
  45. nested_fit-5.6.0.dev106/examples/jupyter_notebooks/set_of_files_analysis.ipynb +983 -0
  46. nested_fit-5.6.0.dev106/examples/jupyter_notebooks/simple_analysis_visu.ipynb +1884 -0
  47. nested_fit-5.6.0.dev106/examples/jupyter_notebooks/simple_visualisation.ipynb +141 -0
  48. nested_fit-5.6.0.dev106/examples/potential_exploration/09_ENERGY_HARM_3D/hard_writing/nf_energy.txt +96820 -0
  49. nested_fit-5.6.0.dev106/examples/potential_exploration/09_ENERGY_HARM_3D/hard_writing/nf_input.yaml +44 -0
  50. nested_fit-5.6.0.dev106/examples/potential_exploration/09_ENERGY_HARM_3D/no_hard_writing/nf_energy.txt +96607 -0
  51. {nested_fit-5.5.4/examples/potential_exploration/09_ENERGY_HARM_3D → nested_fit-5.6.0.dev106/examples/potential_exploration/09_ENERGY_HARM_3D/no_hard_writing}/nf_input.yaml +2 -1
  52. nested_fit-5.6.0.dev106/examples/potential_exploration/10_Q_ENERGY_HARM_3D/hard_writing/nf_input.yaml +33 -0
  53. nested_fit-5.6.0.dev106/examples/potential_exploration/10_Q_ENERGY_HARM_3D/no_hard_writing/nf_input.yaml +33 -0
  54. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/nested_fit.egg-info/PKG-INFO +1 -1
  55. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/nested_fit.egg-info/SOURCES.txt +25 -6
  56. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/pynested_fit/nested_res.py +109 -43
  57. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/pynested_fit/nested_run.py +17 -1
  58. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/pyproject.toml +3 -3
  59. nested_fit-5.6.0.dev106/src/Mod_array_tries.f90 +13 -0
  60. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/Mod_likelihood.f90 +92 -82
  61. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/Mod_likelihood_gen.f90 +2 -2
  62. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/Mod_logger.f90 +1 -1
  63. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/Mod_parameters.f90 +6 -1
  64. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/Mod_potentials.f90 +87 -11
  65. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/nested_fit.f90 +331 -184
  66. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/nested_sampling.f90 +241 -100
  67. nested_fit-5.5.4/.github/workflows/build_wheels.yml +0 -164
  68. nested_fit-5.5.4/examples/README.md +0 -20
  69. nested_fit-5.5.4/examples/data_analysis/01_simple_example/legacy_func_input/he-histo_old.dat +0 -1024
  70. nested_fit-5.5.4/examples/jupyter_notebooks/.virtual_documents/pandas_extended_analysis.ipynb +0 -63
  71. nested_fit-5.5.4/examples/jupyter_notebooks/.virtual_documents/simple_analysis_visu.ipynb +0 -71
  72. nested_fit-5.5.4/examples/jupyter_notebooks/simple_analysis_visu.ipynb +0 -2743
  73. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/.gitignore +0 -0
  74. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/LICENSE +0 -0
  75. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/ThirdParty.md +0 -0
  76. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/cmake/resman.cmake +0 -0
  77. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/cmake/write_manifest.cmake +0 -0
  78. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/01_simple_example/RANDOM_WALK/he-histo.dat +0 -0
  79. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/01_simple_example/RANDOM_WALK_NO_DB/he-histo.dat +0 -0
  80. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/01_simple_example/RANDOM_WALK_SYN/he-histo.dat +0 -0
  81. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/01_simple_example/README.txt +0 -0
  82. {nested_fit-5.5.4/examples/data_analysis/01_simple_example/internal_func_input → nested_fit-5.6.0.dev106/examples/data_analysis/01_simple_example/internal_func_hard_writing}/he-histo.dat +0 -0
  83. {nested_fit-5.5.4/examples/data_analysis/01_simple_example/latex_func_input → nested_fit-5.6.0.dev106/examples/data_analysis/01_simple_example/internal_func_input}/he-histo.dat +0 -0
  84. {nested_fit-5.5.4/examples/data_analysis/01_simple_example/legacy_func_input → nested_fit-5.6.0.dev106/examples/data_analysis/01_simple_example/internal_func_no_points_file}/he-histo.dat +0 -0
  85. {nested_fit-5.5.4/examples/data_analysis/03_with_cluster_analysis/DBSCAN-RANDOM_WALK_SYN → nested_fit-5.6.0.dev106/examples/data_analysis/01_simple_example/internal_func_no_stat}/he-histo.dat +0 -0
  86. {nested_fit-5.5.4/examples/data_analysis/03_with_cluster_analysis/DBSCAN-SLICE_SAMPLING → nested_fit-5.6.0.dev106/examples/data_analysis/01_simple_example/latex_func_input}/he-histo.dat +0 -0
  87. {nested_fit-5.5.4/examples/data_analysis/03_with_cluster_analysis/KNN-RANDOM_WALK_SYN → nested_fit-5.6.0.dev106/examples/data_analysis/01_simple_example/legacy_func_input}/he-histo.dat +0 -0
  88. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/02_error_bars_data/README.txt +0 -0
  89. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/02_error_bars_data/eb_gauss_bg-x0_300-sigma_20-A_20000-p_to_bg_0.05-bin_1.dat +0 -0
  90. {nested_fit-5.5.4/examples/data_analysis/03_with_cluster_analysis/KNN-SLICE_SAMPLING → nested_fit-5.6.0.dev106/examples/data_analysis/03_with_cluster_analysis/DBSCAN-RANDOM_WALK_SYN}/he-histo.dat +0 -0
  91. {nested_fit-5.5.4/examples/data_analysis/03_with_cluster_analysis/agglomerative-RANDOM_WALK_SYN → nested_fit-5.6.0.dev106/examples/data_analysis/03_with_cluster_analysis/DBSCAN-SLICE_SAMPLING}/he-histo.dat +0 -0
  92. {nested_fit-5.5.4/examples/data_analysis/03_with_cluster_analysis/agglomerative-SLICE_SAMPLING → nested_fit-5.6.0.dev106/examples/data_analysis/03_with_cluster_analysis/KNN-RANDOM_WALK_SYN}/he-histo.dat +0 -0
  93. {nested_fit-5.5.4/examples/data_analysis/03_with_cluster_analysis/mean-shift-RANDOM_WALK_SYN → nested_fit-5.6.0.dev106/examples/data_analysis/03_with_cluster_analysis/KNN-SLICE_SAMPLING}/he-histo.dat +0 -0
  94. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/03_with_cluster_analysis/README.txt +0 -0
  95. {nested_fit-5.5.4/examples/data_analysis/03_with_cluster_analysis/mean-shift-SLICE_SAMPLING → nested_fit-5.6.0.dev106/examples/data_analysis/03_with_cluster_analysis/agglomerative-RANDOM_WALK_SYN}/he-histo.dat +0 -0
  96. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/04_set_of_datafiles/latex_func_input/gauss_bg-x0_300-sigma_20-A_300-p_to_bg_20-bin_1.dat +0 -0
  97. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/04_set_of_datafiles/latex_func_input/gauss_bg-x0_310-sigma_20-A_150-p_to_bg_10-bin_1.dat +0 -0
  98. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/04_set_of_datafiles/legacy_func_input/gauss_bg-x0_300-sigma_20-A_300-p_to_bg_20-bin_1.dat +0 -0
  99. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/04_set_of_datafiles/legacy_func_input/gauss_bg-x0_310-sigma_20-A_150-p_to_bg_10-bin_1.dat +0 -0
  100. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/05_data_2D/README.txt +0 -0
  101. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/05_data_2D/test_matrix.dat +0 -0
  102. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/data_analysis/06_interpolation_function/pynf_interp.ipynb +0 -0
  103. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/function_integration/08_func_EGGBOX/nf_input.yaml +0 -0
  104. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/jupyter_notebooks/.ipynb_checkpoints/pandas_extended_analysis-checkpoint.ipynb +0 -0
  105. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/jupyter_notebooks/.ipynb_checkpoints/simple_analysis_visu-checkpoint.ipynb +0 -0
  106. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/jupyter_notebooks/pandas_extended_analysis.ipynb +0 -0
  107. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/jupyter_notebooks/res_1gauss_bg/he-histo.dat +0 -0
  108. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/jupyter_notebooks/res_2gauss_bg/he-histo.dat +0 -0
  109. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/jupyter_notebooks/res_3gauss_bg/.ipynb_checkpoints/he-histo-checkpoint.dat +0 -0
  110. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/jupyter_notebooks/res_3gauss_bg/.ipynb_checkpoints/nf_input-checkpoint.dat +0 -0
  111. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/jupyter_notebooks/res_3gauss_bg/.ipynb_checkpoints/nf_input-checkpoint.yaml +0 -0
  112. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/jupyter_notebooks/res_3gauss_bg/he-histo.dat +0 -0
  113. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/jupyter_notebooks/res_4gauss_bg/he-histo.dat +0 -0
  114. {nested_fit-5.5.4/examples/data_analysis/04_set_of_datafiles → nested_fit-5.6.0.dev106/examples/jupyter_notebooks/set_of_datafiles}/README.txt +0 -0
  115. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/native_functions/example.cpp +0 -0
  116. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/examples/native_functions/example.f90 +0 -0
  117. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/.DS_Store +0 -0
  118. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/exercices_ICFO/ICFO2024_nested_fit_tutorial.ipynb +0 -0
  119. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/exercices_ICFO/res_1gauss_bg/he-histo.dat +0 -0
  120. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/exercices_ICFO/res_1gauss_bg/nf_input.yaml +0 -0
  121. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/exercises_QXRA/exercises_quantitative_xray_spectroscopy.ipynb +0 -0
  122. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/exercises_QXRA/with_U_1000_counts/c_U_1000_counts.dat +0 -0
  123. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/exercises_QXRA/with_U_100s/c_U_100s.dat +0 -0
  124. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/exercises_QXRA/with_U_1s/c_U_1s.dat +0 -0
  125. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/exercises_QXRA/with_U_1s/nf_input.dat +0 -0
  126. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/exercises_QXRA/without_U_100k_counts/s_U_100000_counts.dat +0 -0
  127. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/exercises_QXRA/without_U_1M_counts/nf_input.dat +0 -0
  128. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/exercises_QXRA/without_U_1M_counts/s_U_1000000_counts.dat +0 -0
  129. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/old_exercices/exercise1_piN_sampling/README.txt +0 -0
  130. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/old_exercices/exercise1_piN_sampling/nf_input.dat +0 -0
  131. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/old_exercices/exercise1_piN_sampling/piN-sum.dat +0 -0
  132. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/old_exercices/exercise2_pN_evidence/README.txt +0 -0
  133. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/old_exercices/exercise2_pN_evidence/nf_input.dat +0 -0
  134. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/old_exercices/exercise2_pN_evidence/piN-sum.dat +0 -0
  135. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/old_exercices/exercise2_pN_evidence/results_2000lp.txt +0 -0
  136. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/old_exercices/exercise3_He-like_U_from_scratch/README.txt +0 -0
  137. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/old_exercices/exercise3_He-like_U_from_scratch/he-histo.dat +0 -0
  138. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/old_exercices/exercise4_He-like_U_clusters/README.txt +0 -0
  139. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/old_exercices/exercise4_He-like_U_clusters/he-histo.dat +0 -0
  140. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/old_exercices/exercise4_He-like_U_clusters/nf_input.dat +0 -0
  141. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/old_exercices/exercise5_He-like_U_search_and_clusters_methods/README.txt +0 -0
  142. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/exercises/old_exercices/exercise5_He-like_U_search_and_clusters_methods/he-histo.dat +0 -0
  143. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/install.sh +0 -0
  144. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/nested_fit.egg-info/dependency_links.txt +0 -0
  145. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/nested_fit.egg-info/entry_points.txt +0 -0
  146. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/nested_fit.egg-info/requires.txt +0 -0
  147. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/nested_fit.egg-info/top_level.txt +0 -0
  148. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/nf_input.yaml +0 -0
  149. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/pynested_fit/__init__.py +0 -0
  150. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/pynested_fit/cliw.py +0 -0
  151. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/pynested_fit/evaluator.py +0 -0
  152. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/pynested_fit/metadata.py +0 -0
  153. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/pynested_fit/utils.py +0 -0
  154. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/pynested_fit/widgets/__init__.py +0 -0
  155. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/pynested_fit/widgets/bar.py +0 -0
  156. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/pynested_fit/widgets/errorui.py +0 -0
  157. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/pynested_fit/widgets/hfinder.py +0 -0
  158. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/pynested_fit/widgets/plot.py +0 -0
  159. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/pynested_fit/widgets/timer.py +0 -0
  160. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/pynested_fit/widgets/var.py +0 -0
  161. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/setup.cfg +0 -0
  162. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/setup.py +0 -0
  163. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/DIERCKX/curfit.f +0 -0
  164. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/DIERCKX/fpback.f +0 -0
  165. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/DIERCKX/fpbspl.f +0 -0
  166. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/DIERCKX/fpchec.f +0 -0
  167. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/DIERCKX/fpcurf.f +0 -0
  168. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/DIERCKX/fpdisc.f +0 -0
  169. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/DIERCKX/fpgivs.f +0 -0
  170. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/DIERCKX/fpknot.f +0 -0
  171. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/DIERCKX/fprati.f +0 -0
  172. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/DIERCKX/fprota.f +0 -0
  173. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/DIERCKX/splev.f +0 -0
  174. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/Makefile +0 -0
  175. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/Mod_cluster_analysis.f90 +0 -0
  176. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/Mod_covariance_matrix.f90 +0 -0
  177. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/Mod_input_parse.f90 +0 -0
  178. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/Mod_integrated_func.f90 +0 -0
  179. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/Mod_interpolate.f90 +0 -0
  180. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/Mod_jsonio.f90 +0 -0
  181. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/Mod_math.f90 +0 -0
  182. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/Mod_metadata.f90.in +0 -0
  183. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/Mod_options.f90 +0 -0
  184. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/Mod_perfprof.f90 +0 -0
  185. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/Mod_search_new_point.f90 +0 -0
  186. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/Mod_timestamp.f90 +0 -0
  187. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/Mod_userfcn.f90 +0 -0
  188. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/SLATEC/dpsort.f +0 -0
  189. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/SLATEC/fdump.f +0 -0
  190. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/SLATEC/i1mach.f +0 -0
  191. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/SLATEC/j4save.f +0 -0
  192. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/SLATEC/xercnt.f +0 -0
  193. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/SLATEC/xerhlt.f +0 -0
  194. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/SLATEC/xermsg.f +0 -0
  195. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/SLATEC/xerprn.f +0 -0
  196. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/SLATEC/xersve.f +0 -0
  197. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/SLATEC/xgetua.f +0 -0
  198. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/USERFCN.f +0 -0
  199. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/USERFCN_2D.f90 +0 -0
  200. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/USERFCN_SET.f +0 -0
  201. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/cli/argparse.f90 +0 -0
  202. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/funceval/auto_func.f90 +0 -0
  203. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/funceval/latex_parser.cpp +0 -0
  204. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/funceval/native_parser.cpp +0 -0
  205. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/functions/WOFZ.f +0 -0
  206. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/functions/internal.tex +0 -0
  207. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/functions/internal_funcs.f90 +0 -0
  208. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/helper/console.cpp +0 -0
  209. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/helper/halt.f90 +0 -0
  210. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/helper/hash.f90 +0 -0
  211. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/helper/int_stack.f90 +0 -0
  212. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/helper/resman.cpp.in +0 -0
  213. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/helper/rmhex.cpp +0 -0
  214. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/helper/strutil.f90 +0 -0
  215. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/helper/utils.cpp +0 -0
  216. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/init_interpolation.f +0 -0
  217. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/rinteg.f +0 -0
  218. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/src/shirley_fitpack.f90 +0 -0
  219. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/test/CMakeLists.txt +0 -0
  220. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/test/README.md +0 -0
  221. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/test/str.f90 +0 -0
  222. {nested_fit-5.5.4 → nested_fit-5.6.0.dev106}/test/test.f90 +0 -0
@@ -0,0 +1,172 @@
1
+ name: Python Build Wheels
2
+
3
+ on:
4
+ push:
5
+ branches: ["master", "dev"]
6
+
7
+ jobs:
8
+ build_wheels:
9
+ name: Build ${{ matrix.runs_on }} [${{ matrix.arch }}]
10
+ runs-on: ${{ matrix.runs_on }}
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ # Run for linux x86_64, macos arm64 and macos x86_64
15
+ include:
16
+ - runs_on: macos-15-intel
17
+ arch: x86_64
18
+ # minver: "10.15"
19
+ minver: "15.0"
20
+ - runs_on: macos-latest
21
+ arch: arm64
22
+ # minver: "11.0"
23
+ minver: "15.0"
24
+ - runs_on: ubuntu-latest
25
+ arch: x86_64
26
+ minver: ""
27
+
28
+ steps:
29
+ - uses: actions/checkout@v4
30
+ with:
31
+ fetch-depth: 0
32
+
33
+ - name: Install build tools (Linux)
34
+ if: runner.os == 'Linux'
35
+ run: |
36
+ sudo apt-get update
37
+ sudo apt-get install -y gfortran gcc cmake make
38
+
39
+ - name: Install llvm + libomp (macOS)
40
+ if: runner.os == 'macOS'
41
+ run: |
42
+ brew install llvm gcc libomp
43
+
44
+ # - name: Install conda (macOS)
45
+ # if: runner.os == 'macOS'
46
+ # uses: conda-incubator/setup-miniconda@v2
47
+ # with:
48
+ # miniforge-version: "latest"
49
+ # activate-environment: buildenv
50
+ # environment-file: ""
51
+ # auto-activate-base: false
52
+ #
53
+ # - name: Install buildtools (macOS)
54
+ # if: runner.os == 'macOS'
55
+ # run: |
56
+ # conda install -n buildenv -c conda-forge gfortran=11 libgfortran=5 libgcc libgfortran5 libcxx
57
+ # echo "CONDA_BIN=$CONDA_PREFIX/bin" >> $GITHUB_ENV
58
+ # echo "DYLD_FALLBACK_LIBRARY_PATH=$CONDA_PREFIX/lib" >> $GITHUB_ENV
59
+ # shell: bash -l {0}
60
+
61
+ - name: Deploy pre-release
62
+ if: startsWith(github.ref, 'refs/heads/dev')
63
+ shell: bash
64
+ run: |
65
+ BASE_VERSION=$(python3 -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')
66
+ DEV_VERSION="${BASE_VERSION}.dev${GITHUB_RUN_NUMBER}"
67
+ if [[ "$RUNNER_OS" == "macOS" ]]; then sed -i '' "s/version = \".*\"/version = \"${DEV_VERSION}\"/" pyproject.toml; else sed -i "s/version = \".*\"/version = \"${DEV_VERSION}\"/" pyproject.toml; fi
68
+ echo "Dev version: ${DEV_VERSION}"
69
+
70
+ - name: Fix git interactivity (macOS)
71
+ if: runner.os == 'macOS'
72
+ shell: bash
73
+ run: |
74
+ echo "GIT_TERMINAL_PROMPT=0" >> $GITHUB_ENV
75
+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
76
+ git rev-parse HEAD
77
+
78
+ - name: Build wheels (macOS)
79
+ if: runner.os == 'macOS'
80
+ uses: pypa/cibuildwheel@v3.0.1
81
+ env:
82
+ CIBW_ARCHS_MACOS: ${{ matrix.arch }}
83
+
84
+ # export DYLD_FALLBACK_LIBRARY_PATH=${{ env.DYLD_FALLBACK_LIBRARY_PATH }}
85
+ # echo "DYLD_FALLBACK_LIBRARY_PATH=$DYLD_FALLBACK_LIBRARY_PATH"
86
+ CIBW_BEFORE_BUILD: |
87
+ python3 -c "import os,subprocess; print('pwd', os.getcwd()); subprocess.run(['git','rev-parse','HEAD'], check=True)"
88
+
89
+ # PATH="/usr/bin:/usr/local/bin:$PATH"
90
+ # SDKROOT=$(xcrun --sdk macosx --show-sdk-path)
91
+ CIBW_ENVIRONMENT: >
92
+ MACOSX_DEPLOYMENT_TARGET=${{ matrix.minver }}
93
+ CMAKE_OSX_DEPLOYMENT_TARGET=${{ matrix.minver }}
94
+ CMAKE_OSX_ARCHITECTURES=${{ matrix.arch }}
95
+ CC=$(brew --prefix llvm)/bin/clang
96
+ CXX=$(brew --prefix llvm)/bin/clang++
97
+ FC=$(brew --prefix gcc)/bin/gfortran
98
+ GIT_TERMINAL_PROMPT=0
99
+ with:
100
+ package-dir: .
101
+ output-dir: wheelhouse
102
+ config-file: "{package}/pyproject.toml"
103
+
104
+ - name: Build wheels (Linux)
105
+ if: runner.os == 'Linux'
106
+ uses: pypa/cibuildwheel@v3.0.1
107
+ with:
108
+ package-dir: .
109
+ output-dir: wheelhouse
110
+ config-file: "{package}/pyproject.toml"
111
+
112
+ - uses: actions/upload-artifact@v4
113
+ with:
114
+ name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
115
+ path: ./wheelhouse/*.whl
116
+
117
+ make_sdist:
118
+ name: Make Python sdist
119
+ runs-on: ubuntu-latest
120
+ steps:
121
+ - uses: actions/checkout@v4
122
+ with:
123
+ fetch-depth: 0
124
+
125
+ - name: Deploy pre-release
126
+ if: startsWith(github.ref, 'refs/heads/dev')
127
+ shell: bash
128
+ run: |
129
+ BASE_VERSION=$(python3 -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')
130
+ DEV_VERSION="${BASE_VERSION}.dev${GITHUB_RUN_NUMBER}"
131
+ if [[ "$RUNNER_OS" == "macOS" ]]; then sed -i '' "s/version = \".*\"/version = \"${DEV_VERSION}\"/" pyproject.toml; else sed -i "s/version = \".*\"/version = \"${DEV_VERSION}\"/" pyproject.toml; fi
132
+ echo "Dev version: ${DEV_VERSION}"
133
+
134
+ - name: Build sdist
135
+ run: pipx run build --sdist
136
+
137
+ - uses: actions/upload-artifact@v4
138
+ with:
139
+ name: cibw-sdist
140
+ path: dist/*.tar.gz
141
+
142
+ upload_to_index:
143
+ name: Upload to PyPI index
144
+ needs: [build_wheels, make_sdist]
145
+ environment: pypi
146
+
147
+ permissions:
148
+ id-token: write
149
+ attestations: write
150
+ contents: read
151
+
152
+ runs-on: ubuntu-latest
153
+ steps:
154
+ - uses: actions/download-artifact@v4
155
+ with:
156
+ pattern: cibw-*
157
+ path: dist
158
+ merge-multiple: true
159
+
160
+ - name: Generate attestations
161
+ uses: actions/attest-build-provenance@v2
162
+ with:
163
+ subject-path: "dist/*"
164
+
165
+ - uses: pypa/gh-action-pypi-publish@release/v1
166
+ with:
167
+ # password: ${{ secrets.pypi_password }}
168
+ # repository-url: "https://pypi.org/legacy"
169
+ verbose: true
170
+ skip-existing: true
171
+ # attestations: false
172
+
@@ -2,16 +2,18 @@ cmake_minimum_required(VERSION 3.10)
2
2
 
3
3
  # NOTE: (César) : If we are on macOS set the minimum supported version to 10.15
4
4
  # due to C++17 support.
5
- if(APPLE)
6
- set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "" FORCE)
7
- endif()
5
+ # if(APPLE)
6
+ # set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "" FORCE)
7
+ # endif()
8
8
 
9
9
  # The nested_fit version being built -> This gets copied everywhere inside the project code
10
10
  # For more info see the 'src/Mod_metadata.f90.in' file
11
11
  # Read the version from the .toml file since this is what will be pushed to the repo
12
12
  file(READ "pyproject.toml" tomlfile)
13
- string(REGEX MATCH "version = \"([0-9]+\\.[0-9]+\\.[0-9]+)\"" vn ${tomlfile})
13
+ string(REGEX MATCH "version[ \t]*=[ \t]*\"([0-9]+\.[0-9]+\.[0-9]+)(\.dev[0-9]+)?\"" vn ${tomlfile})
14
14
  set(project_version ${CMAKE_MATCH_1})
15
+ message(STATUS "Build: ${CMAKE_MATCH_1}${CMAKE_MATCH_2}")
16
+ set(dev_version "${CMAKE_MATCH_2}")
15
17
 
16
18
  # This is just for the clangd LSP
17
19
  set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
@@ -76,7 +78,7 @@ add_definitions("-D'PROFILED(x)'=''")
76
78
  set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
77
79
 
78
80
  # Set nested fit version strings
79
- set(nested_fit_version_full_str "${CMAKE_PROJECT_VERSION_MAJOR}.${CMAKE_PROJECT_VERSION_MINOR}.${CMAKE_PROJECT_VERSION_PATCH}")
81
+ set(nested_fit_version_full_str "${CMAKE_PROJECT_VERSION_MAJOR}.${CMAKE_PROJECT_VERSION_MINOR}.${CMAKE_PROJECT_VERSION_PATCH}${dev_version}")
80
82
  set(nested_fit_version_str "${CMAKE_PROJECT_VERSION_MAJOR}.${CMAKE_PROJECT_VERSION_MINOR}")
81
83
  string(CONCAT nested_fit_target "nested_fit" ${nested_fit_version_full_str})
82
84
  string(REPLACE "." "_" nested_fit_target_ac ${nested_fit_target})
@@ -91,6 +93,7 @@ set(SRC_FILES_COMM
91
93
  src/Mod_likelihood.f90
92
94
  src/Mod_potentials.f90
93
95
  src/Mod_integrated_func.f90
96
+ src/Mod_array_tries.f90
94
97
 
95
98
  src/USERFCN_2D.f90
96
99
  src/USERFCN_SET.f
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nested_fit
3
- Version: 5.5.4
3
+ Version: 5.6.0.dev106
4
4
  Summary: The nested_fit package.
5
5
  Author: Martino Trassinelli, Lune Maillard, César Godinho
6
6
  Project-URL: Homepage, https://github.com/martinit18/nested_fit
@@ -161,6 +161,7 @@ For this purpose, the python module `nested_py` can be used also for compressed
161
161
  Together with this file, also the files `nf_output_points.paramnames` and `nf_output_points.ranges` are created for the use of GetDist and Anesthetic python libraries.
162
162
  - `nf_output_cluster_mean_std.dat`: contains the number of clusters, number of point per clusters, and mean and standard deviations for each cluster (if the clustering option is activated).
163
163
  - `nf_output_cluster_max.dat`: contains the number of clusters, the maximum value of the likelihood and the corresponding parameter values (if the clustering option is activated).
164
+ - `nf_energy.txt`: contains the volume and energy associated to the discarded and final live points. For a quantum potential, the decomposition of the energy between the avergaed potential and the replicas interaction is also given, as well as the temperature. Only created when exploring potentials.
164
165
 
165
166
  **Details of the input file line by line**
166
167
 
@@ -169,14 +170,15 @@ A complete selection of input files example is given in the folder `examples` wh
169
170
  It follows a complete description of `nf_input.yaml` file.
170
171
 
171
172
  ```yaml
172
- version: 5.5 # Program version
173
+ version: 5.6 # Program version
173
174
  calculation_mode: DATA # Type of calculation
174
175
  ```
175
176
  The type of calculation is spefified by `calculation_mode` variable.
176
177
  Available options are:
177
178
  - `DATA`: for data analysis. A likelihood function is explored the Bayesian evidence is evaluated. It requires a data file to read and thus the inputs `datafiles, specstr, likelihood`.
178
179
  - `INTEGRAL`: for the calculation of the integral of a given function.
179
- - `POTENTIAL`: for exploration of a potential energy and for building the partition function.
180
+ - `POTENTIAL`: for exploration of a classical potential energy and for building the partition function.
181
+ - `Q_POTENTIAL`: for exploration of a quantum potential energy and for building the partition function.
180
182
 
181
183
  ```yaml
182
184
  datafiles: file1.csv [, file2.csv, ...] # Name of the data file(s)
@@ -232,7 +234,8 @@ search:
232
234
  max_tries: 1000 # Maximum tries before stop (max_tries * tries_mult)
233
235
  tries_mult: 100 # Max tries multiplier
234
236
  num_tries: 1 # Number of runs
235
- max_steps: 100000 # Max number of steps before stop
237
+ hard_writing: true # Write dead points on a temporary file
238
+ max_steps: 100000 # Max number of steps before stop (required if hard_writing false)
236
239
  ```
237
240
 
238
241
  For the moment there are,
@@ -242,11 +245,14 @@ Except for the simplest researche, the detailed balance is maybe not respected b
242
245
  - A uniform search around each live point `UNIFORM`,
243
246
  - Three versions of slice sampling: `SLICE_SAMPLING`, `SLICE_SAMPLING_TRANSF`,`SLICE_SAMPLING_ADAPT`. The first two correspond, respectively, to the search being done in two different spaces (transformed and real) with the first one faster than the second one. `SLICE_SAMPLING_ADAPT` an adaptable step but the detailed balance is maybe not respected.
244
247
 
245
- The first two parameters of the above line are specific to the search algorithm:
248
+ `param1` and `param2` are specific to the search algorithm:
246
249
  - `RANDOM_WALK`, `RANDOM_WALK_NO_DB` par. 1: fraction of standard deviation for each jump, par. 2: number of jumps. Suggested values: 0.1-0.2, 10-40.
247
250
  - `SLICE_SAMPLING`, `SLICE_SAMPLING_TRANSF`, and `SLICE_SAMPLING_ADAPT` par. 1: fraction of standard deviation for segment exploration, par. 2: number of jumps. Suggested values: ~1, 3-5.
248
251
  - `UNIFORM` par. 1: fraction of standard deviation for the box size, par. 2: number of jumps. Suggested values: 0.1-1, 1.
249
252
 
253
+ If `hard_writing` is true, the dead points are saved in the unformatted file `nf_output_dead_points_info.txt` during the run. The number of iterations is not limited and the content of the file is erased at the end of the run. Otherwise, the dead points are kept in memory during the run. In that case, the maximum number of iterations is given by `max_steps`. ATTENTION, if `writing: statistics` is false, the file `nf_output_dead_points_info.txt` will not be written even if `search: hard_writing` is true.
254
+
255
+
250
256
  ```yaml
251
257
  convergence:
252
258
  method: LIKE_ACC # Method used for convergence
@@ -281,6 +287,16 @@ For the second option:
281
287
  - `s`: agglomerative clustering with single linkage (par. 1: distance limit)
282
288
  - `k`: k nearest neighbours (no parameters)
283
289
 
290
+ ```yaml
291
+ writing:
292
+ statistics: true # Calculate parameter statistics
293
+ all_parameters: true # Write nf_output_points (big) file
294
+ ```
295
+
296
+ These options allows to choose what is written in the ouput files:
297
+ - `statistics`: if true, the mean, standard deviation, median and confidence levels of the parameters are computed and written in the `nf_output_res` files. ATTENTION, in that case, an array is created with all the points found during the run. ATTENTION, if `writing: all_parameters` is false and `search: hard_writing` is true, `writing: statistics` will be force set to FALSE if it is not.
298
+ - `all_parameters`: if true, the `nf_output_points` files are written. ATTENTION, if false, the file `nf_output_dead_points_info.txt` will not be written even if `search: hard_writing` is true.
299
+
284
300
 
285
301
  ## Function definition
286
302
 
@@ -375,20 +391,23 @@ Examples of use of a legacy function can be found in `examples/data_analysis/aaa
375
391
 
376
392
  ## Present version and history of the past versions
377
393
 
378
- The present version is 5.5.4\
394
+ The present version is 5.6.0\
379
395
  New features:
380
- - Add PyPI binary distribution for x86_64 macOS
381
- - Add PyPI binary distribution for multiple linux systems
382
- - Add PyPI source distribution as a default for other systems
383
- - Rename CLI command to `nested_fit` to use the latest installed version via pip
396
+ - Optional management of memory of dead points (in RAM or file)
397
+ - Optional writing of dead points information
398
+ - Optional writing of parameter statistics (mean, standard deviation, etc.)
384
399
 
385
400
 
386
401
  Previous versions are:
402
+ - 5.5 New RANDOM_WALK function with detailed balance respected \
403
+ Add PyPI binary distribution for x86_64 macOS\
404
+ Add PyPI binary distribution for multiple linux systems\
405
+ Add PyPI source distribution as a default for other systems\
406
+ Rename CLI command to `nested_fit` to use the latest installed version via pip\
387
407
  - 5.4 Merge of executable for data analysis and function exploration via the new calculation mode variable \
388
408
  Debug of not-yet working feature of the version 5 compared to the version 4 \
389
- New outputs with maxima of each cluster \
390
- New RANDOM_WALK function with detailed balance respected
391
- - 5.3 New jupyter notebooks running in Google Colab \
409
+ New outputs with maxima of each cluster
410
+ - 5.3 New jupyter notebooks running in Google Colab \
392
411
  New innterpolation functions in python library \
393
412
  Live display when sampling from python. Works in console and jupyter notebooks \
394
413
  Live display featured maximum likelihood prediction plot \
@@ -3,7 +3,7 @@
3
3
  ## For Mac OS
4
4
  1) If you do not have a fortran compiler installed, install homebrew from [https://brew.sh/](https://brew.sh/)\
5
5
  Then in a terminal install with homebrew the required components:\
6
- `brew install gcc g++ gfortran make cmake`
6
+ `brew install gcc gfortran make cmake`
7
7
 
8
8
  If you did not do it yet, add homebrew binary directory in the shell variable `PATH` by adding **IN THIS ORDER** in `.bashrc`:
9
9
  ```sh
@@ -0,0 +1,24 @@
1
+ # Small guide of the examples
2
+
3
+ Examples of nested fit input files for data analysis are presented in the folder `data_analysis`. In particular
4
+ - in `01_simple_example` is the **simples** example anyone can start for testing the program,
5
+ - in `02_error_bars_data` an example is given for data with error bars and assuming a Gaussian probability for them,
6
+ - in `03_with_cluster_analysis` different cluster analyses are presented,
7
+ - in `04_set_of_datafile` an example of **simultaneous analysis of set data files** is given,
8
+ - in `05_data_2D` an example of **2D data** is given,
9
+ - in `06_interpolation_function` the interpolation method is presented (in a Jupyter notebook for practical reasons)
10
+
11
+ Examples of nested fit input files for function exploration are presented in the folder `function_integration`: a Gaussian function in 5D `07_func_GAUSS` (the integral is 1 -> 0 in log) and a eggbox function for testing the clustering abilities `08_func_EGGBOX`.
12
+
13
+ Examples of nested fit input files for potential exploration and analysis of the **partition function** with a choice of minimum temperature is given in the folder `potential_exploration`. Two Lennard-Jones clusters are given as example: a cluster with 7 classic atoms (`09_ENERGY_HARM_3D`) and a cluster with 3 atoms with nuclear quantum effects emulated with two replicas (`10_Q_ENERGY_HARM_3D`).
14
+
15
+
16
+ Examples of use of the python library `nested_res.py` are presented in two jupyter notebooks
17
+ - `simple_analysis_visu.ipynb` for a basic analysis and visualization of `nested_fit` outputs for a single analysis.
18
+ - `simple_visualisation.ipynb` for basic visualisation of already computed analyses.
19
+ - `set_of_files_analysis.ipynb` for the analysis of two spectra at the same time with two different, but correlated, functions.
20
+ - `pandas_extended_analysis.ipynb` for a more **complex analysis** for different choice of model, conditions or data set. Here, the output results are collected in a unique pandas dataframe to be easily compared and visualized
21
+
22
+ Another notebook can be found in `examples/data_analysis/06_interpolation_function/pynf_interp.ipynb` for interpolation of external data.
23
+
24
+ Numbered folders are referring to reference test benchmarks used to develop the code.
@@ -1,4 +1,4 @@
1
- version: 5.5 # Program version
1
+ version: 5.6 # Program version
2
2
  calculation_mode: DATA # Type of calculation (DATA for data, POTENTIAL for potential landscapes, INTEGRAL for function integrals)
3
3
  datafiles: he-histo.dat # Name of the data file
4
4
  specstr: x,c # Datafile layout
@@ -22,8 +22,8 @@ search:
22
22
  param2: 20 # Param 2 of chosen method (see below)
23
23
  max_tries: 1000 # Maximum tries before stop (max_tries * tries_mult)
24
24
  tries_mult: 100 # Max tries multiplier
25
- # num_tries: 1 # Number of runs
26
- max_steps: 100000 # Max number of steps before stop
25
+ # num_tries: 1 # Number of runs
26
+ # max_steps: 100000 # Max number of steps before stop (required if hard_writing false)
27
27
 
28
28
  convergence:
29
29
  method: LIKE_ACC # Method used for convergence
@@ -1,4 +1,4 @@
1
- version: 5.5 # Program version
1
+ version: 5.6 # Program version
2
2
  calculation_mode: DATA # Type of calculation (DATA for data, POTENTIAL for potential landscapes, INTEGRAL for function integrals)
3
3
  datafiles: he-histo.dat # Name of the data file
4
4
  specstr: x,c # Datafile layout
@@ -22,8 +22,8 @@ search:
22
22
  param2: 20 # Param 2 of chosen method (see below)
23
23
  max_tries: 1000 # Maximum tries before stop (max_tries * tries_mult)
24
24
  tries_mult: 100 # Max tries multiplier
25
- # num_tries: 1 # Number of runs
26
- max_steps: 100000 # Max number of steps before stop
25
+ # num_tries: 1 # Number of runs
26
+ # max_steps: 100000 # Max number of steps before stop (required if hard_writing false)
27
27
 
28
28
  convergence:
29
29
  method: LIKE_ACC # Method used for convergence
@@ -1,4 +1,4 @@
1
- version: 5.5 # Program version
1
+ version: 5.6 # Program version
2
2
  calculation_mode: DATA # Type of calculation (DATA for data, POTENTIAL for potential landscapes, INTEGRAL for function integrals)
3
3
  datafiles: he-histo.dat # Name of the data file
4
4
  specstr: x,c # Datafile layout
@@ -22,8 +22,8 @@ search:
22
22
  param2: 20 # Param 2 of chosen method (see below)
23
23
  max_tries: 1000 # Maximum tries before stop (max_tries * tries_mult)
24
24
  tries_mult: 100 # Max tries multiplier
25
- # num_tries: 1 # Number of runs
26
- max_steps: 100000 # Max number of steps before stop
25
+ # num_tries: 1 # Number of runs
26
+ # max_steps: 100000 # Max number of steps before stop (required if hard_writing false)
27
27
 
28
28
  convergence:
29
29
  method: LIKE_ACC # Method used for convergence
@@ -1,4 +1,4 @@
1
- version: 5.5 # Program version
1
+ version: 5.6 # Program version
2
2
  calculation_mode: DATA # Type of calculation (DATA for data, POTENTIAL for potential landscapes, INTEGRAL for function integrals)
3
3
  datafiles: he-histo.dat # Name of the data file
4
4
  specstr: x,c # Datafile layout
@@ -22,8 +22,9 @@ search:
22
22
  param2: 3 # Param 2 of chosen method (see below)
23
23
  max_tries: 1000 # Maximum tries before stop (max_tries * tries_mult)
24
24
  tries_mult: 100 # Max tries multiplier
25
- # num_tries: 1 # Number of runs
26
- max_steps: 100000 # Max number of steps before stop
25
+ num_tries: 10 # Number of runs
26
+ hard_writing: true # Write dead points on a temporary file
27
+ # max_steps: 100000 # Max number of steps before stop (required if hard_writing false)
27
28
 
28
29
  convergence:
29
30
  method: LIKE_ACC # Method used for convergence
@@ -0,0 +1,41 @@
1
+ version: 5.6 # Program version
2
+ calculation_mode: DATA # Type of calculation (DATA for data, POTENTIAL for potential landscapes, INTEGRAL for function integrals)
3
+ datafiles: he-histo.dat # Name of the data file
4
+ specstr: x,c # Datafile layout
5
+ # filefmt: .tsv # (optional) for data separated by spaces or tabs
6
+ # likelihood: GAUSSIAN # (for data with error bars only) Name of the likelihood function
7
+
8
+ function:
9
+ expression: gauss_bg(x, A, x_0, s, b_g) = \texttt{GAUSS_IF}(x, x_0, A, s) + b_g # function expression using an internal function in functions/internal_function.f90
10
+ params: # Parameters boundaries and co.
11
+ b_g: { value: 0.11, step: -1, min: 0, max: 0.5}
12
+ x_0: { value: 450, step: -1, min: 400, max: 600}
13
+ A: { value: 300, step: -1, min: 20, max: 1000}
14
+ s: { value: 20.0, step: -1, min: 0, max: 100}
15
+
16
+ data: { xmin: 1, xmax: 1024, ymin: 0, ymax: 0 } # Boundaries of data
17
+
18
+ search:
19
+ livepoints: 1000 # Number of live points
20
+ method: SLICE_SAMPLING # Search method
21
+ param1: 1 # Param 1 of chosen method (see below)
22
+ param2: 3 # Param 2 of chosen method (see below)
23
+ max_tries: 1000 # Maximum tries before stop (max_tries * tries_mult)
24
+ tries_mult: 100 # Max tries multiplier
25
+ num_tries: 1 # Number of runs
26
+ hard_writing: false # Write dead points on a temporary file
27
+ max_steps: 100000 # Max number of steps before stop (required if hard_writing false)
28
+
29
+ convergence:
30
+ method: LIKE_ACC # Method used for convergence
31
+ accuracy: 1.E-05 # Evidence final accuracy (in this case)
32
+
33
+ # clustering:
34
+ # enabled: true
35
+ # method: k
36
+ # parameter1: 0.5
37
+ # parameter2: 0.2
38
+
39
+ writing:
40
+ statistics: true # Calculate parameter statistics
41
+ all_parameters: true # Write nf_ouptut_points (big) file
@@ -0,0 +1,41 @@
1
+ version: 5.6 # Program version
2
+ calculation_mode: DATA # Type of calculation (DATA for data, POTENTIAL for potential landscapes, INTEGRAL for function integrals)
3
+ datafiles: he-histo.dat # Name of the data file
4
+ specstr: x,c # Datafile layout
5
+ # filefmt: .tsv # (optional) for data separated by spaces or tabs
6
+ # likelihood: GAUSSIAN # (for data with error bars only) Name of the likelihood function
7
+
8
+ function:
9
+ expression: gauss_bg(x, A, x_0, s, b_g) = \texttt{GAUSS_IF}(x, x_0, A, s) + b_g # function expression using an internal function in functions/internal_function.f90
10
+ params: # Parameters boundaries and co.
11
+ b_g: { value: 0.11, step: -1, min: 0, max: 0.5}
12
+ x_0: { value: 450, step: -1, min: 400, max: 600}
13
+ A: { value: 300, step: -1, min: 20, max: 1000}
14
+ s: { value: 20.0, step: -1, min: 0, max: 100}
15
+
16
+ data: { xmin: 1, xmax: 1024, ymin: 0, ymax: 0 } # Boundaries of data
17
+
18
+ search:
19
+ livepoints: 1000 # Number of live points
20
+ method: SLICE_SAMPLING # Search method
21
+ param1: 1 # Param 1 of chosen method (see below)
22
+ param2: 3 # Param 2 of chosen method (see below)
23
+ max_tries: 1000 # Maximum tries before stop (max_tries * tries_mult)
24
+ tries_mult: 100 # Max tries multiplier
25
+ num_tries: 1 # Number of runs
26
+ hard_writing: false # Write dead points on a temporary file
27
+ max_steps: 100000 # Max number of steps before stop (required if hard_writing false)
28
+
29
+ convergence:
30
+ method: LIKE_ACC # Method used for convergence
31
+ accuracy: 1.E-05 # Evidence final accuracy (in this case)
32
+
33
+ # clustering:
34
+ # enabled: true
35
+ # method: k
36
+ # parameter1: 0.5
37
+ # parameter2: 0.2
38
+
39
+ writing:
40
+ statistics: true # Calculate parameter statistics
41
+ all_parameters: false # Write nf_output_points (big) file
@@ -0,0 +1,41 @@
1
+ version: 5.6 # Program version
2
+ calculation_mode: DATA # Type of calculation (DATA for data, POTENTIAL for potential landscapes, INTEGRAL for function integrals)
3
+ datafiles: he-histo.dat # Name of the data file
4
+ specstr: x,c # Datafile layout
5
+ # filefmt: .tsv # (optional) for data separated by spaces or tabs
6
+ # likelihood: GAUSSIAN # (for data with error bars only) Name of the likelihood function
7
+
8
+ function:
9
+ expression: gauss_bg(x, A, x_0, s, b_g) = \texttt{GAUSS_IF}(x, x_0, A, s) + b_g # function expression using an internal function in functions/internal_function.f90
10
+ params: # Parameters boundaries and co.
11
+ b_g: { value: 0.11, step: -1, min: 0, max: 0.5}
12
+ x_0: { value: 450, step: -1, min: 400, max: 600}
13
+ A: { value: 300, step: -1, min: 20, max: 1000}
14
+ s: { value: 20.0, step: -1, min: 0, max: 100}
15
+
16
+ data: { xmin: 1, xmax: 1024, ymin: 0, ymax: 0 } # Boundaries of data
17
+
18
+ search:
19
+ livepoints: 1000 # Number of live points
20
+ method: SLICE_SAMPLING # Search method
21
+ param1: 1 # Param 1 of chosen method (see below)
22
+ param2: 3 # Param 2 of chosen method (see below)
23
+ max_tries: 1000 # Maximum tries before stop (max_tries * tries_mult)
24
+ tries_mult: 100 # Max tries multiplier
25
+ num_tries: 1 # Number of runs
26
+ hard_writing: false # Write dead points on a temporary file
27
+ max_steps: 100000 # Max number of steps before stop (required if hard_writing false)
28
+
29
+ convergence:
30
+ method: LIKE_ACC # Method used for convergence
31
+ accuracy: 1.E-05 # Evidence final accuracy (in this case)
32
+
33
+ # clustering:
34
+ # enabled: true
35
+ # method: k
36
+ # parameter1: 0.5
37
+ # parameter2: 0.2
38
+
39
+ writing:
40
+ statistics: false # Calculate parameter statistics
41
+ all_parameters: true # Write nf_output_points (big) file
@@ -1,4 +1,4 @@
1
- version: 5.5 # Program version
1
+ version: 5.6 # Program version
2
2
  calculation_mode: DATA # Type of calculation (DATA for data, POTENTIAL for potential landscapes, INTEGRAL for function integrals)
3
3
  datafiles: he-histo.dat # Name of the data file
4
4
  specstr: x,c # Datafile layout
@@ -22,8 +22,8 @@ search:
22
22
  param2: 3 # Param 2 of chosen method (see below)
23
23
  max_tries: 1000 # Maximum tries before stop (max_tries * tries_mult)
24
24
  tries_mult: 100 # Max tries multiplier
25
- # num_tries: 1 # Number of runs
26
- max_steps: 100000 # Max number of steps before stop
25
+ # num_tries: 1 # Number of runs
26
+ # max_steps: 100000 # Max number of steps before stop (required if hard_writing false)
27
27
 
28
28
  convergence:
29
29
  method: LIKE_ACC # Method used for convergence
@@ -1,4 +1,4 @@
1
- version: 5.5 # Program version
1
+ version: 5.6 # Program version
2
2
  calculation_mode: DATA # Type of calculation (DATA for data, POTENTIAL for potential landscapes, INTEGRAL for function integrals)
3
3
  datafiles: he-histo.dat # Name of the data file
4
4
  specstr: x,c # Datafile layout
@@ -22,8 +22,8 @@ search:
22
22
  param2: 3 # Param 2 of chosen method (see below)
23
23
  max_tries: 1000 # Maximum tries before stop (max_tries * tries_mult)
24
24
  tries_mult: 100 # Max tries multiplier
25
- # num_tries: 1 # Number of runs
26
- max_steps: 100000 # Max number of steps before stop
25
+ # num_tries: 1 # Number of runs
26
+ # max_steps: 100000 # Max number of steps before stop (required if hard_writing false)
27
27
 
28
28
  convergence:
29
29
  method: LIKE_ACC # Method used for convergence
@@ -1,4 +1,4 @@
1
- version: 5.5 # Program version
1
+ version: 5.6 # Program version
2
2
  calculation_mode: DATA # Type of calculation (DATA for data, POTENTIAL for potential landscapes, INTEGRAL for function integrals)
3
3
  datafiles: eb_gauss_bg-x0_300-sigma_20-A_20000-p_to_bg_0.05-bin_1.dat
4
4
  #specstr: x,c,ce
@@ -1,4 +1,4 @@
1
- version: 5.5 # Program version
1
+ version: 5.6 # Program version
2
2
  calculation_mode: DATA # Type of calculation (DATA for data, POTENTIAL for potential landscapes, INTEGRAL for function integrals)
3
3
  datafiles: he-histo.dat
4
4
  #specstr: x,c,ce
@@ -1,4 +1,4 @@
1
- version: 5.5 # Program version
1
+ version: 5.6 # Program version
2
2
  calculation_mode: DATA # Type of calculation (DATA for data, POTENTIAL for potential landscapes, INTEGRAL for function integrals)
3
3
  datafiles: he-histo.dat
4
4
  #specstr: x,c,ce
@@ -1,4 +1,4 @@
1
- version: 5.5 # Program version
1
+ version: 5.6 # Program version
2
2
  calculation_mode: DATA # Type of calculation (DATA for data, POTENTIAL for potential landscapes, INTEGRAL for function integrals)
3
3
  datafiles: he-histo.dat
4
4
  #specstr: x,c,ce
@@ -1,4 +1,4 @@
1
- version: 5.5 # Program version
1
+ version: 5.6 # Program version
2
2
  calculation_mode: DATA # Type of calculation (DATA for data, POTENTIAL for potential landscapes, INTEGRAL for function integrals)
3
3
  datafiles: he-histo.dat
4
4
  #specstr: x,c,ce
@@ -1,4 +1,4 @@
1
- version: 5.5 # Program version
1
+ version: 5.6 # Program version
2
2
  calculation_mode: DATA # Type of calculation (DATA for data, POTENTIAL for potential landscapes, INTEGRAL for function integrals)
3
3
  datafiles: he-histo.dat
4
4
  #specstr: x,c,ce