ovftoolkit 0.3.0__tar.gz → 0.4.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 (198) hide show
  1. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/.github/workflows/ci.yml +1 -1
  2. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/.github/workflows/release.yml +3 -6
  3. ovftoolkit-0.4.0/CHANGELOG.md +19 -0
  4. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/CMakeLists.txt +7 -17
  5. ovftoolkit-0.4.0/LICENSES/cli11.txt +27 -0
  6. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/OVFParser/OVFDictionary.h +2 -1
  7. ovftoolkit-0.4.0/OVFParser/OVFEndian.h +46 -0
  8. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/OVFParser/OVFParser.h +14 -0
  9. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/OVFParser/OVFReader.cpp +49 -18
  10. ovftoolkit-0.4.0/OVFParser/OVFWriter.cpp +748 -0
  11. ovftoolkit-0.4.0/OVFParser/OVFWriter.h +248 -0
  12. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/OVFParser/VField.cpp +51 -58
  13. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/OVFParser/VField.h +90 -29
  14. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/PKG-INFO +103 -16
  15. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/README.md +93 -15
  16. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/THIRD_PARTY_NOTICES.md +3 -1
  17. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/bindings/python/CMakeLists.txt +17 -0
  18. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/bindings/python/bindings.cpp +48 -0
  19. ovftoolkit-0.4.0/bindings/python/ovftoolkit/__init__.py +15 -0
  20. ovftoolkit-0.4.0/bindings/python/ovftoolkit/__init__.pyi +11 -0
  21. ovftoolkit-0.4.0/bindings/python/ovftoolkit/arrays.py +46 -0
  22. ovftoolkit-0.4.0/bindings/python/ovftoolkit/conversion.py +133 -0
  23. ovftoolkit-0.4.0/bindings/python/ovftoolkit/visualization.py +243 -0
  24. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/bindings/python/test_binding.py +32 -0
  25. ovftoolkit-0.4.0/bindings/python/test_conversion.py +61 -0
  26. ovftoolkit-0.4.0/bindings/python/test_plot.py +147 -0
  27. ovftoolkit-0.4.0/docs/help/interactive/magnetisation.html +7 -0
  28. ovftoolkit-0.4.0/docs/help/reference/index.md +41 -0
  29. ovftoolkit-0.4.0/docs/help/reference/python.md +164 -0
  30. ovftoolkit-0.4.0/docs/images/magnetisation-streamlines.png +0 -0
  31. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/pyproject.toml +7 -1
  32. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg.json +1 -2
  33. ovftoolkit-0.3.0/OVFParser/OVFWriter.cpp +0 -281
  34. ovftoolkit-0.3.0/OVFParser/OVFWriter.h +0 -111
  35. ovftoolkit-0.3.0/bindings/python/ovftoolkit/__init__.py +0 -6
  36. ovftoolkit-0.3.0/bindings/python/ovftoolkit/__init__.pyi +0 -6
  37. ovftoolkit-0.3.0/bindings/python/ovftoolkit/arrays.py +0 -25
  38. ovftoolkit-0.3.0/docs/help/reference/index.md +0 -12
  39. ovftoolkit-0.3.0/docs/help/reference/python.md +0 -87
  40. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/.gitattributes +0 -0
  41. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/.github/workflows/docs.yml +0 -0
  42. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/.gitignore +0 -0
  43. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/LICENSE +0 -0
  44. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/LICENSES/mdspan.txt +0 -0
  45. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/LICENSES/nanobind.txt +0 -0
  46. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/LICENSING.md +0 -0
  47. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/OVFParser/OVFGrammar.cpp +0 -0
  48. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/OVFParser/OVFHeader.cpp +0 -0
  49. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/OVFParser/OVFHeader.h +0 -0
  50. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/OVFToolkitConfig.h.in +0 -0
  51. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/bindings/CMakeLists.txt +0 -0
  52. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/bindings/python/ovftoolkit/py.typed +0 -0
  53. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/bindings/python/ovftoolkit/spectrum.py +0 -0
  54. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/bindings/python/test_arrays.py +0 -0
  55. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/bindings/python/test_spectrum.py +0 -0
  56. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/docs/CMakeLists.txt +0 -0
  57. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/docs/Doxyfile +0 -0
  58. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/docs/README.md +0 -0
  59. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/docs/cpp-mainpage.md +0 -0
  60. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/docs/help/examples/index.md +0 -0
  61. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/docs/help/index.md +0 -0
  62. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/docs/images/ovftoolkit-python-example.png +0 -0
  63. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/docs/overrides/main.html +0 -0
  64. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/docs/prepare_help.py +0 -0
  65. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/docs/requirements.txt +0 -0
  66. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/Imported geometry - figure eight/FigureEightGeometry.ipynb +0 -0
  67. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/Imported geometry - figure eight/figure-eight.mx3.in +0 -0
  68. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/Imported geometry - pig/PigGeometry.ipynb +0 -0
  69. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/Imported geometry - pig/model/README.md +0 -0
  70. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/Imported geometry - pig/model/origins-of-the-pig.obj +0 -0
  71. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/Imported geometry - pig/model/upstream-info.txt +0 -0
  72. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/Imported geometry - pig/pig.mx3.in +0 -0
  73. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/Process spectrum/OVFToolkitWorkFlow.ipynb +0 -0
  74. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/Process spectrum/vortex-dynamics.mx3.in +0 -0
  75. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/YIG strip dispersion/YIGStripDispersion.ipynb +0 -0
  76. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/YIG strip dispersion/yig-strip.mx3.in +0 -0
  77. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/create_ovf.py +0 -0
  78. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/examples/plot_ovf.py +0 -0
  79. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/.clang-tidy +0 -0
  80. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/.github/dependabot.yml +0 -0
  81. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/.github/workflows/cmake-windows.yml +0 -0
  82. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/.github/workflows/cmake.yml +0 -0
  83. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/.github/workflows/single-header.yml +0 -0
  84. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/.gitignore +0 -0
  85. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/CMakeLists.txt +0 -0
  86. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/LICENSE +0 -0
  87. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/LICENSE_FILE_HEADER +0 -0
  88. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/README.md +0 -0
  89. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/CMakeLists.txt +0 -0
  90. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/copy/CMakeLists.txt +0 -0
  91. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/copy/copy_layout_stride.cpp +0 -0
  92. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/fill.hpp +0 -0
  93. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/matvec/CMakeLists.txt +0 -0
  94. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/matvec/cuda/CMakeLists.txt +0 -0
  95. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/matvec/cuda/matvec_cuda.cu +0 -0
  96. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/matvec/openmp/CMakeLists.txt +0 -0
  97. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/matvec/openmp/matvec_openmp.cpp +0 -0
  98. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/stencil/CMakeLists.txt +0 -0
  99. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/stencil/cuda/CMakeLists.txt +0 -0
  100. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/stencil/cuda/stencil_3d_cuda.cu +0 -0
  101. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/stencil/openmp/CMakeLists.txt +0 -0
  102. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/stencil/openmp/stencil_3d_openmp.cpp +0 -0
  103. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/stencil/stencil_3d.cpp +0 -0
  104. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/sum/CMakeLists.txt +0 -0
  105. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/sum/cuda/CMakeLists.txt +0 -0
  106. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/sum/cuda/sum_3d_cuda.cu +0 -0
  107. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/sum/openmp/CMakeLists.txt +0 -0
  108. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/sum/openmp/sum_3d_openmp.cpp +0 -0
  109. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/sum/sum_3d_common.hpp +0 -0
  110. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/sum/sum_3d_left.cpp +0 -0
  111. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/sum/sum_3d_right.cpp +0 -0
  112. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/sum/sum_submdspan_right.cpp +0 -0
  113. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/tiny_matrix_add/CMakeLists.txt +0 -0
  114. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/tiny_matrix_add/openmp/CMakeLists.txt +0 -0
  115. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/tiny_matrix_add/openmp/tiny_matrix_add_openmp.cpp +0 -0
  116. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/benchmarks/tiny_matrix_add/tiny_matrix_add.cpp +0 -0
  117. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/cmake/mdspanConfig.cmake.in +0 -0
  118. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/cmake/metabench.cmake +0 -0
  119. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/comp_bench/CMakeLists.txt +0 -0
  120. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/comp_bench/cbench_submdspan.cpp.erb +0 -0
  121. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/CMakeLists.txt +0 -0
  122. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_common.hpp +0 -0
  123. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_compressed_pair_layout.cpp +0 -0
  124. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_constexpr_dereference.cpp +0 -0
  125. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_constexpr_layouts.cpp +0 -0
  126. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_constexpr_submdspan.cpp +0 -0
  127. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_constructor_sfinae.cpp +0 -0
  128. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_extents_ctors.cpp +0 -0
  129. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_extents_type_check.cpp +0 -0
  130. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_layout_convertible.cpp +0 -0
  131. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_layout_type_check.cpp +0 -0
  132. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_mdarray_type_check.cpp +0 -0
  133. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_mdspan_convertible.cpp +0 -0
  134. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_namespace_std.cpp +0 -0
  135. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_no_unique_address.cpp +0 -0
  136. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_standard_layout.cpp +0 -0
  137. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/compilation_tests/ctest_trivially_copyable.cpp +0 -0
  138. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/examples/CMakeLists.txt +0 -0
  139. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/examples/aligned_accessor/CMakeLists.txt +0 -0
  140. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/examples/aligned_accessor/aligned_accessor.cpp +0 -0
  141. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/examples/dot_product/CMakeLists.txt +0 -0
  142. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/examples/dot_product/dot_product.cpp +0 -0
  143. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/examples/godbolt_starter/CMakeLists.txt +0 -0
  144. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/examples/godbolt_starter/godbolt_starter.cpp +0 -0
  145. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/examples/restrict_accessor/CMakeLists.txt +0 -0
  146. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/examples/restrict_accessor/restrict_accessor.cpp +0 -0
  147. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/examples/tiled_layout/CMakeLists.txt +0 -0
  148. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/examples/tiled_layout/simple_tiled_layout.cpp +0 -0
  149. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/compressed_pair.hpp +0 -0
  150. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/config.hpp +0 -0
  151. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/default_accessor.hpp +0 -0
  152. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/dynamic_extent.hpp +0 -0
  153. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/extents.hpp +0 -0
  154. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/full_extent_t.hpp +0 -0
  155. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/layout_left.hpp +0 -0
  156. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/layout_right.hpp +0 -0
  157. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/layout_stride.hpp +0 -0
  158. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/macros.hpp +0 -0
  159. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/mdspan.hpp +0 -0
  160. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/no_unique_address.hpp +0 -0
  161. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/trait_backports.hpp +0 -0
  162. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/type_list.hpp +0 -0
  163. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p0009_bits/utility.hpp +0 -0
  164. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p1684_bits/mdarray.hpp +0 -0
  165. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p2389_bits/dims.hpp +0 -0
  166. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p2630_bits/constant_wrapper.hpp +0 -0
  167. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p2630_bits/integral_constant_like.hpp +0 -0
  168. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p2630_bits/strided_slice.hpp +0 -0
  169. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p2630_bits/submdspan.hpp +0 -0
  170. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p2630_bits/submdspan_canonicalize_slices.hpp +0 -0
  171. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p2630_bits/submdspan_extents.hpp +0 -0
  172. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p2630_bits/submdspan_mapping.hpp +0 -0
  173. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p2642_bits/layout_padded.hpp +0 -0
  174. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/__p2642_bits/layout_padded_fwd.hpp +0 -0
  175. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/mdarray +0 -0
  176. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/experimental/mdspan +0 -0
  177. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/mdspan/mdarray.hpp +0 -0
  178. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/include/mdspan/mdspan.hpp +0 -0
  179. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/make_single_header.py +0 -0
  180. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/scripts/snl/config-all +0 -0
  181. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/scripts/snl/config-one +0 -0
  182. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/scripts/snl/config-one-cuda +0 -0
  183. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/scripts/snl/gtest-clang-patch +0 -0
  184. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/scripts/snl/gtest-hip-patch +0 -0
  185. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/externals/mdspan/scripts/snl/gtest-nvhpc-patch +0 -0
  186. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/mkdocs.yml +0 -0
  187. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-configuration.json +0 -0
  188. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-overlays/fftw3/aligned_malloc.patch +0 -0
  189. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-overlays/fftw3/fftw3_arch_fix.patch +0 -0
  190. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-overlays/fftw3/fix-avx2-fma-flags.patch +0 -0
  191. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-overlays/fftw3/fix-openmp.patch +0 -0
  192. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-overlays/fftw3/install-subtargets.patch +0 -0
  193. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-overlays/fftw3/neon.patch +0 -0
  194. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-overlays/fftw3/portfile.cmake +0 -0
  195. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-overlays/fftw3/propagate-fftw-dll.patch +0 -0
  196. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-overlays/fftw3/vcpkg.json +0 -0
  197. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-triplets/x64-windows-release.cmake +0 -0
  198. {ovftoolkit-0.3.0 → ovftoolkit-0.4.0}/vcpkg-triplets/x64-windows-static-release.cmake +0 -0
@@ -32,7 +32,7 @@ jobs:
32
32
  run: |
33
33
  apt-get update
34
34
  DEBIAN_FRONTEND=noninteractive apt-get install --yes \
35
- gcc-14 g++-14 golang-go libboost-program-options-dev libfftw3-dev \
35
+ gcc-14 g++-14 golang-go libcli11-dev libfftw3-dev \
36
36
  libhdf5-dev libtbb-dev libvtk9-dev ninja-build \
37
37
  python3-dev python3-pip
38
38
  python3 -m pip install --break-system-packages \
@@ -229,11 +229,6 @@ jobs:
229
229
  CIBW_CONFIG_SETTINGS: >-
230
230
  wheel.py-api=cp312
231
231
  cmake.define.OVFTOOLKIT_PYTHON_STABLE_ABI=ON
232
- CIBW_BEFORE_ALL_LINUX: >-
233
- if command -v dnf >/dev/null 2>&1;
234
- then dnf install -y boost-devel;
235
- else yum install -y boost-devel;
236
- fi
237
232
  run: python -m cibuildwheel --output-dir wheelhouse
238
233
  - uses: actions/upload-artifact@v6
239
234
  with:
@@ -311,7 +306,9 @@ jobs:
311
306
  steps:
312
307
  - uses: actions/download-artifact@v6
313
308
  with:
314
- pattern: release-*
309
+ # The sdist is published to PyPI but is redundant on GitHub beside
310
+ # the standalone, submodule-complete source bundle below.
311
+ pattern: release-wheel-*
315
312
  path: release-assets
316
313
  merge-multiple: true
317
314
  - uses: actions/download-artifact@v6
@@ -0,0 +1,19 @@
1
+ # Changelog
2
+
3
+ ## 0.4.0
4
+
5
+ - Add one-shot C++ stream reading and writing, Python OVF bytes serialization,
6
+ and `VField` pickling.
7
+ - Add atomic mapping-based header construction and updates, plus coordinate
8
+ and NumPy helpers.
9
+ - Add optional VTK/HDF5 conversion and interactive Plotly magnetisation
10
+ slices, including streamlines, arrows, automatic units, and themes.
11
+ `to_pyvista()` returns a PyVista dataset for further processing.
12
+ - Refactor the OVF writer, remove Boost.Endian, and replace
13
+ Boost.Program_options with CLI11.
14
+ - Update the CUDA 13 Mumax3 source fallback to the `dev` branch.
15
+
16
+ ### C++ migration
17
+
18
+ `OVFStreamWriter::create` now accepts `VField::ScalarType::Float32` or
19
+ `VField::ScalarType::Float64` in place of the scalar size in bytes.
@@ -1,7 +1,7 @@
1
1
  cmake_minimum_required(VERSION 3.30)
2
2
 
3
3
  #versioning
4
- project(OVFToolkit VERSION 0.3.0 DESCRIPTION "Vector field files interface library" LANGUAGES CXX C)
4
+ project(OVFToolkit VERSION 0.4.0 DESCRIPTION "Vector field files interface library" LANGUAGES CXX C)
5
5
 
6
6
  #TODO: add some more checks
7
7
  # C++ standard
@@ -106,27 +106,20 @@ endif()
106
106
 
107
107
  # also need some parallelization libs
108
108
  find_package(Threads REQUIRED)
109
- # The parser only needs Boost headers. Command-line tools additionally use
110
- # program_options, which should not be a build dependency of Python wheels.
111
- # Use CMake's FindBoost module so header-only distro packages remain usable;
112
- # manylinux's boost-devel does not ship BoostConfig.cmake.
113
- cmake_policy(PUSH)
114
- cmake_policy(SET CMP0167 OLD)
115
- find_package(Boost 1.58.0 REQUIRED)
109
+ # Only the command-line tools use CLI11.
116
110
  set(OVFTOOLKIT_BUILD_TOOLS_ENABLED OFF)
117
111
  if(NOT OVFTOOLKIT_BUILD_TOOLS STREQUAL "OFF")
118
- find_package(Boost 1.58.0 COMPONENTS program_options QUIET)
119
- if(Boost_PROGRAM_OPTIONS_FOUND)
112
+ find_package(CLI11 CONFIG QUIET)
113
+ if(CLI11_FOUND)
120
114
  set(OVFTOOLKIT_BUILD_TOOLS_ENABLED ON)
121
115
  elseif(OVFTOOLKIT_BUILD_TOOLS STREQUAL "ON")
122
116
  message(FATAL_ERROR
123
- "OVFTOOLKIT_BUILD_TOOLS=ON requires Boost.Program_options")
117
+ "OVFTOOLKIT_BUILD_TOOLS=ON requires CLI11")
124
118
  else()
125
119
  message(STATUS
126
- "Command-line tools disabled: Boost.Program_options was not found")
120
+ "Command-line tools disabled: CLI11 was not found")
127
121
  endif()
128
122
  endif()
129
- cmake_policy(POP)
130
123
  if(OVFTOOLKIT_BUILD_MUMAX_RUNNER STREQUAL "ON" AND
131
124
  NOT OVFTOOLKIT_BUILD_TOOLS_ENABLED)
132
125
  message(FATAL_ERROR
@@ -251,7 +244,7 @@ if(OVFTOOLKIT_USE_CUFFT STREQUAL "ON" AND NOT OVFTOOLKIT_CUFFT_FOUND)
251
244
  endif()
252
245
  endif()
253
246
  set(BUILD_FFUTIL OFF)
254
- if((FFTW_FLOAT_LIB_FOUND OR OVFTOOLKIT_CUFFT_FOUND) AND Boost_PROGRAM_OPTIONS_FOUND)
247
+ if((FFTW_FLOAT_LIB_FOUND OR OVFTOOLKIT_CUFFT_FOUND) AND OVFTOOLKIT_BUILD_TOOLS_ENABLED)
255
248
  set(BUILD_FFUTIL ON)
256
249
  endif()
257
250
  IF(BUILD_FFUTIL)
@@ -301,9 +294,6 @@ target_include_directories(ovfparser PUBLIC
301
294
  $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/OVFParser>
302
295
  $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/OVFParser>
303
296
  $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}>
304
- PRIVATE
305
- #boost for building internals
306
- "${Boost_INCLUDE_DIRS}"
307
297
  )
308
298
 
309
299
  if(NOT OVFTOOLKIT_HAS_STD_MDSPAN)
@@ -0,0 +1,27 @@
1
+ CLI11 2.7.2 Copyright (c) 2017-2026 University of Cincinnati, developed by Henry
2
+ Schreiner under NSF AWARD 1414736. All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms of CLI11, with or without
5
+ modification, are permitted provided that the following conditions are met:
6
+
7
+ 1. Redistributions of source code must retain the above copyright notice, this
8
+ list of conditions and the following disclaimer.
9
+
10
+ 2. Redistributions in binary form must reproduce the above copyright notice,
11
+ this list of conditions and the following disclaimer in the documentation
12
+ and/or other materials provided with the distribution.
13
+
14
+ 3. Neither the name of the copyright holder nor the names of its contributors
15
+ may be used to endorse or promote products derived from this software without
16
+ specific prior written permission.
17
+
18
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
22
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -126,7 +126,7 @@ namespace VField {
126
126
 
127
127
  } // namespace VField
128
128
 
129
- /** @brief Implementation helpers used to derive the public OVF dictionary. */
129
+ /** @cond */
130
130
  namespace DictionaryHelpers{
131
131
  /** OVF parameter shorthand used by compile-time helpers. */
132
132
  using Parameter = VField::OVFParameter;
@@ -412,6 +412,7 @@ namespace DictionaryHelpers{
412
412
  return result;
413
413
  }
414
414
  }
415
+ /** @endcond */
415
416
 
416
417
  namespace VField {
417
418
 
@@ -0,0 +1,46 @@
1
+ #pragma once
2
+
3
+ #include "OVFHeader.h"
4
+ #include <algorithm>
5
+ #include <array>
6
+ #include <bit>
7
+ #include <cstddef>
8
+ #include <cstdint>
9
+ #include <type_traits>
10
+
11
+ namespace VField {
12
+ template<typename T>
13
+ struct UintAnalogue {};
14
+ template<typename T>
15
+ requires(sizeof(T) == sizeof(std::uint16_t))
16
+ struct UintAnalogue<T> {using type = std::uint16_t;};
17
+ template<typename T>
18
+ requires(sizeof(T) == sizeof(std::uint32_t))
19
+ struct UintAnalogue<T> {using type = std::uint32_t;};
20
+ template<typename T>
21
+ requires(sizeof(T) == sizeof(std::uint64_t))
22
+ struct UintAnalogue<T> {using type = std::uint64_t;};
23
+ template<typename T>
24
+ using UintAnalogue_t = typename UintAnalogue<T>::type;
25
+
26
+ template<typename T>
27
+ requires std::is_trivially_copyable_v<T>
28
+ constexpr T byteSwap(T val)
29
+ {
30
+ if constexpr(sizeof(T) == 1)
31
+ return val;
32
+ else if constexpr(requires {typename UintAnalogue_t<T>; })
33
+ return std::bit_cast<T>(std::byteswap(std::bit_cast<UintAnalogue_t<T>>(val)) );
34
+ else
35
+ {
36
+ auto bytes = std::bit_cast<
37
+ std::array<std::byte, sizeof(T)>>(val);
38
+ std::ranges::reverse(bytes);
39
+
40
+ return std::bit_cast<T>(bytes);
41
+ }
42
+ }
43
+
44
+ inline constexpr auto requiresBSwap(OVFVersion ver)
45
+ { return std::endian::native != (ver == OVFVersion::OVF1? std::endian::big : std::endian::little); }
46
+ }
@@ -56,6 +56,7 @@ namespace VField {
56
56
 
57
57
  [[nodiscard]] ReadResult<std::reference_wrapper<VField>>
58
58
  fetch(std::size_t index);
59
+ [[nodiscard]] ReadResult<void> parse(std::istream& input, DataLoading loading);
59
60
  void logMessage(const std::string& message);
60
61
  [[nodiscard]] ReadError error(ReadErrorCode code,
61
62
  std::string message,
@@ -85,6 +86,19 @@ namespace VField {
85
86
  read(const std::filesystem::path& path,
86
87
  DataLoading loading = DataLoading::Lazy);
87
88
 
89
+ /** @brief Parse all remaining bytes from a stream into a new handle.
90
+ * @param input Input stream positioned at the start of an OVF file.
91
+ * @return Parsed file with every segment eagerly loaded. The stream
92
+ * need not support seeking.
93
+ */
94
+ [[nodiscard]] static ReadResult<VFieldFile> open(std::istream& input);
95
+ /** @brief Replace this handle by eagerly parsing the remaining stream.
96
+ * @param input Input stream positioned at the start of an OVF file.
97
+ * @return Success or a diagnostic read error. The stream need not
98
+ * support seeking.
99
+ */
100
+ [[nodiscard]] ReadResult<void> read(std::istream& input);
101
+
88
102
  /** @return Path supplied to the most recent read operation. */
89
103
  [[nodiscard]] const std::filesystem::path& path() const noexcept;
90
104
  /** @return Number of parsed segments. */
@@ -9,10 +9,11 @@
9
9
  #include<algorithm>
10
10
  #include<optional>
11
11
  #include<format>
12
+ #include<sstream>
13
+ #include<iterator>
12
14
  #include"OVFParser.h"
13
15
  #include"OVFDictionary.h"
14
- //boost endian conversion library setup
15
- #include<boost/endian/conversion.hpp>
16
+ #include "OVFEndian.h"
16
17
  #include<cstdint>
17
18
 
18
19
  namespace VField{
@@ -210,6 +211,35 @@ namespace VField{
210
211
  //of diagnostics. Lazy-access diagnostics may be appended afterwards.
211
212
  data_->log.clear();
212
213
  path_ = path;
214
+ std::ifstream file(path_, std::ios_base::binary);
215
+ if(!file.good())
216
+ return std::unexpected(error(ReadErrorCode::OpenFailed, "Unable to open source file"));
217
+ return parse(file, loading);
218
+ }
219
+
220
+ ReadResult<VFieldFile> VFieldFile::open(std::istream& input)
221
+ {
222
+ VFieldFile file;
223
+ if(auto result = file.read(input); !result)
224
+ return std::unexpected(std::move(result.error()));
225
+ return file;
226
+ }
227
+
228
+ ReadResult<void> VFieldFile::read(std::istream& input)
229
+ {
230
+ path_.clear();
231
+ data_->log.clear();
232
+ std::string bytes{std::istreambuf_iterator<char>{input}, std::istreambuf_iterator<char>{}};
233
+ if(input.bad())
234
+ return std::unexpected(error(ReadErrorCode::StreamFailure, "Failed to read input stream"));
235
+ std::istringstream buffer(std::move(bytes), std::ios_base::in | std::ios_base::binary);
236
+ auto result = parse(buffer, DataLoading::Eager);
237
+ for(auto& entry : data_->prefetch) entry = {};
238
+ return result;
239
+ }
240
+
241
+ ReadResult<void> VFieldFile::parse(std::istream& file, DataLoading loading)
242
+ {
213
243
 
214
244
  constexpr std::array<OVFParameter, 5> TopLevelTags{
215
245
  OVFParameter::Open,
@@ -219,7 +249,6 @@ namespace VField{
219
249
  OVFParameter::Comment
220
250
  };
221
251
  //first try to open the file
222
- std::ifstream file(path_, std::ios_base::binary);//TODO: check if opening it as binary from the start messes with getline
223
252
  if(!file.good())
224
253
  {
225
254
  logMessage("VFieldFile::read: Unable to open source file");
@@ -390,6 +419,13 @@ namespace VField{
390
419
  data_->prefetch.back().second,
391
420
  loading == DataLoading::Lazy
392
421
  );
422
+ if(loading == DataLoading::Eager)
423
+ {
424
+ file.clear();
425
+ file.seekg(pos);
426
+ std::size_t count = data_->prefetch.back().second;
427
+ readData(file, data_->fields.back(), std::nullopt, count, true);
428
+ }
393
429
  if(log != "")
394
430
  logMessage(std::format(
395
431
  "VFieldFile::read: Errors reading data at line {}:\n{}", line_cnt, log));
@@ -765,10 +801,8 @@ namespace VField{
765
801
  float test{};
766
802
  file.read( reinterpret_cast<std::istream::char_type *>(&test),
767
803
  sizeof(float)/sizeof(std::istream::char_type) );
768
- if( (version == OVFVersion::OVF1 && boost::endian::order::native == boost::endian::order::little) ||
769
- (version == OVFVersion::OVF2 && boost::endian::order::native == boost::endian::order::big) )
770
- boost::endian::endian_reverse_inplace(*reinterpret_cast<std::uint32_t*>(&test));
771
- //WARNING: causes warning in gcc :'(
804
+ if(requiresBSwap(version))
805
+ test = byteSwap(test);
772
806
  if(test != TestVal<float>)
773
807
  {
774
808
  if(log!="") log += "\n";
@@ -785,10 +819,9 @@ namespace VField{
785
819
  log+= "readData: Unexpected end of data";
786
820
  return log;
787
821
  }
788
- if( (version == OVFVersion::OVF1 && boost::endian::order::native == boost::endian::order::little) ||
789
- (version == OVFVersion::OVF2 && boost::endian::order::native == boost::endian::order::big) )
790
- for(std::size_t i =0; i < importDepth; i++)
791
- boost::endian::endian_reverse_inplace(*reinterpret_cast<std::uint32_t*>(buffer.get() + i));
822
+ if(requiresBSwap(version))
823
+ for(std::size_t i = 0; i < importDepth; ++i)
824
+ buffer[i] = byteSwap(buffer[i]);
792
825
  out.adoptData(std::move(buffer), importDepth);
793
826
  return log;
794
827
  }
@@ -797,9 +830,8 @@ namespace VField{
797
830
  double test{};
798
831
  file.read( reinterpret_cast<std::istream::char_type *>(&test),
799
832
  sizeof(double)/sizeof(std::istream::char_type) );
800
- if( (version == OVFVersion::OVF1 && boost::endian::order::native == boost::endian::order::little) ||
801
- (version == OVFVersion::OVF2 && boost::endian::order::native == boost::endian::order::big) )
802
- boost::endian::endian_reverse_inplace(*reinterpret_cast<std::uint64_t*>(&test));
833
+ if(requiresBSwap(version))
834
+ test = byteSwap(test);
803
835
  if(test != TestVal<double>)
804
836
  {
805
837
  if(log!="") log += "\n";
@@ -816,10 +848,9 @@ namespace VField{
816
848
  log+= "readData: Unexpected end of data";
817
849
  return log;
818
850
  }
819
- if( (version == OVFVersion::OVF1 && boost::endian::order::native == boost::endian::order::little) ||
820
- (version == OVFVersion::OVF2 && boost::endian::order::native == boost::endian::order::big) )
821
- for(std::size_t i =0; i < importDepth; i++)
822
- boost::endian::endian_reverse_inplace(*reinterpret_cast<std::uint64_t*>(buffer.get() + i));
851
+ if(requiresBSwap(version))
852
+ for(std::size_t i = 0; i < importDepth; ++i)
853
+ buffer[i] = byteSwap(buffer[i]);
823
854
  out.adoptData(std::move(buffer), importDepth);
824
855
  return log;
825
856
  }