bitvf 0.1.0__tar.gz → 0.2.0__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 (226) hide show
  1. {bitvf-0.1.0 → bitvf-0.2.0}/.github/workflows/ci.yml +30 -1
  2. {bitvf-0.1.0 → bitvf-0.2.0}/.github/workflows/docs.yml +1 -0
  3. bitvf-0.2.0/CHANGELOG.md +175 -0
  4. {bitvf-0.1.0 → bitvf-0.2.0}/CITATION.cff +2 -2
  5. {bitvf-0.1.0 → bitvf-0.2.0}/CMakeLists.txt +100 -20
  6. {bitvf-0.1.0 → bitvf-0.2.0}/PKG-INFO +16 -11
  7. {bitvf-0.1.0 → bitvf-0.2.0}/README.md +14 -9
  8. {bitvf-0.1.0 → bitvf-0.2.0}/app/bitvf.cpp +72 -18
  9. {bitvf-0.1.0 → bitvf-0.2.0}/include/bitvf/BitVF.h +132 -14
  10. {bitvf-0.1.0 → bitvf-0.2.0}/include/bitvf/VoidFinder.h +337 -103
  11. {bitvf-0.1.0 → bitvf-0.2.0}/include/bitvf/io.h +45 -24
  12. {bitvf-0.1.0 → bitvf-0.2.0}/pyproject.toml +3 -3
  13. {bitvf-0.1.0 → bitvf-0.2.0}/python/bitvf/__init__.py +4 -0
  14. {bitvf-0.1.0 → bitvf-0.2.0}/python/bitvf/__init__.pyi +418 -85
  15. {bitvf-0.1.0 → bitvf-0.2.0}/python/bitvf/io.pyi +27 -15
  16. {bitvf-0.1.0 → bitvf-0.2.0}/python/bitvf_python.cpp +225 -45
  17. {bitvf-0.1.0 → bitvf-0.2.0}/src/Basins.cpp +57 -21
  18. {bitvf-0.1.0 → bitvf-0.2.0}/src/BitVFBox.cpp +14 -8
  19. {bitvf-0.1.0 → bitvf-0.2.0}/src/BitVFLightcone.cpp +278 -3
  20. {bitvf-0.1.0 → bitvf-0.2.0}/src/BoxGrid.cpp +91 -2
  21. {bitvf-0.1.0 → bitvf-0.2.0}/src/Checks.cpp +118 -19
  22. {bitvf-0.1.0 → bitvf-0.2.0}/src/Divergence.cpp +56 -7
  23. {bitvf-0.1.0 → bitvf-0.2.0}/src/LightconeBasins.cpp +1 -0
  24. {bitvf-0.1.0 → bitvf-0.2.0}/src/LightconeCentres.cpp +19 -12
  25. {bitvf-0.1.0 → bitvf-0.2.0}/src/LightconeDensities.cpp +13 -6
  26. {bitvf-0.1.0 → bitvf-0.2.0}/src/LightconeDivergence.cpp +5 -5
  27. {bitvf-0.1.0 → bitvf-0.2.0}/src/LightconeGrid.cpp +63 -46
  28. {bitvf-0.1.0 → bitvf-0.2.0}/src/Readers.cpp +39 -11
  29. {bitvf-0.1.0 → bitvf-0.2.0}/src/Smoothing.cpp +37 -7
  30. {bitvf-0.1.0 → bitvf-0.2.0}/src/VoidFinderBox.cpp +20 -4
  31. {bitvf-0.1.0 → bitvf-0.2.0}/src/VoidFinderLightcone.cpp +320 -129
  32. {bitvf-0.1.0 → bitvf-0.2.0}/src/Watershed.cpp +53 -21
  33. {bitvf-0.1.0 → bitvf-0.2.0}/src/Writers.cpp +77 -37
  34. {bitvf-0.1.0 → bitvf-0.2.0}/src/internal.h +243 -83
  35. bitvf-0.2.0/tests/executable/cases/box_lightcone_input.ini +17 -0
  36. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/lightcone_box_file.ini +1 -1
  37. bitvf-0.2.0/tests/executable/cases/lightcone_cartesian_d_max.ini +22 -0
  38. bitvf-0.2.0/tests/executable/cases/lightcone_cartesian_file_is_sky.ini +16 -0
  39. bitvf-0.2.0/tests/executable/cases/lightcone_cartesian_mean.ini +23 -0
  40. bitvf-0.2.0/tests/executable/cases/lightcone_cartesian_run.ini +42 -0
  41. bitvf-0.2.0/tests/executable/cases/lightcone_cartesian_units.ini +21 -0
  42. bitvf-0.2.0/tests/executable/cases/lightcone_cartesian_w0_alone.ini +21 -0
  43. bitvf-0.2.0/tests/executable/cases/lightcone_cartesian_z_min.ini +21 -0
  44. bitvf-0.2.0/tests/executable/cases/lightcone_input_word.ini +20 -0
  45. bitvf-0.2.0/tests/executable/cases/lightcone_sky_d_min.ini +23 -0
  46. bitvf-0.2.0/tests/executable/cases/lightcone_sky_file_is_cartesian.ini +16 -0
  47. bitvf-0.2.0/tests/executable/cases/periodic_complete.ini +12 -0
  48. bitvf-0.2.0/tests/executable/cases/periodic_lightcone.ini +20 -0
  49. bitvf-0.2.0/tests/executable/cases/periodic_mean.ini +12 -0
  50. bitvf-0.2.0/tests/executable/cases/periodic_no_limits.ini +15 -0
  51. bitvf-0.2.0/tests/executable/cases/periodic_uneven.ini +17 -0
  52. bitvf-0.2.0/tests/executable/cases/periodic_word.ini +17 -0
  53. bitvf-0.2.0/tests/executable/cases/run_periodic_1.ini +53 -0
  54. bitvf-0.2.0/tests/executable/cases/run_periodic_4.ini +53 -0
  55. bitvf-0.2.0/tests/executable/compare_files.cmake +21 -0
  56. bitvf-0.2.0/tests/executable/data/lightcone_cart_randoms.dat +1502 -0
  57. bitvf-0.2.0/tests/executable/data/lightcone_cart_tracers.dat +502 -0
  58. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/reference.cpp +57 -2
  59. {bitvf-0.1.0 → bitvf-0.2.0}/tests/fixtures.h +2 -2
  60. {bitvf-0.1.0 → bitvf-0.2.0}/tests/python_reference.cpp +70 -15
  61. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_basins.cpp +6 -3
  62. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_bitvf.py +84 -6
  63. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_box_grid.cpp +8 -5
  64. bitvf-0.2.0/tests/test_box_periodic.cpp +460 -0
  65. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_checks.cpp +10 -6
  66. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_determinism.py +7 -1
  67. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_divergence.cpp +5 -3
  68. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_from_divergence.cpp +1 -1
  69. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_lightcone_basins.cpp +3 -3
  70. bitvf-0.2.0/tests/test_lightcone_cartesian.cpp +634 -0
  71. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_lightcone_centres.cpp +12 -10
  72. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_lightcone_densities.cpp +5 -4
  73. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_lightcone_divergence.cpp +4 -4
  74. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_lightcone_entry.cpp +28 -19
  75. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_lightcone_faces.cpp +6 -6
  76. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_lightcone_files.cpp +6 -5
  77. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_lightcone_fill.cpp +4 -4
  78. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_lightcone_grid.cpp +14 -10
  79. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_lightcone_pipeline.cpp +8 -6
  80. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_lightcone_python.py +171 -15
  81. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_lightcone_smoothing.cpp +4 -4
  82. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_lightcone_watershed.cpp +3 -3
  83. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_readers.cpp +5 -5
  84. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_report.cpp +10 -8
  85. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_runbox.cpp +2 -0
  86. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_smoothing.cpp +2 -1
  87. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_watershed.cpp +2 -1
  88. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_writers.cpp +58 -13
  89. {bitvf-0.1.0 → bitvf-0.2.0}/tools/wheels/select_otswap_omp.sh +2 -2
  90. bitvf-0.1.0/CHANGELOG.md +0 -5
  91. {bitvf-0.1.0 → bitvf-0.2.0}/.github/workflows/release.yml +0 -0
  92. {bitvf-0.1.0 → bitvf-0.2.0}/.gitignore +0 -0
  93. {bitvf-0.1.0 → bitvf-0.2.0}/LICENSE +0 -0
  94. {bitvf-0.1.0 → bitvf-0.2.0}/app/bitvf_field.cpp +0 -0
  95. {bitvf-0.1.0 → bitvf-0.2.0}/app/common.h +0 -0
  96. {bitvf-0.1.0 → bitvf-0.2.0}/cmake/bitvfConfig.cmake.in +0 -0
  97. {bitvf-0.1.0 → bitvf-0.2.0}/python/bitvf/io.py +0 -0
  98. {bitvf-0.1.0 → bitvf-0.2.0}/python/bitvf/py.typed +0 -0
  99. {bitvf-0.1.0 → bitvf-0.2.0}/src/LightconeSmoothing.cpp +0 -0
  100. {bitvf-0.1.0 → bitvf-0.2.0}/src/LightconeWatershed.cpp +0 -0
  101. {bitvf-0.1.0 → bitvf-0.2.0}/src/Support.cpp +0 -0
  102. {bitvf-0.1.0 → bitvf-0.2.0}/src/VoidFinderField.cpp +0 -0
  103. {bitvf-0.1.0 → bitvf-0.2.0}/tests/check.h +0 -0
  104. {bitvf-0.1.0 → bitvf-0.2.0}/tests/determinism_hashes.json +0 -0
  105. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/box_empty_min.ini +0 -0
  106. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/box_missing_max.ini +0 -0
  107. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/box_not_above.ini +0 -0
  108. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/cmdline_dashed_file.ini +0 -0
  109. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/cmdline_help.ini +0 -0
  110. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/cmdline_help_and_more.ini +0 -0
  111. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/cmdline_missing_file.ini +0 -0
  112. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/cmdline_no_argument.ini +0 -0
  113. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/cmdline_two_arguments.ini +0 -0
  114. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/cmdline_unknown_option.ini +0 -0
  115. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/cmdline_version.ini +0 -0
  116. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/empty_many_box_max.ini +0 -0
  117. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/empty_many_mps.ini +0 -0
  118. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/field_cmdline_help.ini +0 -0
  119. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/field_cmdline_missing_file.ini +0 -0
  120. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/field_cmdline_no_argument.ini +0 -0
  121. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/field_cmdline_two_arguments.ini +0 -0
  122. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/field_cmdline_unknown_option.ini +0 -0
  123. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/field_cmdline_version.ini +0 -0
  124. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/field_comma.ini +0 -0
  125. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/field_irrelevant.ini +0 -0
  126. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/field_library_missing_column.ini +0 -0
  127. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/field_mps_default_unit.ini +0 -0
  128. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/field_mps_unit_written.ini +0 -0
  129. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/field_output_dir_file.ini +0 -0
  130. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/field_output_file.ini +0 -0
  131. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/field_range_mps.ini +0 -0
  132. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/field_run_1.ini +0 -0
  133. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/field_run_4.ini +0 -0
  134. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/field_sigma_zero.ini +0 -0
  135. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/field_three_column_centre.ini +0 -0
  136. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/geometry_cube.ini +0 -0
  137. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/geometry_missing.ini +0 -0
  138. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/id_column_duplicate.ini +0 -0
  139. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/id_column_tracer_column.ini +0 -0
  140. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/input_two_keys.ini +0 -0
  141. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/irrelevant_box.ini +0 -0
  142. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/irrelevant_complete.ini +0 -0
  143. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/irrelevant_divergence.ini +0 -0
  144. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/irrelevant_lightcone.ini +0 -0
  145. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/irrelevant_lightcone_complete.ini +0 -0
  146. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/irrelevant_lightcone_no_recons.ini +0 -0
  147. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/irrelevant_lightcone_not_external.ini +0 -0
  148. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/irrelevant_mean.ini +0 -0
  149. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/irrelevant_no_random_file.ini +0 -0
  150. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/irrelevant_no_recons.ini +0 -0
  151. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/irrelevant_pipeline_divergence_file.ini +0 -0
  152. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/irrelevant_precedence.ini +0 -0
  153. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/irrelevant_with_divergence_file.ini +0 -0
  154. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/library_wrong_product.ini +0 -0
  155. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/lightcone_divergence_input_file.ini +0 -0
  156. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/lightcone_range_bins.ini +0 -0
  157. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/lightcone_range_z_max.ini +0 -0
  158. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/lightcone_required_Omega_matter.ini +0 -0
  159. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/lightcone_required_bias_file.ini +0 -0
  160. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/lightcone_required_bins.ini +0 -0
  161. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/lightcone_required_mask.ini +0 -0
  162. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/lightcone_required_random_file.ini +0 -0
  163. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/lightcone_required_units.ini +0 -0
  164. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/lightcone_run_complete_1.ini +0 -0
  165. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/lightcone_run_external_1.ini +0 -0
  166. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/lightcone_run_mean_4.ini +0 -0
  167. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/lightcone_run_pipeline_1.ini +0 -0
  168. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/lightcone_run_pipeline_4.ini +0 -0
  169. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/lightcone_run_rsd_1.ini +0 -0
  170. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/lightcone_word_random_recons_mode.ini +0 -0
  171. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/lightcone_word_units.ini +0 -0
  172. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/malformed_Nrec.ini +0 -0
  173. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/mean_no_box_limits.ini +0 -0
  174. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/otswap_missing_tracer_file.ini +0 -0
  175. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/output_dir_file.ini +0 -0
  176. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/output_file_slash.ini +0 -0
  177. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/range_Nrec.ini +0 -0
  178. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/range_Omega_matter.ini +0 -0
  179. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/range_bias.ini +0 -0
  180. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/range_cell_size.ini +0 -0
  181. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/range_little_h.ini +0 -0
  182. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/range_los_axis.ini +0 -0
  183. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/range_mesh_cellsize.ini +0 -0
  184. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/range_mps.ini +0 -0
  185. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/range_redshift.ini +0 -0
  186. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/range_rsd_smoothing_scale.ini +0 -0
  187. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/range_sigma.ini +0 -0
  188. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/range_threshold.ini +0 -0
  189. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/required_column_random.ini +0 -0
  190. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/required_output_dir.ini +0 -0
  191. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/required_recons_redshift.ini +0 -0
  192. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/required_tracer_file.ini +0 -0
  193. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/run_complete_1.ini +0 -0
  194. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/run_complete_4.ini +0 -0
  195. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/run_divergence_1.ini +0 -0
  196. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/run_divergence_4.ini +0 -0
  197. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/run_mean_1.ini +0 -0
  198. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/run_mean_4.ini +0 -0
  199. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/run_meanmulti_4.ini +0 -0
  200. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/run_pipeline_1.ini +0 -0
  201. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/run_pipeline_4.ini +0 -0
  202. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/run_rsd_1.ini +0 -0
  203. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/run_rsd_4.ini +0 -0
  204. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/three_column_tracer.ini +0 -0
  205. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/unknown_keys.ini +0 -0
  206. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/word_output_format.ini +0 -0
  207. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/word_sigma_unit.ini +0 -0
  208. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/cases/writer_fails.ini +0 -0
  209. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/data/box_tracers.dat +0 -0
  210. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/data/field.dat +0 -0
  211. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/data/field_comma.csv +0 -0
  212. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/data/lightcone_bias.dat +0 -0
  213. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/data/lightcone_mask.fits +0 -0
  214. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/data/lightcone_randoms.dat +0 -0
  215. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/data/lightcone_tracers.dat +0 -0
  216. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/data/tracers_dup_id.dat +0 -0
  217. {bitvf-0.1.0 → bitvf-0.2.0}/tests/executable/run_case.cmake +0 -0
  218. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_crossmodule.py +0 -0
  219. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_from_field.cpp +0 -0
  220. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_import.py +0 -0
  221. {bitvf-0.1.0 → bitvf-0.2.0}/tests/test_readme.py +0 -0
  222. {bitvf-0.1.0 → bitvf-0.2.0}/tools/wheels/build_deps.sh +0 -0
  223. {bitvf-0.1.0 → bitvf-0.2.0}/tools/wheels/check_dependencies.py +0 -0
  224. {bitvf-0.1.0 → bitvf-0.2.0}/tools/wheels/check_openmp.py +0 -0
  225. {bitvf-0.1.0 → bitvf-0.2.0}/tools/wheels/check_pins.sh +0 -0
  226. {bitvf-0.1.0 → bitvf-0.2.0}/tools/wheels/test_wheel.sh +0 -0
@@ -4,7 +4,10 @@ name: CI
4
4
  # pull request: with GCC and clang on Linux and with Apple clang on macOS,
5
5
  # warnings as errors. The C++ tests run with 1 and with 4 threads.
6
6
 
7
- on: [push, pull_request]
7
+ on:
8
+ push:
9
+ branches: [main]
10
+ pull_request:
8
11
 
9
12
  permissions:
10
13
  contents: read
@@ -112,3 +115,29 @@ jobs:
112
115
  run: >-
113
116
  "$RUNNER_TEMP/venv/bin/python" -m pytest "$GITHUB_WORKSPACE/tests"
114
117
  -p no:cacheprovider -rs
118
+
119
+ # Every example is built from its own folder against the installed
120
+ # library and run, and must write the files of the in-tree build above.
121
+ # field reads the divergence file of full_recons_box, so it follows it.
122
+ - name: Build the examples against the installed library and compare
123
+ run: |
124
+ cmake --install build --prefix "$RUNNER_TEMP/prefix"
125
+ for d in box full_recons_box field lightcone full_recons_lightcone periodic_box lightcone_cartesian; do
126
+ cmake -S "examples/$d" -B "$RUNNER_TEMP/examples/$d" -DCMAKE_PREFIX_PATH="$RUNNER_TEMP/prefix" \
127
+ -DCMAKE_COMPILE_WARNING_AS_ERROR=ON
128
+ cmake --build "$RUNNER_TEMP/examples/$d"
129
+ "$RUNNER_TEMP/examples/$d/$d"
130
+ diff -r "build/examples/$d" "examples/$d/output"
131
+ done
132
+
133
+ # With a fixed seed the Python examples write the files of the C++
134
+ # ones, which the C++ tests above wrote to the build directory. Their
135
+ # output folders are emptied first, so that a file left by the step
136
+ # above cannot stand in for a missing one.
137
+ - name: Run the examples in Python and compare
138
+ run: |
139
+ for d in box full_recons_box field lightcone full_recons_lightcone periodic_box lightcone_cartesian; do
140
+ rm -rf "examples/$d/output"
141
+ "$RUNNER_TEMP/venv/bin/python" "examples/$d/$d.py"
142
+ diff -r "build/examples/$d" "examples/$d/output"
143
+ done
@@ -7,6 +7,7 @@ name: Docs
7
7
 
8
8
  on:
9
9
  push:
10
+ branches: [main]
10
11
  pull_request:
11
12
 
12
13
  permissions:
@@ -0,0 +1,175 @@
1
+ # Changelog
2
+
3
+ ## 0.2.0 — 2026-11-30
4
+
5
+ ### Requirements
6
+
7
+ - Requires otswap 0.5 (and through it meshsearch 1.0); the Python package
8
+ depends on `otswap >= 0.5, < 0.6`. When no installed otswap 0.5 is found,
9
+ CMake fetches v0.5.0. A build directory configured for 0.1.0 keeps the
10
+ otswap and meshsearch tags in its cache: configure a new one, or pass
11
+ `-DBITVF_OTSWAP_TAG=v0.5.0 -DOTSWAP_MESHSEARCH_TAG=v1.0.0`.
12
+ - The CMake build asks for Python 3.10 or later, as the package does.
13
+ - otswap 0.4 and 0.5 have breaking changes of their own: read their
14
+ changelogs before upgrading code that calls otswap directly. Programs and
15
+ Python modules built against bitvf 0.1.0 must be rebuilt, since several
16
+ public structs gain members.
17
+
18
+ ### What code calling bitvf must change
19
+
20
+ - Change `find_package(bitvf 0.1 ...)` in your own CMake projects to
21
+ `find_package(bitvf 0.2 ...)`: before 1.0 a request for a minor version
22
+ accepts only that minor series.
23
+ - `otswap::Geometry::Lightcone` no longer exists. bitvf's `Result::geometry`
24
+ and `DivergenceGrid::geometry` are `otswap::Geometry::LightconeSky` for a
25
+ search or grid of the sky overloads and `LightconeCartesian` for one of
26
+ the Cartesian overloads (`findVoidsLightconeFromCartesian`,
27
+ `lightconeGridFromCartesian`, `runLightconeFromCartesian`); Python
28
+ `geometry` returns `"lightcone_sky"` or `"lightcone_cartesian"`, never
29
+ `"lightcone"`. Test a lightcone as "not a box".
30
+ - bitvf's own files write `GEOMETRY` as otswap does: `box`,
31
+ `lightcone_sky` or `lightcone_cartesian`. `readDivergence` sets the grid's
32
+ geometry from it, and reads `GEOMETRY = lightcone` (bitvf 0.1) as
33
+ `lightcone_sky`.
34
+ - A grid to reuse must have the geometry of the search (sky or Cartesian);
35
+ a grid of the other lightcone geometry is refused, in C++ and Python.
36
+ - The `outsideCut` column of the galaxies file describes the distance cut for
37
+ a Cartesian search and the redshift cut for a sky one.
38
+ - The sky and Cartesian overloads tell an `otswap::Result` apart by its
39
+ `geometry`, no longer by the kind of its mps profile. otswap 0.5 reads a
40
+ Cartesian displacement file written by otswap 0.4 as a sky result, which
41
+ the Cartesian overloads, and the executable with
42
+ `lightcone_input = cartesian`, then refuse: write such files again with
43
+ otswap 0.5.
44
+ - In Python, `otswap.io.read_displacement_complete` and
45
+ `read_displacement_mean` take `angle_unit` only for a lightcone file, and
46
+ `otswap.Result.from_arrays` requires `geometry=`.
47
+ - The error that refuses a reconstruction of the wrong geometry names it:
48
+ "the reconstruction is a box result", "a sky lightcone result" or "a
49
+ Cartesian lightcone result", with the function to use.
50
+
51
+ ### Compatibility
52
+
53
+ - Searches and pipelines on sky lightcones and non-periodic boxes give the
54
+ same results as 0.1.0 for the same inputs and configuration.
55
+ - Parameter files written for 0.1.0 run unchanged: the new keys are
56
+ optional (`lightcone_input` defaults to `sky`, `periodic` to false).
57
+ - Lightcone void and overdense files gain the column `centreDC` after
58
+ `centreRed`, so the columns from `centreX` on move one place: read
59
+ columns by name, or update their indices.
60
+ - The files of a search on an otswap result, and so of every pipeline
61
+ pass, gain the keyword `SEED`.
62
+
63
+ ### Lightcone catalogues in Cartesian coordinates
64
+
65
+ - New pipeline `runLightconeFromCartesian` (Python
66
+ `run_lightcone_from_cartesian`): `runLightcone` from Cartesian tracers and
67
+ randoms, the observer at the origin, with a distance cut; the distance
68
+ table is optional, required only for the correction of redshift-space
69
+ distortions. The mps profile is measured in bins of comoving distance;
70
+ the lightcone guide explains how its voids compare with a sky run's.
71
+ - `findVoidsLightconeFromCartesian` (C++) changes signature and needs no
72
+ distance table: the table moves from before the mps profile to an
73
+ optional pointer after the configuration, required only with a profile in
74
+ redshift, and the redshift cut is replaced by an `otswap::DistanceCut` (`Result::distanceCut`,
75
+ `Counts::tracersOutsideDistanceCut`, `randomsOutsideDistanceCut`). Points
76
+ are located by `pointToSky`, so rows beyond the table are accepted with a
77
+ profile in distance. Without a table, output redshifts are NaN.
78
+ - New C++ `findVoidsLightconeFromCartesian` from an `otswap::Result` of a
79
+ Cartesian reconstruction, and `lightconeGridFromCartesian` (arrays or
80
+ result). The sky overloads refuse a Cartesian result.
81
+ - Lightcone searches accept an mps profile in comoving distance, as otswap's
82
+ Cartesian reconstructions measure it.
83
+ - New `BasinCatalog::centreDistance` (Python `centre_distance`), the
84
+ comoving distance of the centre from the observer, written as the column
85
+ `centreDC` after `centreRed` in the lightcone void and overdense files.
86
+ - Python mirrors the C++ Cartesian API: `find_voids_lightcone_from_cartesian`
87
+ takes `distance_cut` in place of the removed `redshift_cut`, and an
88
+ optional `distances`, or an `otswap.Result`; a search that cut in redshift
89
+ now gives the equivalent bounds in comoving distance;
90
+ new `lightcone_grid_from_cartesian`; `Result.distance_cut`,
91
+ `Counts.tracers_outside_distance_cut`, `randoms_outside_distance_cut`;
92
+ `mps_profile` returns a profile in distance instead of None.
93
+ - In a lightcone, a Cartesian point with a NaN coordinate now gives NaN
94
+ distance, right ascension and declination, as otswap's `pointToSky` does.
95
+
96
+ ### Periodic boxes
97
+
98
+ - `findVoidsBox` (arrays) takes `bool periodic` right after the limits,
99
+ which it requires (each side an integer multiple of the shortest, as
100
+ otswap's periodic `reconstructBox`); positional calls that pass `ids` or
101
+ `grid` must insert it. The `otswap::Result` overload and
102
+ `boxGrid(Result)` read `otswap::Result::periodic`; `boxGrid(box, mps,
103
+ cell, periodic)`. Python: `periodic` argument of `find_voids_box` and
104
+ `box_grid`; `box_grid`'s error now names the arguments given with a
105
+ reconstruction.
106
+ - The periodic grid covers the box exactly with cubic cells of the largest
107
+ side not above the requested one that divides the sides, so the counts
108
+ may differ per axis; `Result::config.divergenceCellSize` records the side
109
+ used. The watershed, the fill, the smoothing (circular), the centres, the
110
+ densities and the tracer distances wrap around the faces; displacements
111
+ cross the faces into the cell of their wrapped end; `edgeFlag` and
112
+ `contamination` are 0. New `DivergenceGrid::periodic` and
113
+ `Result::periodic` (Python `periodic`); a grid is reused only by a search
114
+ of the same periodicity.
115
+ - Periodic boxes wrap the tracers outside the limits into them, as otswap
116
+ does, instead of skipping them (`findVoidsBox`,
117
+ `findVoidsBoxFromDivergence` on a periodic grid); new
118
+ `Counts::tracersWrapped` (Python `tracers_wrapped`), from otswap's count
119
+ for a reconstruction (in the real-space pass of a pipeline, the second
120
+ reconstruction's, as the report prints it); the report's box line reads
121
+ "wrapped <w> of <N> tracers into the periodic box …".
122
+ - `BoxConfig::periodic` (Python `BoxConfig.periodic`): `runBox` in a
123
+ periodic box, limits required; with the correction the second pass
124
+ reuses the first grid and no tracer leaves it.
125
+
126
+ ### Seed
127
+
128
+ - New `BitVFResult::seed` (Python `BitVFResult.seed`): the seed of the
129
+ pipeline's reconstructions, `config.ot.seed` or the one drawn at the
130
+ start of the run when it is 0, so that a run with seed 0 can be repeated.
131
+ - New `Result::seed` (Python `Result.seed`): the seed of the reconstruction
132
+ searched, from `otswap::Result::config`; set by every search on an otswap
133
+ result, every pass of a pipeline included, `None` in a search from
134
+ arrays, a divergence grid or a field.
135
+
136
+ ### Files
137
+
138
+ - Every file of a result with a seed writes it as `SEED`, before
139
+ `RANDSEED`.
140
+ - Box files write `PERIODIC = 1` for a periodic box, and `readDivergence`
141
+ reads it.
142
+ - Divergence files hold an mps profile in distance with otswap's names
143
+ (column `distance`, keywords `DISTMIN`, `DISTMAX` in the profile part) and
144
+ can be written without a distance table, `cellRed` then NaN; the reader
145
+ accepts both kinds and refuses a profile part with both.
146
+ - Files record a distance cut as `DCUTMIN`, `DCUTMAX`; the galaxies file
147
+ writes `inCut` for a bounded distance cut too.
148
+
149
+ ### Executable
150
+
151
+ - `lightcone_input = cartesian` reads a Cartesian lightcone: `d_min`/`d_max`
152
+ give the distance cut, the cosmology is optional (required with
153
+ `perform_recons`), and a displacement file of Cartesian positions is
154
+ accepted.
155
+ - `periodic = true` runs a box pipeline in a periodic box, with `box_min`
156
+ and `box_max`.
157
+ - `mesh_cellsize` defaults to 3, as otswap's `Config::cellSize`
158
+ (Python `cell_size`), which C++ and Python runs also take by default; the
159
+ results do not change.
160
+ - With `lightcone_input = cartesian`, `units`, `z_min` and `z_max` are
161
+ errors, and the `.distances` twin of a displacement file is written only
162
+ when the cosmology is given.
163
+
164
+ ### Examples and documentation
165
+
166
+ - New examples `periodic_box` and `lightcone_cartesian`; the `box` example
167
+ writes its reconstruction to otswap's displacement file and searches the
168
+ file read back. Every example run has a commented parameter file in
169
+ `examples/executable` that writes the same files with the executable.
170
+ - The guides, file formats and executable pages document Cartesian
171
+ lightcones and periodic boxes.
172
+
173
+ ## 0.1.0 — 2026-11-23
174
+
175
+ First public release.
@@ -9,8 +9,8 @@ authors:
9
9
  - family-names: Sartori
10
10
  given-names: Simone
11
11
  email: simone.sartori@inaf.it
12
- version: 0.1.0
13
- date-released: 2026-11-23
12
+ version: 0.2.0
13
+ date-released: 2026-11-30
14
14
  license: GPL-2.0-or-later
15
15
  repository-code: "https://github.com/SimoSartori/bitvf"
16
16
  url: "https://simosartori.github.io/bitvf/"
@@ -1,6 +1,6 @@
1
1
  cmake_minimum_required(VERSION 3.16)
2
2
 
3
- project(bitvf VERSION 0.1.0 LANGUAGES C CXX)
3
+ project(bitvf VERSION 0.2.0 LANGUAGES C CXX)
4
4
 
5
5
  # PROJECT_IS_TOP_LEVEL needs CMake 3.21; this is the 3.16 equivalent, true
6
6
  # for a standalone build and false under add_subdirectory or FetchContent.
@@ -109,14 +109,14 @@ find_package(OpenMP COMPONENTS CXX)
109
109
  # ---------------------------------------------------------------------------
110
110
  # otswap
111
111
  #
112
- # An installed otswap 0.3.x is used when found, through
112
+ # An installed otswap 0.5.x is used when found, through
113
113
  # CMAKE_PREFIX_PATH or otswap_DIR; otherwise the pinned tag is fetched and
114
114
  # built from source, and brings meshsearch the same way. A parent project that already defines
115
115
  # otswap::otswap provides its own.
116
116
  # ---------------------------------------------------------------------------
117
117
 
118
- set(BITVF_OTSWAP_VERSION 0.3)
119
- set(BITVF_OTSWAP_TAG "v0.3.0" CACHE STRING
118
+ set(BITVF_OTSWAP_VERSION 0.5)
119
+ set(BITVF_OTSWAP_TAG "v0.5.0" CACHE STRING
120
120
  "otswap tag to fetch when no installed otswap is found")
121
121
  set(BITVF_OTSWAP_REPOSITORY "https://github.com/SimoSartori/otswap.git"
122
122
  CACHE STRING "otswap repository to fetch from; may be a local path")
@@ -241,7 +241,8 @@ if (BITVF_BUILD_TESTS)
241
241
  test_from_divergence test_from_field test_report test_runbox test_lightcone_entry
242
242
  test_lightcone_grid test_lightcone_faces test_lightcone_divergence test_lightcone_fill
243
243
  test_lightcone_smoothing test_lightcone_watershed test_lightcone_basins test_lightcone_centres
244
- test_lightcone_densities test_lightcone_pipeline test_lightcone_files)
244
+ test_lightcone_densities test_lightcone_pipeline test_lightcone_files
245
+ test_lightcone_cartesian test_box_periodic)
245
246
  add_executable(${test_name} tests/${test_name}.cpp)
246
247
  target_include_directories(${test_name} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src)
247
248
  target_link_libraries(${test_name} PRIVATE bitvf)
@@ -266,7 +267,7 @@ if (BITVF_BUILD_TESTS)
266
267
  # The box and lightcone examples, built from their sources against this tree
267
268
  # (each folder is also a project of its own) and run on the examples' data,
268
269
  # writing to the build directory.
269
- foreach (example box full_recons_box lightcone full_recons_lightcone)
270
+ foreach (example box full_recons_box lightcone full_recons_lightcone periodic_box lightcone_cartesian)
270
271
  add_executable(example_${example} examples/${example}/${example}.cpp)
271
272
  target_link_libraries(example_${example} PRIVATE bitvf)
272
273
  target_compile_definitions(example_${example} PRIVATE
@@ -291,6 +292,26 @@ if (BITVF_BUILD_TESTS)
291
292
  endif()
292
293
  add_test(NAME example_field COMMAND example_field)
293
294
  set_tests_properties(example_field PROPERTIES FIXTURES_REQUIRED example_full_recons_box)
295
+ foreach (example box lightcone full_recons_lightcone field periodic_box lightcone_cartesian)
296
+ set_tests_properties(example_${example} PROPERTIES FIXTURES_SETUP example_${example})
297
+ endforeach()
298
+
299
+ # The Cartesian example's search of the kept redshift-space reconstruction
300
+ # writes the files of the pipeline's redshift-space pass.
301
+ foreach (file voids divergence)
302
+ set(bitvf_example_dir ${CMAKE_CURRENT_BINARY_DIR}/examples/lightcone_cartesian)
303
+ foreach (suffix dat mps.dat)
304
+ if (file STREQUAL "voids" AND suffix STREQUAL "mps.dat")
305
+ continue()
306
+ endif()
307
+ add_test(NAME example_lightcone_cartesian_from_result_${file}_${suffix}
308
+ COMMAND ${CMAKE_COMMAND} -E compare_files
309
+ ${bitvf_example_dir}/${file}_lightcone_cartesian_from_result.${suffix}
310
+ ${bitvf_example_dir}/${file}_zspace_lightcone_cartesian.${suffix})
311
+ set_tests_properties(example_lightcone_cartesian_from_result_${file}_${suffix} PROPERTIES
312
+ FIXTURES_REQUIRED example_lightcone_cartesian)
313
+ endforeach()
314
+ endforeach()
294
315
 
295
316
  # The executables: one test per parameter file of tests/executable/cases,
296
317
  # run by run_case.cmake in a fresh directory of its own, which checks
@@ -326,16 +347,75 @@ if (BITVF_BUILD_TESTS)
326
347
  set_tests_properties(executable_${case_name} PROPERTIES FIXTURES_REQUIRED executable_reference)
327
348
  endforeach()
328
349
 
329
- # The commented parameter files of the documentation, run as shipped:
330
- # field.ini reads the divergence file box.ini writes.
331
- add_test(NAME executable_example_box COMMAND bitvf_app examples/executable/box.ini
332
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
333
- set_tests_properties(executable_example_box PROPERTIES FIXTURES_SETUP executable_example_box)
334
- add_test(NAME executable_example_lightcone COMMAND bitvf_app examples/executable/lightcone.ini
335
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
336
- add_test(NAME executable_example_field COMMAND bitvf_field_app examples/executable/field.ini
337
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
350
+ # Each parameter file of the examples writes the files of the matching run
351
+ # of the example, byte for byte. The field run reads the divergence file of
352
+ # the box run, and the last Cartesian run the mean displacements of the one
353
+ # before.
354
+ set(bitvf_example_runs box box_search lightcone lightcone_search field periodic_box_real_space periodic_box
355
+ lightcone_cartesian lightcone_cartesian_no_table lightcone_cartesian_displacements)
356
+ set(bitvf_example_files_box voids_box.dat voids_zspace_box.dat divergence_box.dat divergence_zspace_box.dat)
357
+ set(bitvf_example_files_lightcone
358
+ voids_lightcone.dat voids_zspace_lightcone.dat divergence_lightcone.dat divergence_lightcone.mps.dat
359
+ divergence_zspace_lightcone.dat divergence_zspace_lightcone.mps.dat)
360
+ set(bitvf_example_files_box_search voids_box.dat overdense_basins_box.dat galaxies_box.dat)
361
+ set(bitvf_example_files_lightcone_search voids_lightcone.dat overdense_basins_lightcone.dat galaxies_lightcone.dat)
362
+ set(bitvf_example_files_field voids_field.dat overdense_basins_field.dat)
363
+ set(bitvf_example_folder_box full_recons_box)
364
+ set(bitvf_example_folder_lightcone full_recons_lightcone)
365
+ set(bitvf_example_folder_box_search box)
366
+ set(bitvf_example_folder_lightcone_search lightcone)
367
+ set(bitvf_example_output_box_search box)
368
+ set(bitvf_example_folder_field field)
369
+ set(bitvf_example_output_lightcone_search lightcone)
370
+ set(bitvf_example_files_periodic_box_real_space
371
+ voids_periodic_box_real_space.dat divergence_periodic_box_real_space.dat)
372
+ set(bitvf_example_files_periodic_box
373
+ voids_zspace_periodic_box_rsd.dat divergence_zspace_periodic_box_rsd.dat
374
+ voids_periodic_box_rsd.dat divergence_periodic_box_rsd.dat)
375
+ set(bitvf_example_files_lightcone_cartesian
376
+ voids_zspace_lightcone_cartesian.dat divergence_zspace_lightcone_cartesian.dat
377
+ divergence_zspace_lightcone_cartesian.mps.dat voids_lightcone_cartesian.dat
378
+ divergence_lightcone_cartesian.dat divergence_lightcone_cartesian.mps.dat)
379
+ set(bitvf_example_files_lightcone_cartesian_no_table
380
+ voids_lightcone_cartesian_no_table.dat divergence_lightcone_cartesian_no_table.dat
381
+ divergence_lightcone_cartesian_no_table.mps.dat)
382
+ set(bitvf_example_files_lightcone_cartesian_displacements
383
+ voids_lightcone_cartesian_displacements.dat divergence_lightcone_cartesian_displacements.dat
384
+ divergence_lightcone_cartesian_displacements.mps.dat)
385
+ set(bitvf_example_folder_periodic_box_real_space periodic_box)
386
+ set(bitvf_example_folder_periodic_box periodic_box)
387
+ set(bitvf_example_folder_lightcone_cartesian lightcone_cartesian)
388
+ set(bitvf_example_folder_lightcone_cartesian_no_table lightcone_cartesian)
389
+ set(bitvf_example_folder_lightcone_cartesian_displacements lightcone_cartesian)
390
+ foreach (run ${bitvf_example_runs})
391
+ set(app bitvf_app)
392
+ if (run STREQUAL "field")
393
+ set(app bitvf_field_app)
394
+ endif()
395
+ add_test(NAME executable_example_${run} COMMAND ${app} examples/executable/${run}.ini
396
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
397
+ set_tests_properties(executable_example_${run} PROPERTIES FIXTURES_SETUP executable_example_${run})
398
+ string(REPLACE ";" "," run_files "${bitvf_example_files_${run}}")
399
+ add_test(NAME executable_example_${run}_equals_example
400
+ COMMAND ${CMAKE_COMMAND}
401
+ -DFIRST=${CMAKE_CURRENT_SOURCE_DIR}/examples/executable/output/${bitvf_example_output_${run}}
402
+ -DSECOND=${CMAKE_CURRENT_BINARY_DIR}/examples/${bitvf_example_folder_${run}}
403
+ -DFILES=${run_files}
404
+ -P ${CMAKE_CURRENT_SOURCE_DIR}/tests/executable/compare_files.cmake)
405
+ set_tests_properties(executable_example_${run}_equals_example PROPERTIES
406
+ FIXTURES_REQUIRED "executable_example_${run};example_${bitvf_example_folder_${run}}")
407
+ endforeach()
338
408
  set_tests_properties(executable_example_field PROPERTIES FIXTURES_REQUIRED executable_example_box)
409
+ # The box example's reconstruction file is the input of box_search.ini
410
+ add_test(NAME executable_example_box_search_input
411
+ COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/examples/box/displacement_box.dat
412
+ ${CMAKE_CURRENT_SOURCE_DIR}/examples/executable/output/displacement_box.dat)
413
+ set_tests_properties(executable_example_box_search_input PROPERTIES
414
+ FIXTURES_REQUIRED example_box FIXTURES_SETUP executable_example_box_search_input)
415
+ set_tests_properties(executable_example_box_search PROPERTIES
416
+ FIXTURES_REQUIRED executable_example_box_search_input)
417
+ set_tests_properties(executable_example_lightcone_cartesian_displacements PROPERTIES
418
+ FIXTURES_REQUIRED executable_example_lightcone_cartesian_no_table)
339
419
  endif()
340
420
  endif()
341
421
 
@@ -350,7 +430,7 @@ endif()
350
430
  # ---------------------------------------------------------------------------
351
431
 
352
432
  if (BITVF_BUILD_PYTHON)
353
- find_package(Python 3.9 REQUIRED COMPONENTS Interpreter Development.Module)
433
+ find_package(Python 3.10 REQUIRED COMPONENTS Interpreter Development.Module)
354
434
  execute_process(COMMAND "${Python_EXECUTABLE}" -m nanobind --cmake_dir
355
435
  OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE nanobind_ROOT)
356
436
  find_package(nanobind CONFIG REQUIRED)
@@ -369,8 +449,8 @@ endif()
369
449
  # ---------------------------------------------------------------------------
370
450
  # Install and export
371
451
  #
372
- # find_package(bitvf 0.1 CONFIG) then bitvf::bitvf. Its dependencies are
373
- # found again on the consumer's machine by bitvfConfig.cmake: otswap 0.3.x,
452
+ # find_package(bitvf 0.2 CONFIG) then bitvf::bitvf. Its dependencies are
453
+ # found again on the consumer's machine by bitvfConfig.cmake: otswap 0.5.x,
374
454
  # which brings meshsearch and cfitsio, and OpenMP when bitvf
375
455
  # was built with it.
376
456
  # ---------------------------------------------------------------------------
@@ -395,8 +475,8 @@ if (BITVF_INSTALL)
395
475
  ${CMAKE_CURRENT_BINARY_DIR}/bitvfConfig.cmake
396
476
  INSTALL_DESTINATION ${BITVF_CMAKE_DIR})
397
477
 
398
- # Before 1.0 a minor release may change the interface, so a request for 0.1
399
- # accepts any 0.1.x and nothing else.
478
+ # Before 1.0 a minor release may change the interface, so a request for 0.2
479
+ # accepts any 0.2.x and nothing else.
400
480
  write_basic_package_version_file(
401
481
  ${CMAKE_CURRENT_BINARY_DIR}/bitvfConfigVersion.cmake
402
482
  COMPATIBILITY SameMinorVersion)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bitvf
3
- Version: 0.1.0
3
+ Version: 0.2.0
4
4
  Summary: The Back-in-time Void Finder: voids from the optimal transport displacement field of a tracer catalogue
5
5
  Keywords: cosmology,cosmic voids,optimal transport,large-scale structure
6
6
  Author: Simone Sartori
@@ -24,7 +24,7 @@ Project-URL: Source, https://github.com/SimoSartori/bitvf
24
24
  Project-URL: Issues, https://github.com/SimoSartori/bitvf/issues
25
25
  Project-URL: Changelog, https://github.com/SimoSartori/bitvf/blob/main/CHANGELOG.md
26
26
  Requires-Python: >=3.10
27
- Requires-Dist: otswap<0.4,>=0.3
27
+ Requires-Dist: otswap<0.6,>=0.5
28
28
  Provides-Extra: test
29
29
  Requires-Dist: pytest; extra == "test"
30
30
  Description-Content-Type: text/markdown
@@ -47,9 +47,11 @@ densities. The method is described in
47
47
  BitVF works in two geometries. The **lightcone geometry** is that of a
48
48
  galaxy survey, or of a mock catalogue built like one: tracers in right
49
49
  ascension, declination and redshift, a random catalogue that samples the
50
- survey volume and its systematics, and a HEALPix mask of the observed sky.
51
- The **box geometry** is that of a simulation snapshot: tracers in Cartesian
52
- coordinates filling a rectangular volume.
50
+ survey volume and its systematics, and a HEALPix mask of the observed sky;
51
+ the tracers can also be given in Cartesian coordinates around the observer,
52
+ with or without a cosmology. The **box geometry** is that of a simulation
53
+ snapshot: tracers in Cartesian coordinates filling a rectangular volume,
54
+ periodic or not.
53
55
 
54
56
  This package, bitvf, implements BitVF. The reconstruction is done by
55
57
  [otswap](https://github.com/SimoSartori/otswap); bitvf runs it, can correct
@@ -72,7 +74,9 @@ pip install bitvf
72
74
  ```
73
75
 
74
76
  installs the Python package, with otswap. From a clone, `pip install .`
75
- builds the package from source, with the requirements below.
77
+ builds the package from source, with the requirements below. The C++
78
+ library and the `bitvf` and `bitvf-field` executables, which run from a
79
+ parameter file, are not in the pip package: build them from source (below).
76
80
 
77
81
  ## A first run
78
82
 
@@ -108,14 +112,15 @@ realizations. An analysis uses otswap's default of 30 realizations, and so
108
112
  [quickstart](https://simosartori.github.io/bitvf/quickstart.html) runs the
109
113
  same search in C++ and Python, and the
110
114
  [guides](https://simosartori.github.io/bitvf/lightcone/guide.html) explain
111
- the parameters, the box geometry and the executable.
115
+ the parameters, Cartesian catalogues, the box geometry, periodic boxes and
116
+ the executable.
112
117
 
113
118
  ## Build from source
114
119
 
115
120
  Needs CMake 3.16 or later, GCC or Clang (C, and C++17) and cfitsio; OpenMP
116
- when found, from the same runtime family otswap was built with. otswap 0.3.x
117
- is used when installed, and 0.3.0 is fetched from GitHub
118
- otherwise, with meshsearch.
121
+ when found, from the same runtime family otswap was built with. otswap 0.5.x
122
+ is used when installed, and 0.5.0 is fetched from GitHub
123
+ otherwise, with meshsearch 1.0.
119
124
 
120
125
  ```
121
126
  cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
@@ -127,7 +132,7 @@ This installs the library, its headers and CMake package, and the `bitvf` and
127
132
  `bitvf-field` executables.
128
133
 
129
134
  ```cmake
130
- find_package(bitvf 0.1 CONFIG REQUIRED)
135
+ find_package(bitvf 0.2 CONFIG REQUIRED)
131
136
  target_link_libraries(your_target PRIVATE bitvf::bitvf)
132
137
  ```
133
138
 
@@ -16,9 +16,11 @@ densities. The method is described in
16
16
  BitVF works in two geometries. The **lightcone geometry** is that of a
17
17
  galaxy survey, or of a mock catalogue built like one: tracers in right
18
18
  ascension, declination and redshift, a random catalogue that samples the
19
- survey volume and its systematics, and a HEALPix mask of the observed sky.
20
- The **box geometry** is that of a simulation snapshot: tracers in Cartesian
21
- coordinates filling a rectangular volume.
19
+ survey volume and its systematics, and a HEALPix mask of the observed sky;
20
+ the tracers can also be given in Cartesian coordinates around the observer,
21
+ with or without a cosmology. The **box geometry** is that of a simulation
22
+ snapshot: tracers in Cartesian coordinates filling a rectangular volume,
23
+ periodic or not.
22
24
 
23
25
  This package, bitvf, implements BitVF. The reconstruction is done by
24
26
  [otswap](https://github.com/SimoSartori/otswap); bitvf runs it, can correct
@@ -41,7 +43,9 @@ pip install bitvf
41
43
  ```
42
44
 
43
45
  installs the Python package, with otswap. From a clone, `pip install .`
44
- builds the package from source, with the requirements below.
46
+ builds the package from source, with the requirements below. The C++
47
+ library and the `bitvf` and `bitvf-field` executables, which run from a
48
+ parameter file, are not in the pip package: build them from source (below).
45
49
 
46
50
  ## A first run
47
51
 
@@ -77,14 +81,15 @@ realizations. An analysis uses otswap's default of 30 realizations, and so
77
81
  [quickstart](https://simosartori.github.io/bitvf/quickstart.html) runs the
78
82
  same search in C++ and Python, and the
79
83
  [guides](https://simosartori.github.io/bitvf/lightcone/guide.html) explain
80
- the parameters, the box geometry and the executable.
84
+ the parameters, Cartesian catalogues, the box geometry, periodic boxes and
85
+ the executable.
81
86
 
82
87
  ## Build from source
83
88
 
84
89
  Needs CMake 3.16 or later, GCC or Clang (C, and C++17) and cfitsio; OpenMP
85
- when found, from the same runtime family otswap was built with. otswap 0.3.x
86
- is used when installed, and 0.3.0 is fetched from GitHub
87
- otherwise, with meshsearch.
90
+ when found, from the same runtime family otswap was built with. otswap 0.5.x
91
+ is used when installed, and 0.5.0 is fetched from GitHub
92
+ otherwise, with meshsearch 1.0.
88
93
 
89
94
  ```
90
95
  cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
@@ -96,7 +101,7 @@ This installs the library, its headers and CMake package, and the `bitvf` and
96
101
  `bitvf-field` executables.
97
102
 
98
103
  ```cmake
99
- find_package(bitvf 0.1 CONFIG REQUIRED)
104
+ find_package(bitvf 0.2 CONFIG REQUIRED)
100
105
  target_link_libraries(your_target PRIVATE bitvf::bitvf)
101
106
  ```
102
107