pulserver 0.4.22__tar.gz → 0.4.23__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 (480) hide show
  1. {pulserver-0.4.22 → pulserver-0.4.23}/PKG-INFO +1 -1
  2. {pulserver-0.4.22 → pulserver-0.4.23}/docs/developer-guide/internals/ir-cache.md +21 -11
  3. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/include/pulseg/pulseg_types.h +5 -3
  4. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/pulseg_internal.h +25 -13
  5. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/structure/pulseg_waves.c +43 -77
  6. {pulserver-0.4.22 → pulserver-0.4.23}/src/cpp/ir/waves.cpp +14 -6
  7. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/_evaluation.py +5 -1
  8. pulserver-0.4.23/tests/_synthetic.py +50 -0
  9. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_ir.py +19 -8
  10. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_ir_playout.py +11 -8
  11. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_ir_waves.py +91 -4
  12. pulserver-0.4.22/tests/_synthetic.py +0 -25
  13. {pulserver-0.4.22 → pulserver-0.4.23}/.claude/skills/build-and-test/SKILL.md +0 -0
  14. {pulserver-0.4.22 → pulserver-0.4.23}/.claude/skills/write-documentation/SKILL.md +0 -0
  15. {pulserver-0.4.22 → pulserver-0.4.23}/.dockerignore +0 -0
  16. {pulserver-0.4.22 → pulserver-0.4.23}/.gitattributes +0 -0
  17. {pulserver-0.4.22 → pulserver-0.4.23}/.github/DISCUSSION_TEMPLATE/ideas.yml +0 -0
  18. {pulserver-0.4.22 → pulserver-0.4.23}/.github/DISCUSSION_TEMPLATE/q-a.yml +0 -0
  19. {pulserver-0.4.22 → pulserver-0.4.23}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  20. {pulserver-0.4.22 → pulserver-0.4.23}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  21. {pulserver-0.4.22 → pulserver-0.4.23}/.github/ISSUE_TEMPLATE/documentation.yml +0 -0
  22. {pulserver-0.4.22 → pulserver-0.4.23}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  23. {pulserver-0.4.22 → pulserver-0.4.23}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  24. {pulserver-0.4.22 → pulserver-0.4.23}/.github/dependabot.yml +0 -0
  25. {pulserver-0.4.22 → pulserver-0.4.23}/.github/workflows/codeql.yml +0 -0
  26. {pulserver-0.4.22 → pulserver-0.4.23}/.github/workflows/console.yml +0 -0
  27. {pulserver-0.4.22 → pulserver-0.4.23}/.github/workflows/docs.yml +0 -0
  28. {pulserver-0.4.22 → pulserver-0.4.23}/.github/workflows/fields.yml +0 -0
  29. {pulserver-0.4.22 → pulserver-0.4.23}/.github/workflows/image.yml +0 -0
  30. {pulserver-0.4.22 → pulserver-0.4.23}/.github/workflows/style.yml +0 -0
  31. {pulserver-0.4.22 → pulserver-0.4.23}/.github/workflows/tag.yml +0 -0
  32. {pulserver-0.4.22 → pulserver-0.4.23}/.github/workflows/tags-release.yml +0 -0
  33. {pulserver-0.4.22 → pulserver-0.4.23}/.github/workflows/test-ci.yml +0 -0
  34. {pulserver-0.4.22 → pulserver-0.4.23}/.github/workflows/wheels.yml +0 -0
  35. {pulserver-0.4.22 → pulserver-0.4.23}/.gitignore +0 -0
  36. {pulserver-0.4.22 → pulserver-0.4.23}/.pre-commit-config.yaml +0 -0
  37. {pulserver-0.4.22 → pulserver-0.4.23}/AGENTS.md +0 -0
  38. {pulserver-0.4.22 → pulserver-0.4.23}/CMakeLists.txt +0 -0
  39. {pulserver-0.4.22 → pulserver-0.4.23}/CODE_OF_CONDUCT.md +0 -0
  40. {pulserver-0.4.22 → pulserver-0.4.23}/CONTRIBUTING.md +0 -0
  41. {pulserver-0.4.22 → pulserver-0.4.23}/LICENSE +0 -0
  42. {pulserver-0.4.22 → pulserver-0.4.23}/LICENSES/gadgetron-python-MIT.txt +0 -0
  43. {pulserver-0.4.22 → pulserver-0.4.23}/LICENSES/python-ismrmrd-server-MIT.txt +0 -0
  44. {pulserver-0.4.22 → pulserver-0.4.23}/NEXT.md +0 -0
  45. {pulserver-0.4.22 → pulserver-0.4.23}/README.md +0 -0
  46. {pulserver-0.4.22 → pulserver-0.4.23}/SECURITY.md +0 -0
  47. {pulserver-0.4.22 → pulserver-0.4.23}/SKILLS.md +0 -0
  48. {pulserver-0.4.22 → pulserver-0.4.23}/codecov.yml +0 -0
  49. {pulserver-0.4.22 → pulserver-0.4.23}/docker/Dockerfile +0 -0
  50. {pulserver-0.4.22 → pulserver-0.4.23}/docker/compose.yaml +0 -0
  51. {pulserver-0.4.22 → pulserver-0.4.23}/docker/entrypoint.sh +0 -0
  52. {pulserver-0.4.22 → pulserver-0.4.23}/docker/limits/limits.txt +0 -0
  53. {pulserver-0.4.22 → pulserver-0.4.23}/docker/smoke.py +0 -0
  54. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_static/architecture-dark.svg +0 -0
  55. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_static/architecture.svg +0 -0
  56. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_static/capabilities.js +0 -0
  57. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_static/context-dark.svg +0 -0
  58. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_static/context.svg +0 -0
  59. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_static/pulseg-dark.svg +0 -0
  60. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_static/pulseg.svg +0 -0
  61. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_static/pulserver-logo-dark.svg +0 -0
  62. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_static/pulserver-logo.svg +0 -0
  63. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_static/pulserver-mark-dark.svg +0 -0
  64. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_static/pulserver-mark.svg +0 -0
  65. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_static/pulserver.css +0 -0
  66. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_static/repetition-dark.svg +0 -0
  67. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_static/repetition.svg +0 -0
  68. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_static/safety-dark.svg +0 -0
  69. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_static/safety.svg +0 -0
  70. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_static/session-dark.svg +0 -0
  71. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_static/session.svg +0 -0
  72. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_static/virtual-dark.svg +0 -0
  73. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_static/virtual.svg +0 -0
  74. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_templates/autosummary/base.rst +0 -0
  75. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_templates/autosummary/class.rst +0 -0
  76. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_templates/autosummary/enum.rst +0 -0
  77. {pulserver-0.4.22 → pulserver-0.4.23}/docs/_templates/autosummary/function.rst +0 -0
  78. {pulserver-0.4.22 → pulserver-0.4.23}/docs/api/design.md +0 -0
  79. {pulserver-0.4.22 → pulserver-0.4.23}/docs/api/host.md +0 -0
  80. {pulserver-0.4.22 → pulserver-0.4.23}/docs/api/index.md +0 -0
  81. {pulserver-0.4.22 → pulserver-0.4.23}/docs/api/ir.md +0 -0
  82. {pulserver-0.4.22 → pulserver-0.4.23}/docs/api/mrd.md +0 -0
  83. {pulserver-0.4.22 → pulserver-0.4.23}/docs/api/protocol.md +0 -0
  84. {pulserver-0.4.22 → pulserver-0.4.23}/docs/api/proxy.md +0 -0
  85. {pulserver-0.4.22 → pulserver-0.4.23}/docs/api/recon.md +0 -0
  86. {pulserver-0.4.22 → pulserver-0.4.23}/docs/api/validate.md +0 -0
  87. {pulserver-0.4.22 → pulserver-0.4.23}/docs/api/virtual.md +0 -0
  88. {pulserver-0.4.22 → pulserver-0.4.23}/docs/api_objects.py +0 -0
  89. {pulserver-0.4.22 → pulserver-0.4.23}/docs/colab.py +0 -0
  90. {pulserver-0.4.22 → pulserver-0.4.23}/docs/conf.py +0 -0
  91. {pulserver-0.4.22 → pulserver-0.4.23}/docs/developer-guide/documentation.md +0 -0
  92. {pulserver-0.4.22 → pulserver-0.4.23}/docs/developer-guide/index.md +0 -0
  93. {pulserver-0.4.22 → pulserver-0.4.23}/docs/developer-guide/installation.md +0 -0
  94. {pulserver-0.4.22 → pulserver-0.4.23}/docs/developer-guide/internals/calibration.md +0 -0
  95. {pulserver-0.4.22 → pulserver-0.4.23}/docs/developer-guide/internals/index.md +0 -0
  96. {pulserver-0.4.22 → pulserver-0.4.23}/docs/developer-guide/internals/protocol-wire.md +0 -0
  97. {pulserver-0.4.22 → pulserver-0.4.23}/docs/developer-guide/internals/reconstruction-proxy.md +0 -0
  98. {pulserver-0.4.22 → pulserver-0.4.23}/docs/developer-guide/internals/sar-ratios.md +0 -0
  99. {pulserver-0.4.22 → pulserver-0.4.23}/docs/developer-guide/internals/sequence-definitions.md +0 -0
  100. {pulserver-0.4.22 → pulserver-0.4.23}/docs/developer-guide/internals/virtual-scanner.md +0 -0
  101. {pulserver-0.4.22 → pulserver-0.4.23}/docs/developer-guide/releases.md +0 -0
  102. {pulserver-0.4.22 → pulserver-0.4.23}/docs/developer-guide/style.md +0 -0
  103. {pulserver-0.4.22 → pulserver-0.4.23}/docs/developer-guide/terminology.md +0 -0
  104. {pulserver-0.4.22 → pulserver-0.4.23}/docs/developer-guide/workflow.md +0 -0
  105. {pulserver-0.4.22 → pulserver-0.4.23}/docs/examples/course.md +0 -0
  106. {pulserver-0.4.22 → pulserver-0.4.23}/docs/examples/index.md +0 -0
  107. {pulserver-0.4.22 → pulserver-0.4.23}/docs/examples/tours.md +0 -0
  108. {pulserver-0.4.22 → pulserver-0.4.23}/docs/explanations/architecture.md +0 -0
  109. {pulserver-0.4.22 → pulserver-0.4.23}/docs/explanations/index.md +0 -0
  110. {pulserver-0.4.22 → pulserver-0.4.23}/docs/explanations/protocol.md +0 -0
  111. {pulserver-0.4.22 → pulserver-0.4.23}/docs/explanations/raw-data.md +0 -0
  112. {pulserver-0.4.22 → pulserver-0.4.23}/docs/explanations/reconstruction-session.md +0 -0
  113. {pulserver-0.4.22 → pulserver-0.4.23}/docs/explanations/reconstruction.md +0 -0
  114. {pulserver-0.4.22 → pulserver-0.4.23}/docs/explanations/safety-checks.md +0 -0
  115. {pulserver-0.4.22 → pulserver-0.4.23}/docs/explanations/scanner-representation.md +0 -0
  116. {pulserver-0.4.22 → pulserver-0.4.23}/docs/explanations/virtual-scanner.md +0 -0
  117. {pulserver-0.4.22 → pulserver-0.4.23}/docs/figure_style.py +0 -0
  118. {pulserver-0.4.22 → pulserver-0.4.23}/docs/index.md +0 -0
  119. {pulserver-0.4.22 → pulserver-0.4.23}/docs/misc/contributors.md +0 -0
  120. {pulserver-0.4.22 → pulserver-0.4.23}/docs/misc/index.md +0 -0
  121. {pulserver-0.4.22 → pulserver-0.4.23}/docs/misc/license.md +0 -0
  122. {pulserver-0.4.22 → pulserver-0.4.23}/docs/misc/related.md +0 -0
  123. {pulserver-0.4.22 → pulserver-0.4.23}/docs/user-guide/index.md +0 -0
  124. {pulserver-0.4.22 → pulserver-0.4.23}/docs/user-guide/reconstruction-client.md +0 -0
  125. {pulserver-0.4.22 → pulserver-0.4.23}/docs/user-guide/reconstruction-plugins.md +0 -0
  126. {pulserver-0.4.22 → pulserver-0.4.23}/docs/user-guide/running.md +0 -0
  127. {pulserver-0.4.22 → pulserver-0.4.23}/docs/user-guide/scanner-sequences.md +0 -0
  128. {pulserver-0.4.22 → pulserver-0.4.23}/docs/user-guide/virtual-scanner.md +0 -0
  129. {pulserver-0.4.22 → pulserver-0.4.23}/gallery/01-course/01_protocol_to_image.py +0 -0
  130. {pulserver-0.4.22 → pulserver-0.4.23}/gallery/01-course/02_sequence_plugin.py +0 -0
  131. {pulserver-0.4.22 → pulserver-0.4.23}/gallery/01-course/03_scanner_representation.py +0 -0
  132. {pulserver-0.4.22 → pulserver-0.4.23}/gallery/01-course/04_reconstruction_plugin.py +0 -0
  133. {pulserver-0.4.22 → pulserver-0.4.23}/gallery/01-course/05_recon_plugin.py +0 -0
  134. {pulserver-0.4.22 → pulserver-0.4.23}/gallery/01-course/06_testing_on_the_virtual_scanner.py +0 -0
  135. {pulserver-0.4.22 → pulserver-0.4.23}/gallery/01-course/README.rst +0 -0
  136. {pulserver-0.4.22 → pulserver-0.4.23}/gallery/01-course/_gallery_header.md +0 -0
  137. {pulserver-0.4.22 → pulserver-0.4.23}/gallery/02-tours/01_protocol_resolution.py +0 -0
  138. {pulserver-0.4.22 → pulserver-0.4.23}/gallery/02-tours/02_segmentation.py +0 -0
  139. {pulserver-0.4.22 → pulserver-0.4.23}/gallery/02-tours/03_fov_offset_enrichment.py +0 -0
  140. {pulserver-0.4.22 → pulserver-0.4.23}/gallery/02-tours/README.rst +0 -0
  141. {pulserver-0.4.22 → pulserver-0.4.23}/gallery/02-tours/_gallery_header.md +0 -0
  142. {pulserver-0.4.22 → pulserver-0.4.23}/gallery/README.rst +0 -0
  143. {pulserver-0.4.22 → pulserver-0.4.23}/gallery/_gallery_header.md +0 -0
  144. {pulserver-0.4.22 → pulserver-0.4.23}/pyproject.toml +0 -0
  145. {pulserver-0.4.22 → pulserver-0.4.23}/scripts/build_docs.sh +0 -0
  146. {pulserver-0.4.22 → pulserver-0.4.23}/scripts/check_throughput.py +0 -0
  147. {pulserver-0.4.22 → pulserver-0.4.23}/scripts/format_and_lint.sh +0 -0
  148. {pulserver-0.4.22 → pulserver-0.4.23}/scripts/make_artwork.py +0 -0
  149. {pulserver-0.4.22 → pulserver-0.4.23}/scripts/publish_docs.py +0 -0
  150. {pulserver-0.4.22 → pulserver-0.4.23}/setup.py +0 -0
  151. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/CMakeLists.txt +0 -0
  152. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/cache/pulseg_cache.c +0 -0
  153. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/core/pulseg_core.c +0 -0
  154. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/core/pulseg_error.c +0 -0
  155. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/core/pulseg_math.c +0 -0
  156. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/include/pulseg/pulseg.h +0 -0
  157. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/include/pulseg/pulseg_cache.h +0 -0
  158. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/include/pulseg/pulseg_collection.h +0 -0
  159. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/include/pulseg/pulseg_config.h +0 -0
  160. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/include/pulseg/pulseg_errors.h +0 -0
  161. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/include/pulseg/pulseg_io.h +0 -0
  162. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/include/pulseg/pulseg_playout.h +0 -0
  163. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/include/pulseg/pulseg_protocol.h +0 -0
  164. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/include/pulseq/pulseq.h +0 -0
  165. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/include/pulseq/pulseq_config.h +0 -0
  166. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/include/pulseq/pulseq_types.h +0 -0
  167. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/io/pulseg_opts.c +0 -0
  168. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/io/pulseg_protocol.c +0 -0
  169. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/playout/pulseg_playout.c +0 -0
  170. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/pulseq/pulseq_internal.h +0 -0
  171. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/pulseq/pulseq_shape.c +0 -0
  172. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/structure/pulseg_descriptor.c +0 -0
  173. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/structure/pulseg_getters.c +0 -0
  174. {pulserver-0.4.22 → pulserver-0.4.23}/src/c/structure/pulseg_repetition.c +0 -0
  175. {pulserver-0.4.22 → pulserver-0.4.23}/src/cpp/fourier/bindings.cpp +0 -0
  176. {pulserver-0.4.22 → pulserver-0.4.23}/src/cpp/fourier/bindings.hpp +0 -0
  177. {pulserver-0.4.22 → pulserver-0.4.23}/src/cpp/fourier/parallel.hpp +0 -0
  178. {pulserver-0.4.22 → pulserver-0.4.23}/src/cpp/fourier/timeline.cpp +0 -0
  179. {pulserver-0.4.22 → pulserver-0.4.23}/src/cpp/fourier/timeline.hpp +0 -0
  180. {pulserver-0.4.22 → pulserver-0.4.23}/src/cpp/ir/collection.cpp +0 -0
  181. {pulserver-0.4.22 → pulserver-0.4.23}/src/cpp/ir/dedup.cpp +0 -0
  182. {pulserver-0.4.22 → pulserver-0.4.23}/src/cpp/ir/from_libraries.cpp +0 -0
  183. {pulserver-0.4.22 → pulserver-0.4.23}/src/cpp/ir/from_libraries.hpp +0 -0
  184. {pulserver-0.4.22 → pulserver-0.4.23}/src/cpp/ir/gradient_stretch.cpp +0 -0
  185. {pulserver-0.4.22 → pulserver-0.4.23}/src/cpp/ir/pulseg_convert.h +0 -0
  186. {pulserver-0.4.22 → pulserver-0.4.23}/src/cpp/ir/pulseq_file.cpp +0 -0
  187. {pulserver-0.4.22 → pulserver-0.4.23}/src/cpp/ir/pulseq_file.h +0 -0
  188. {pulserver-0.4.22 → pulserver-0.4.23}/src/cpp/ir/structure.cpp +0 -0
  189. {pulserver-0.4.22 → pulserver-0.4.23}/src/cpp/ir/wave_plan.cpp +0 -0
  190. {pulserver-0.4.22 → pulserver-0.4.23}/src/cpp/module.cpp +0 -0
  191. {pulserver-0.4.22 → pulserver-0.4.23}/src/cpp/native.hpp +0 -0
  192. {pulserver-0.4.22 → pulserver-0.4.23}/src/cpp/playout.cpp +0 -0
  193. {pulserver-0.4.22 → pulserver-0.4.23}/src/cpp/playout.hpp +0 -0
  194. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/__init__.py +0 -0
  195. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_accelerators.py +0 -0
  196. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_cli.py +0 -0
  197. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_labels.py +0 -0
  198. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_logs.py +0 -0
  199. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_memory.py +0 -0
  200. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_plugins.py +0 -0
  201. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_site_packages.py +0 -0
  202. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/__init__.py +0 -0
  203. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/_fse.py +0 -0
  204. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/_inversion.py +0 -0
  205. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/_pmc.py +0 -0
  206. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/_saturation.py +0 -0
  207. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/_slab.py +0 -0
  208. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/_user.py +0 -0
  209. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/recon/epi.py +0 -0
  210. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/recon/nufft.py +0 -0
  211. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/recon/nufft_train.py +0 -0
  212. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/recon/pics.py +0 -0
  213. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/recon/pics_train.py +0 -0
  214. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/recon/pmc.py +0 -0
  215. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/recon/qsm.py +0 -0
  216. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/bssfp2d.py +0 -0
  217. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/bssfp3d.py +0 -0
  218. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/epi2d.py +0 -0
  219. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/epi3d.py +0 -0
  220. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/fse3d.py +0 -0
  221. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/fse_pd3d.py +0 -0
  222. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/gre2d.py +0 -0
  223. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/gre3d.py +0 -0
  224. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/gre_multiecho2d.py +0 -0
  225. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/gre_multiecho3d.py +0 -0
  226. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/gre_propeller2d.py +0 -0
  227. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/gre_radial2d.py +0 -0
  228. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/gre_spiral2d.py +0 -0
  229. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/gre_stack_of_blades3d.py +0 -0
  230. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/gre_stack_of_spirals3d.py +0 -0
  231. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/gre_stack_of_stars3d.py +0 -0
  232. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/mprage3d.py +0 -0
  233. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/mprage_stack_of_spirals3d.py +0 -0
  234. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/mprage_stack_of_stars3d.py +0 -0
  235. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/se2d.py +0 -0
  236. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/se3d.py +0 -0
  237. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/se_epi_propeller2d.py +0 -0
  238. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/se_propeller2d.py +0 -0
  239. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/se_radial2d.py +0 -0
  240. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/se_spiral2d.py +0 -0
  241. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/se_stack_of_blades3d.py +0 -0
  242. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/se_stack_of_spirals3d.py +0 -0
  243. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/se_stack_of_stars3d.py +0 -0
  244. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/_zoo/sequences/zte3d.py +0 -0
  245. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/design/__init__.py +0 -0
  246. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/design/_entries.py +0 -0
  247. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/design/_options.py +0 -0
  248. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/design/_plugin.py +0 -0
  249. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/design/_recon_parameters.py +0 -0
  250. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/design/_rf.py +0 -0
  251. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/host/__init__.py +0 -0
  252. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/host/__main__.py +0 -0
  253. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/host/_blocks.py +0 -0
  254. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/host/_command.py +0 -0
  255. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/host/_limits.py +0 -0
  256. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/host/_memo.py +0 -0
  257. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/host/_push.py +0 -0
  258. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/host/_server.py +0 -0
  259. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/host/_service.py +0 -0
  260. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/host/_slew.py +0 -0
  261. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/host/_store.py +0 -0
  262. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/ir/__init__.py +0 -0
  263. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/ir/_calibration.py +0 -0
  264. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/ir/_checks.py +0 -0
  265. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/ir/_convert.py +0 -0
  266. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/ir/_playout.py +0 -0
  267. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/ir/_source.py +0 -0
  268. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/ir/_vendor.py +0 -0
  269. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/ir/_waves.py +0 -0
  270. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/mrd/__init__.py +0 -0
  271. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/mrd/_acquisitions.py +0 -0
  272. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/mrd/_header.py +0 -0
  273. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/mrd/_images.py +0 -0
  274. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/mrd/_metadata.py +0 -0
  275. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/mrd/_sequence.py +0 -0
  276. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/protocol/__init__.py +0 -0
  277. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/protocol/_keys.py +0 -0
  278. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/protocol/_prescription.py +0 -0
  279. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/protocol/_schema.py +0 -0
  280. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/protocol/_wire.py +0 -0
  281. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/proxy/__init__.py +0 -0
  282. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/proxy/__main__.py +0 -0
  283. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/proxy/_designs.py +0 -0
  284. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/proxy/_enrich.py +0 -0
  285. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/proxy/_held.py +0 -0
  286. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/proxy/_intake.py +0 -0
  287. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/proxy/_local.py +0 -0
  288. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/proxy/_motion.py +0 -0
  289. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/proxy/_proxy.py +0 -0
  290. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/proxy/_queue.py +0 -0
  291. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/proxy/_receiver.py +0 -0
  292. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/proxy/_seqdesc.py +0 -0
  293. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/proxy/_workers.py +0 -0
  294. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/__init__.py +0 -0
  295. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/__main__.py +0 -0
  296. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/_buffers.py +0 -0
  297. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/_calibration.py +0 -0
  298. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/_correct.py +0 -0
  299. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/_exam_image.py +0 -0
  300. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/_figure.py +0 -0
  301. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/_loader.py +0 -0
  302. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/_replay.py +0 -0
  303. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/_runtime/__init__.py +0 -0
  304. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/_runtime/application.py +0 -0
  305. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/_runtime/concurrency.py +0 -0
  306. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/_runtime/connection.py +0 -0
  307. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/_runtime/constants.py +0 -0
  308. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/_runtime/exam.py +0 -0
  309. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/_runtime/mrd2dicom.py +0 -0
  310. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/_runtime/offline.py +0 -0
  311. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/_runtime/readers.py +0 -0
  312. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/_runtime/writers.py +0 -0
  313. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/_units.py +0 -0
  314. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/gadgets.py +0 -0
  315. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/handlers/__init__.py +0 -0
  316. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/handlers/epi.py +0 -0
  317. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/handlers/nufft.py +0 -0
  318. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/handlers/nufft_train.py +0 -0
  319. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/handlers/pics.py +0 -0
  320. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/handlers/pics_train.py +0 -0
  321. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/handlers/pmc.py +0 -0
  322. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/handlers/qsm.py +0 -0
  323. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/recon/plugin.py +0 -0
  324. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/validate/__init__.py +0 -0
  325. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/validate/_command.py +0 -0
  326. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/validate/_compare.py +0 -0
  327. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/validate/_validate.py +0 -0
  328. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/validate/_xml.py +0 -0
  329. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/virtual/__init__.py +0 -0
  330. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/virtual/_brainweb.py +0 -0
  331. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/virtual/_client.py +0 -0
  332. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/virtual/_coils.py +0 -0
  333. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/virtual/_command.py +0 -0
  334. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/virtual/_console.py +0 -0
  335. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/virtual/_export.py +0 -0
  336. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/virtual/_fourier.py +0 -0
  337. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/virtual/_girf.py +0 -0
  338. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/virtual/_localizer.py +0 -0
  339. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/virtual/_motion.py +0 -0
  340. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/virtual/_phantom.py +0 -0
  341. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/virtual/_stream.py +0 -0
  342. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/virtual/_timeline.py +0 -0
  343. {pulserver-0.4.22 → pulserver-0.4.23}/src/pulserver/virtual/_tissue.py +0 -0
  344. {pulserver-0.4.22 → pulserver-0.4.23}/tests/_analytic.py +0 -0
  345. {pulserver-0.4.22 → pulserver-0.4.23}/tests/_host.py +0 -0
  346. {pulserver-0.4.22 → pulserver-0.4.23}/tests/_seqtext.py +0 -0
  347. {pulserver-0.4.22 → pulserver-0.4.23}/tests/_virtual.py +0 -0
  348. {pulserver-0.4.22 → pulserver-0.4.23}/tests/_zoo.py +0 -0
  349. {pulserver-0.4.22 → pulserver-0.4.23}/tests/conftest.py +0 -0
  350. {pulserver-0.4.22 → pulserver-0.4.23}/tests/fixtures/bloch/bssfp.npy +0 -0
  351. {pulserver-0.4.22 → pulserver-0.4.23}/tests/fixtures/bloch/epi_2d_main.npy +0 -0
  352. {pulserver-0.4.22 → pulserver-0.4.23}/tests/fixtures/bloch/gre_2d_3sl.npy +0 -0
  353. {pulserver-0.4.22 → pulserver-0.4.23}/tests/fixtures/bloch/steady_dess_hard_0hz.npy +0 -0
  354. {pulserver-0.4.22 → pulserver-0.4.23}/tests/fixtures/bloch/steady_dess_hard_30hz.npy +0 -0
  355. {pulserver-0.4.22 → pulserver-0.4.23}/tests/fixtures/bloch/steady_echo_hard_0hz.npy +0 -0
  356. {pulserver-0.4.22 → pulserver-0.4.23}/tests/fixtures/bloch/steady_echo_hard_30hz.npy +0 -0
  357. {pulserver-0.4.22 → pulserver-0.4.23}/tests/fixtures/bloch/steady_echo_selective_0hz.npy +0 -0
  358. {pulserver-0.4.22 → pulserver-0.4.23}/tests/fixtures/bloch/steady_fid_hard_0hz.npy +0 -0
  359. {pulserver-0.4.22 → pulserver-0.4.23}/tests/fixtures/sequences/dedup_gre_pair.seq +0 -0
  360. {pulserver-0.4.22 → pulserver-0.4.23}/tests/fixtures/sequences/dedup_gre_pair_b.seq +0 -0
  361. {pulserver-0.4.22 → pulserver-0.4.23}/tests/fixtures/sequences/epi_2d_main.seq +0 -0
  362. {pulserver-0.4.22 → pulserver-0.4.23}/tests/fixtures/sequences/gre_2d_3sl.seq +0 -0
  363. {pulserver-0.4.22 → pulserver-0.4.23}/tests/fixtures/sequences/mprage_stack_of_spirals_3d.seq +0 -0
  364. {pulserver-0.4.22 → pulserver-0.4.23}/tests/fixtures/sequences/zte_3d.seq +0 -0
  365. {pulserver-0.4.22 → pulserver-0.4.23}/tests/native/check_initializers.c +0 -0
  366. {pulserver-0.4.22 → pulserver-0.4.23}/tests/native/check_segment_plays.c +0 -0
  367. {pulserver-0.4.22 → pulserver-0.4.23}/tests/native/print_wave_samples.c +0 -0
  368. {pulserver-0.4.22 → pulserver-0.4.23}/tests/native/read_cache_summary.c +0 -0
  369. {pulserver-0.4.22 → pulserver-0.4.23}/tests/native/read_rf_definitions.c +0 -0
  370. {pulserver-0.4.22 → pulserver-0.4.23}/tests/native/read_rf_timing.c +0 -0
  371. {pulserver-0.4.22 → pulserver-0.4.23}/tests/native/replay_an_instance.c +0 -0
  372. {pulserver-0.4.22 → pulserver-0.4.23}/tests/plugins/crash.py +0 -0
  373. {pulserver-0.4.22 → pulserver-0.4.23}/tests/plugins/gre2d.py +0 -0
  374. {pulserver-0.4.22 → pulserver-0.4.23}/tests/plugins/gre2d_raw.py +0 -0
  375. {pulserver-0.4.22 → pulserver-0.4.23}/tests/plugins/rf_train.py +0 -0
  376. {pulserver-0.4.22 → pulserver-0.4.23}/tests/plugins/stall.py +0 -0
  377. {pulserver-0.4.22 → pulserver-0.4.23}/tests/plugins/strong.py +0 -0
  378. {pulserver-0.4.22 → pulserver-0.4.23}/tests/plugins/tiny.py +0 -0
  379. {pulserver-0.4.22 → pulserver-0.4.23}/tests/plugins/typed.py +0 -0
  380. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_app.py +0 -0
  381. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_buffers.py +0 -0
  382. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_calibration.py +0 -0
  383. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_coil_compression.py +0 -0
  384. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_connection.py +0 -0
  385. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_correct.py +0 -0
  386. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_epi.py +0 -0
  387. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_exam_image.py +0 -0
  388. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_flags.py +0 -0
  389. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_gadgets.py +0 -0
  390. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_handlers.py +0 -0
  391. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_images.py +0 -0
  392. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_intensity_correction.py +0 -0
  393. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_loader.py +0 -0
  394. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_mrd2dicom.py +0 -0
  395. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_nufft.py +0 -0
  396. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_pics.py +0 -0
  397. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_pmc.py +0 -0
  398. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_prewhiten.py +0 -0
  399. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_qsm.py +0 -0
  400. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_qsm_first_echo_maps.py +0 -0
  401. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_readers_writers.py +0 -0
  402. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_slots.py +0 -0
  403. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon/test_units.py +0 -0
  404. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon_plugins/children.py +0 -0
  405. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon_plugins/crash.py +0 -0
  406. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon_plugins/device.py +0 -0
  407. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon_plugins/exam.py +0 -0
  408. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon_plugins/gre2d.py +0 -0
  409. {pulserver-0.4.22 → pulserver-0.4.23}/tests/recon_plugins/pose.py +0 -0
  410. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_any_rotation.py +0 -0
  411. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_console.py +0 -0
  412. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_console_sequences.py +0 -0
  413. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_design_memo.py +0 -0
  414. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_design_push.py +0 -0
  415. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_design_server.py +0 -0
  416. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_design_service.py +0 -0
  417. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_docs.py +0 -0
  418. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_docstring_defaults.py +0 -0
  419. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_docstrings.py +0 -0
  420. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_enrich.py +0 -0
  421. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_exam_artifacts.py +0 -0
  422. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_exam_calibration.py +0 -0
  423. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_exam_sharing.py +0 -0
  424. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_host_slots.py +0 -0
  425. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_image.py +0 -0
  426. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_ir_checks.py +0 -0
  427. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_ir_designed.py +0 -0
  428. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_ir_extensions.py +0 -0
  429. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_ir_gradient_stretch.py +0 -0
  430. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_ir_grouping.py +0 -0
  431. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_ir_labels.py +0 -0
  432. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_ir_prescan.py +0 -0
  433. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_ir_prescan_tour.py +0 -0
  434. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_ir_profile.py +0 -0
  435. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_ir_receive_calibration.py +0 -0
  436. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_ir_repetition.py +0 -0
  437. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_ir_rf.py +0 -0
  438. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_ir_rf_freq.py +0 -0
  439. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_ir_segments.py +0 -0
  440. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_ir_source.py +0 -0
  441. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_ir_steady_excitation.py +0 -0
  442. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_ir_timing.py +0 -0
  443. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_ir_vendor.py +0 -0
  444. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_keys.py +0 -0
  445. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_limits.py +0 -0
  446. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_logs.py +0 -0
  447. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_memory.py +0 -0
  448. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_motion.py +0 -0
  449. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_mrd_images.py +0 -0
  450. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_mrd_sequence.py +0 -0
  451. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_played_time.py +0 -0
  452. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_plugin_options.py +0 -0
  453. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_plugins.py +0 -0
  454. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_protocol.py +0 -0
  455. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_proxy.py +0 -0
  456. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_publish_docs.py +0 -0
  457. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_resolution.py +0 -0
  458. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_rf_layout.py +0 -0
  459. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_scan_command.py +0 -0
  460. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_scan_time.py +0 -0
  461. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_seqdesc.py +0 -0
  462. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_sequence_plugin.py +0 -0
  463. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_site_packages.py +0 -0
  464. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_slew_derate.py +0 -0
  465. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_smoke.py +0 -0
  466. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_validate.py +0 -0
  467. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_virtual.py +0 -0
  468. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_virtual_brainweb.py +0 -0
  469. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_virtual_clock.py +0 -0
  470. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_virtual_coils.py +0 -0
  471. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_virtual_export.py +0 -0
  472. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_virtual_fourier.py +0 -0
  473. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_virtual_localizer.py +0 -0
  474. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_virtual_sequences.py +0 -0
  475. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_wire.py +0 -0
  476. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_zoo_defaults.py +0 -0
  477. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_zoo_evaluation.py +0 -0
  478. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_zoo_fov_offset.py +0 -0
  479. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_zoo_mrd_labels.py +0 -0
  480. {pulserver-0.4.22 → pulserver-0.4.23}/tests/test_zoo_wave.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pulserver
3
- Version: 0.4.22
3
+ Version: 0.4.23
4
4
  Summary: Orchestrator for MR acquisitions: sequence design, scanner preparation and reconstruction.
5
5
  Keywords: mri,pulseq,mrd,ismrmrd,reconstruction,scanner
6
6
  Author-Email: Matteo Cencini <matteo.cencini@gmail.com>
@@ -119,23 +119,33 @@ makes the prepared event play them. At both, a block plays one waveform per
119
119
  axis from waveform memory: a wave. Logical axis $o$ plays
120
120
 
121
121
  $$
122
- g_o(t) = \sum_d R_{od}\, a_d\, w_d(t) = m \sum_d R_{od}\, \frac{a_d}{m}\, w_d(t),
122
+ g_o(t) = \sum_d c_{od}\, w_d(t), \qquad c_{od} = R_{od}\, a_d,
123
123
  $$
124
124
 
125
125
  with $R$ the block's rotation, the identity for a block without one, $a_d$ the
126
- amplitude of the event on axis $d$, $w_d$ its waveform normalised to a largest
127
- magnitude of one, and $m$ the $a_d$ of largest magnitude, sign included. The
128
- sum on the right is fixed by the events' definitions and shapes, the rotation
129
- and the amplitude ratios $a_d/m$; an instance only scales it by $m$. The
130
- conversion keeps each distinct sum once per subsequence, with ratios that
131
- round to the same multiple of $10^{-4}$ taken as equal, normalised on each
132
- axis to a largest magnitude of one. Blocks that differ in amplitude or
133
- polarity alone share one wave.
126
+ amplitude of the event on axis $d$, and $w_d$ its waveform normalised to a
127
+ largest magnitude of one. Each axis plays on its own gradient board at its own
128
+ amplitude, so two blocks play the same waveform on axis $o$ whenever their
129
+ weights $c_{o\cdot}$ are proportional, the factor carrying the polarity. The
130
+ conversion keeps one wave per subsequence for each distinct set of event
131
+ definitions and shapes and, on each axis, the direction of $c_{o\cdot}$
132
+ scaled to one on its largest entry, with directions whose entries round to the
133
+ same multiple of $10^{-4}$ taken as equal. The wave is normalised on each axis
134
+ to a largest magnitude of one.
135
+
136
+ A spoke turned in the plane therefore plays one wave at every angle: on each
137
+ axis only one logical axis reaches it, and the turn moves into the
138
+ amplitudes. A partition lobe scaled per partition plays one wave on its axis.
139
+ An interleaf that drives two logical axes with different shapes, turned in
140
+ the plane, mixes them in a ratio that changes with the angle, and plays a wave
141
+ per angle.
134
142
 
135
143
  At every segment position where an instance carries a rotation other than
136
144
  the identity, or plays a gradient the position's events are not prepared
137
- with, each block with a gradient event plays its wave on each axis, at $m$
138
- times the wave's largest magnitude there, and the scanner applies the
145
+ with, each block with a gradient event plays its wave on each axis at its own
146
+ amplitude there, $c_{ok}/c'_{ok}$ times the wave's largest magnitude, with
147
+ $c'$ the weights the wave was laid down with and $k$ their largest entry on
148
+ that axis, and the scanner applies the
139
149
  prescription's rotation alone, or no rotation under `NOROT`. Each such
140
150
  position records the number of points of the longest wave it plays, and the
141
151
  span of time the waves cover. Every wave a position plays, and every position
@@ -578,9 +578,11 @@ typedef struct pulseg_block_instance
578
578
  * waves -- one whose blocks carry a rotation, or play a gradient shape the
579
579
  * position's prepared events do not hold -- the gradients play as one
580
580
  * wave per axis, pulseg_materialize_wave(wave_id), each at
581
- * wave_amp_hz_per_m: the block's logical amplitude of largest magnitude,
582
- * with its sign, times the wave's peak on that axis. The rotation matrix
583
- * above is then already in the wave. wave_id is -1 elsewhere, and the
581
+ * wave_amp_hz_per_m: the block's own amplitude on that output axis, its
582
+ * rotation and logical amplitudes included, with its sign. Blocks whose
583
+ * weights on an output axis differ only by a factor share that axis's
584
+ * waveform, so a turn in the plane changes these amplitudes and not the
585
+ * wave. The rotation matrix above is then already in the wave. wave_id is -1 elsewhere, and the
584
586
  * amplitudes 0: the block plays its position's events at the
585
587
  * g*_amp_hz_per_m above. */
586
588
  int wave_id;
@@ -358,18 +358,25 @@ typedef struct pulseg_block_initial_state
358
358
  * definition or shape the position's prepared events do not hold.
359
359
  *
360
360
  * A rotation extension turns a block's gradients within the logical frame, so
361
- * output axis o plays sum_d rotation[o][d] * a_d * w_d(t): the block's three
362
- * normalised waveforms w_d, combined, with the identity for a block without
363
- * one. With m the a_d of largest magnitude,
364
- * sign included, and ratio[d] = a_d / m, that is
365
- * m * sum_d rotation[o][d] * ratio[d] * w_d(t), so the combination is fixed by
366
- * the definitions, the shapes, the rotation and the ratios, and an instance
367
- * only scales it, its polarity included. A playout loads the combination
368
- * normalised to unit peak and plays it at m * peak[o].
361
+ * output axis o plays sum_d c[o][d] * w_d(t), with c[o][d] = rotation[o][d] *
362
+ * a_d: the block's three normalised waveforms w_d, weighted, with the
363
+ * identity for a block without a rotation. Each output axis plays on its own
364
+ * gradient board at its own amplitude, so two blocks share an output axis's
365
+ * waveform whenever their weights c[o][.] are proportional, the factor
366
+ * carrying the polarity. A spoke turned in the plane thus plays one waveform
367
+ * at every angle, cos and sin moving into the amplitudes, and a partition
368
+ * wave scaled per partition plays one waveform on its axis.
369
369
  *
370
- * One record per distinct (definitions, shapes, rotation, ratios), ratios
371
- * compared to PULSEG_WAVE_RATIO_STEP. Every field is 4 bytes, so the records
372
- * serialize as a packed word array. */
370
+ * The record keeps the weights of the first block that plays it, as the
371
+ * rotation and ratio[d] = a_d / m with m the a_d of largest magnitude, sign
372
+ * included. A playout loads each output axis normalised to unit peak, and a
373
+ * block plays output axis o at its own c[o][k] / (rotation[o][k] * ratio[k])
374
+ * times peak[o], k the axis of largest weight on o in the record
375
+ * (pulseg__wave_board_axis).
376
+ *
377
+ * One record per distinct (definitions, shapes, per-output-axis weight
378
+ * directions), the directions compared to PULSEG_WAVE_RATIO_STEP. Every field
379
+ * is 4 bytes, so the records serialize as a packed word array. */
373
380
  typedef struct pulseg_wave
374
381
  {
375
382
  int grad_def[3]; /* per logical axis; -1 = not driven */
@@ -384,7 +391,7 @@ typedef struct pulseg_wave
384
391
  } pulseg_wave;
385
392
 
386
393
  #define PULSEG_WAVE_WORDS 25
387
- /* Amplitude ratios this close are one wave. */
394
+ /* Weight directions this close are one wave. */
388
395
  #define PULSEG_WAVE_RATIO_STEP 1.0e-4f
389
396
 
390
397
  /* ================================================================== */
@@ -885,8 +892,13 @@ int pulseg__block_gradients(
885
892
  float *gradient[3],
886
893
  int *n);
887
894
 
895
+ /* The logical axis that weighs most on output axis @p out_axis of @p wave,
896
+ * and the direction of the weights there scaled to 1 on that axis, in
897
+ * @p direction; -1 and zeros where no driven axis reaches @p out_axis. */
898
+ int pulseg__wave_board_axis(const pulseg_wave *wave, int out_axis, float direction[3]);
899
+
888
900
  /* The wave block-table entry @p block_idx plays and the amplitude it plays
889
- * each axis at: -1 and zeros where it plays none. */
901
+ * each output axis at: -1 and zeros where it plays none. */
890
902
  void pulseg__block_wave(
891
903
  const pulseg_sequence_descriptor *desc,
892
904
  int block_idx,
@@ -180,24 +180,6 @@ static float axis_value_at(const axis_corners *c, float x)
180
180
  return pulseg__linear_at(c->t, c->v, c->n, x);
181
181
  }
182
182
 
183
- /* 1 when one driven axis is an arbitrary gradient on the raster: its samples
184
- * are known only at raster centres, so the combination is too. */
185
- static int wave_on_raster_centres(const pulseg_sequence_descriptor *desc, const pulseg_wave *wave)
186
- {
187
- const pulseg_grad_definition *gd;
188
- int d;
189
-
190
- for (d = 0; d < 3; ++d)
191
- {
192
- if (wave->grad_def[d] < 0 || wave->grad_def[d] >= desc->num_unique_grads)
193
- continue;
194
- gd = &desc->grad_definitions[wave->grad_def[d]];
195
- if (gd->type != 0 && gd->unused_or_time_shape_id <= 0)
196
- return 1;
197
- }
198
- return 0;
199
- }
200
-
201
183
  static int float_cmp(const void *a, const void *b)
202
184
  {
203
185
  float fa = *(const float *)a;
@@ -211,7 +193,6 @@ typedef struct wave_grid
211
193
  axis_corners axis[3];
212
194
  float *t;
213
195
  int n;
214
- int centred; /* raster centres between two held edges */
215
196
  } wave_grid;
216
197
 
217
198
  static void wave_grid_free(wave_grid *g)
@@ -226,49 +207,6 @@ static void wave_grid_free(wave_grid *g)
226
207
  g->n = 0;
227
208
  }
228
209
 
229
- /* 1 and the earliest start and latest end of the driven axes; 0 when none is. */
230
- static int axes_span(const axis_corners axis[3], float *lo, float *hi)
231
- {
232
- int d, have = 0;
233
-
234
- for (d = 0; d < 3; ++d)
235
- {
236
- if (axis[d].n < 1)
237
- continue;
238
- if (!have || axis[d].t[0] < *lo)
239
- *lo = axis[d].t[0];
240
- if (!have || axis[d].t[axis[d].n - 1] > *hi)
241
- *hi = axis[d].t[axis[d].n - 1];
242
- have = 1;
243
- }
244
- return have;
245
- }
246
-
247
- /* The centres of the raster from the earliest start, rounded down onto it,
248
- * to the latest end, and the two edges the wave holds its end values to. */
249
- static int centre_grid(wave_grid *g, float raster)
250
- {
251
- float lo = 0.0f;
252
- float hi = 0.0f;
253
- int i, m;
254
-
255
- if (!axes_span(g->axis, &lo, &hi) || hi <= lo || raster <= 0.0f)
256
- return PULSEG_SUCCESS;
257
- lo = (float)floor((double)(lo / raster) + 1e-6) * raster;
258
- m = (int)ceil((double)((hi - lo) / raster) - 1e-6);
259
- if (m < 1)
260
- m = 1;
261
- g->t = (float *)PULSEG_ALLOC((size_t)(m + 2) * sizeof(float));
262
- if (!g->t)
263
- return PULSEG_ERR_ALLOC_FAILED;
264
- g->t[0] = lo;
265
- for (i = 0; i < m; ++i)
266
- g->t[i + 1] = lo + ((float)i + 0.5f) * raster;
267
- g->t[m + 1] = lo + (float)m * raster;
268
- g->n = m + 2;
269
- return PULSEG_SUCCESS;
270
- }
271
-
272
210
  /* Each axis is linear between its corners, so the union of the corner times
273
211
  * carries the combination exactly. */
274
212
  static int corner_grid(wave_grid *g)
@@ -307,27 +245,19 @@ static int wave_grid_build(
307
245
  if (!axis_corners_build(desc, wave->grad_def[d], wave->shape_id[d], &g->axis[d]))
308
246
  rc = PULSEG_ERR_ALLOC_FAILED;
309
247
  if (PULSEG_SUCCEEDED(rc))
310
- {
311
- g->centred = wave_on_raster_centres(desc, wave);
312
- rc = g->centred ? centre_grid(g, desc->grad_raster_us) : corner_grid(g);
313
- }
248
+ rc = corner_grid(g);
314
249
  if (PULSEG_FAILED(rc))
315
250
  wave_grid_free(g);
316
251
  return rc;
317
252
  }
318
253
 
319
- /* The combination on output axis @p out_axis at point @p i; on raster
320
- * centres the edges hold the first and last centres. */
254
+ /* The combination on output axis @p out_axis at point @p i. */
321
255
  static float wave_grid_value(const pulseg_wave *wave, const wave_grid *g, int out_axis, int i)
322
256
  {
323
- float x = g->t[i];
257
+ const float x = g->t[i];
324
258
  float v = 0.0f;
325
259
  int d;
326
260
 
327
- if (g->centred && i == 0)
328
- x = g->t[1];
329
- else if (g->centred && i == g->n - 1)
330
- x = g->t[g->n - 2];
331
261
  for (d = 0; d < 3; ++d)
332
262
  v += wave->rotation[out_axis * 3 + d] * wave->ratio[d] * axis_value_at(&g->axis[d], x);
333
263
  return v;
@@ -656,6 +586,30 @@ int pulseg__block_combination(
656
586
  return 1;
657
587
  }
658
588
 
589
+ int pulseg__wave_board_axis(const pulseg_wave *wave, int out_axis, float direction[3])
590
+ {
591
+ float weight[3];
592
+ float largest = 0.0f;
593
+ int axis = -1;
594
+ int d;
595
+
596
+ for (d = 0; d < 3; ++d)
597
+ {
598
+ weight[d] = wave->rotation[out_axis * 3 + d] * wave->ratio[d];
599
+ direction[d] = 0.0f;
600
+ if ((float)fabs((double)weight[d]) > largest)
601
+ {
602
+ largest = (float)fabs((double)weight[d]);
603
+ axis = d;
604
+ }
605
+ }
606
+ if (axis < 0)
607
+ return -1;
608
+ for (d = 0; d < 3; ++d)
609
+ direction[d] = weight[d] / weight[axis];
610
+ return axis;
611
+ }
612
+
659
613
  /* The wave block-table entry @p block_idx plays, -1 where it plays none. */
660
614
  static int block_wave_index(const pulseg_sequence_descriptor *desc, int block_idx)
661
615
  {
@@ -673,9 +627,12 @@ void pulseg__block_wave(
673
627
  int *wave_id,
674
628
  float amp_hz_per_m[3])
675
629
  {
630
+ const pulseg_block_table_element *bte;
676
631
  const pulseg_wave *wave;
632
+ pulseg_wave played;
633
+ float direction[3];
677
634
  float scale;
678
- int d, w;
635
+ int o, k, w;
679
636
 
680
637
  *wave_id = -1;
681
638
  amp_hz_per_m[0] = 0.0f;
@@ -685,10 +642,19 @@ void pulseg__block_wave(
685
642
  if (w < 0)
686
643
  return;
687
644
 
688
- scale = wave_scale(desc, &desc->block_table[block_idx]);
645
+ bte = &desc->block_table[block_idx];
689
646
  wave = &desc->waves[w];
690
- for (d = 0; d < 3; ++d)
691
- amp_hz_per_m[d] = scale * wave->peak[d];
647
+ if (!pulseg__block_combination(desc, bte, &played))
648
+ return;
649
+ scale = wave_scale(desc, bte);
650
+ for (o = 0; o < 3; ++o)
651
+ {
652
+ k = pulseg__wave_board_axis(wave, o, direction);
653
+ if (k < 0)
654
+ continue;
655
+ amp_hz_per_m[o] = scale * played.rotation[o * 3 + k] * played.ratio[k] /
656
+ (wave->rotation[o * 3 + k] * wave->ratio[k]) * wave->peak[o];
657
+ }
692
658
  *wave_id = w;
693
659
  }
694
660
 
@@ -24,11 +24,13 @@ namespace
24
24
  {
25
25
 
26
26
  /* What makes two blocks play the same wave: the definitions and shapes of
27
- * their three axes, their rotation, and their amplitude ratios to
28
- * PULSEG_WAVE_RATIO_STEP. */
27
+ * their three axes and, on each output axis, the direction of the weights
28
+ * the logical axes reach it with, to PULSEG_WAVE_RATIO_STEP. The rotation
29
+ * itself is not part of it: a turn that only rescales an output axis plays
30
+ * the same waveform there at another amplitude. */
29
31
  struct WaveKey
30
32
  {
31
- int v[10];
33
+ int v[15];
32
34
  bool operator==(const WaveKey &other) const
33
35
  {
34
36
  return std::memcmp(v, other.v, sizeof(v)) == 0;
@@ -40,7 +42,7 @@ struct WaveKeyHash
40
42
  std::size_t operator()(const WaveKey &key) const
41
43
  {
42
44
  std::size_t h = 1469598103934665603ull;
43
- for (int i = 0; i < 10; ++i)
45
+ for (int i = 0; i < 15; ++i)
44
46
  {
45
47
  h ^= static_cast<std::size_t>(static_cast<unsigned>(key.v[i]));
46
48
  h *= 1099511628211ull;
@@ -63,9 +65,15 @@ bool wave_of_block(
63
65
  {
64
66
  key.v[d] = wave.grad_def[d];
65
67
  key.v[3 + d] = wave.shape_id[d];
66
- key.v[7 + d] = static_cast<int>(std::lround(wave.ratio[d] / PULSEG_WAVE_RATIO_STEP));
67
68
  }
68
- key.v[6] = wave.rotation_id;
69
+ for (int o = 0; o < 3; ++o)
70
+ {
71
+ float direction[3];
72
+ pulseg__wave_board_axis(&wave, o, direction);
73
+ for (int d = 0; d < 3; ++d)
74
+ key.v[6 + 3 * o + d] =
75
+ static_cast<int>(std::lround(direction[d] / PULSEG_WAVE_RATIO_STEP));
76
+ }
69
77
  return true;
70
78
  }
71
79
 
@@ -347,6 +347,7 @@ def packets(
347
347
  one shot of ``shot`` seconds each, form a packet, the slices are dealt
348
348
  round-robin into packets, and the last shot of a packet is padded to the
349
349
  cycle on the block raster. Without a cycle one packet holds every slice.
350
+ Each cycle is a whole number of block rasters.
350
351
  """
351
352
  per_packet = n_slices if cycle is None else max(1, int(cycle / shot + 1e-9))
352
353
  count = -(-n_slices // per_packet)
@@ -354,7 +355,10 @@ def packets(
354
355
  if cycle is None:
355
356
  cycle = max(sizes) * shot
356
357
  return sizes, [
357
- size * shot + pp.round_to_raster(cycle - size * shot, raster) for size in sizes
358
+ pp.round_to_raster(
359
+ size * shot + pp.round_to_raster(cycle - size * shot, raster), raster
360
+ )
361
+ for size in sizes
358
362
  ]
359
363
 
360
364
 
@@ -0,0 +1,50 @@
1
+ """Small synthetic sequences for tests that need one readout geometry exactly."""
2
+
3
+ import math
4
+
5
+ import pypulseqpp as pp
6
+
7
+ SAMPLES = 32
8
+ DELTA_K = 5.0 # 1/m: a 0.2 m field of view
9
+
10
+
11
+ def add_readout(seq, *labels, rotation=None, moving=True):
12
+ """Append a symmetric readout along x, rewound on both sides so k returns to zero."""
13
+ system = pp.Opts()
14
+ gx = pp.make_trapezoid(
15
+ "x", flat_area=SAMPLES * DELTA_K, flat_time=3.2e-3, system=system
16
+ )
17
+ adc = pp.make_adc(
18
+ num_samples=SAMPLES, duration=3.2e-3, delay=gx.rise_time, system=system
19
+ )
20
+ if not moving:
21
+ seq.add_block(adc, *labels)
22
+ return
23
+ rewinder = pp.make_trapezoid("x", area=-gx.area / 2, duration=1e-3, system=system)
24
+ extra = () if rotation is None else (rotation,)
25
+ seq.add_block(rewinder, *extra)
26
+ seq.add_block(gx, adc, *labels, *extra)
27
+ seq.add_block(rewinder, *extra)
28
+
29
+
30
+ def write_swept_spokes(path, system, spokes=16):
31
+ """Spokes turned about z, each with a y lobe of another shape under its x lobe.
32
+
33
+ Each turn mixes two shapes on each board, so every repetition plays a
34
+ waveform of its own there, and two slots per position hold less than all of
35
+ them.
36
+ """
37
+ gx = pp.make_trapezoid("x", flat_area=64 / 0.22, flat_time=3.2e-3, system=system)
38
+ gy = pp.make_trapezoid(
39
+ "y", area=gx.area / 8, duration=pp.calc_duration(gx), system=system
40
+ )
41
+ adc = pp.make_adc(64, duration=3.2e-3, delay=gx.rise_time, system=system)
42
+ pulse = pp.make_block_pulse(
43
+ math.pi / 12, duration=1e-3, use="excitation", system=system
44
+ )
45
+ seq = pp.Sequence(system)
46
+ for spoke in range(spokes):
47
+ seq.add_block(pulse)
48
+ seq.add_block(gx, gy, adc, pp.make_rotation(math.pi * (spoke + 0.5) / spokes))
49
+ seq.add_block(pp.make_delay(2e-3))
50
+ seq.write(str(path))
@@ -8,6 +8,7 @@ from pathlib import Path
8
8
  import numpy as np
9
9
  import pypulseqpp as pp
10
10
  import pytest
11
+ from _synthetic import write_swept_spokes
11
12
  from conftest import LABELS, VENDOR
12
13
  from pypulseqpp import sequences
13
14
 
@@ -582,11 +583,21 @@ def _vendor_cache(seq, budget):
582
583
  )
583
584
 
584
585
 
585
- @pytest.mark.parametrize("max_samples", [10**6, 3000])
586
+ def _swept(directory, mode):
587
+ """Spokes whose waves memory holds at once, or must stream, and that memory."""
588
+ seq = directory / "swept_spokes.seq"
589
+ write_swept_spokes(seq, SYSTEM)
590
+ convert(seq, SYSTEM)
591
+ plan = ir.plan_waves(seq, ir.WaveBudget(10**6, 4.0))
592
+ budget = 10**6 if mode == "resident" else max(plan["streamed_samples"])
593
+ return seq, budget
594
+
595
+
596
+ @pytest.mark.parametrize("mode", ["resident", "streamed"])
586
597
  def test_the_scanner_reader_reads_the_layout_the_host_gave_the_waves(
587
- max_samples, tmp_path, scanner_reader
598
+ mode, tmp_path, scanner_reader
588
599
  ):
589
- seq = _copy("zte_3d.seq", tmp_path)
600
+ seq, max_samples = _swept(tmp_path, mode)
590
601
  cache = _vendor_cache(seq, ir.WaveBudget(max_samples, 4.0))
591
602
  printed = subprocess.run(
592
603
  [
@@ -605,7 +616,7 @@ def test_the_scanner_reader_reads_the_layout_the_host_gave_the_waves(
605
616
  # This build loads vendor-neutral caches alone.
606
617
  convert(seq, SYSTEM)
607
618
  plan = ir.plan_waves(seq, ir.WaveBudget(max_samples, 4.0))
608
- assert plan["mode"] == ("resident" if max_samples == 10**6 else "streamed")
619
+ assert plan["mode"] == mode
609
620
  assert printed[first:last] == _plan_lines(plan)
610
621
 
611
622
 
@@ -637,11 +648,11 @@ def _playout_lines(record):
637
648
  return lines
638
649
 
639
650
 
640
- @pytest.mark.parametrize("max_samples", [10**6, 3000])
651
+ @pytest.mark.parametrize("mode", ["resident", "streamed"])
641
652
  def test_the_scanner_reader_plays_the_waves_as_the_host_records_them(
642
- max_samples, tmp_path, scanner_reader
653
+ mode, tmp_path, scanner_reader
643
654
  ):
644
- seq = _copy("zte_3d.seq", tmp_path)
655
+ seq, max_samples = _swept(tmp_path, mode)
645
656
  cache = _vendor_cache(seq, ir.WaveBudget(max_samples, 4.0))
646
657
  printed = subprocess.run(
647
658
  [
@@ -659,7 +670,7 @@ def test_the_scanner_reader_plays_the_waves_as_the_host_records_them(
659
670
  # This build loads vendor-neutral caches alone.
660
671
  convert(seq, SYSTEM)
661
672
  record = ir.playout(seq, ir.WaveBudget(max_samples, 4.0))
662
- assert record["mode"] == ("resident" if max_samples == 10**6 else "streamed")
673
+ assert record["mode"] == mode
663
674
  assert printed[first:] == _playout_lines(record)
664
675
 
665
676
 
@@ -6,6 +6,7 @@ from pathlib import Path
6
6
  import numpy as np
7
7
  import pypulseqpp as pp
8
8
  import pytest
9
+ from _synthetic import write_swept_spokes
9
10
 
10
11
  from pulserver import ir
11
12
  from pulserver.ir import Prescan, WaveBudget
@@ -25,13 +26,17 @@ SYSTEM = pp.Opts(
25
26
  # A playout raster other than the files', as a scanner's may be.
26
27
  RASTER_US = 4.0
27
28
  LOTS = 10**6
28
- #: Fixtures whose waves a smaller memory streams.
29
- WAVED = ["zte_3d.seq", "mprage_stack_of_spirals_3d.seq"]
30
- NAMES = ["gre_2d_3sl.seq", "epi_2d_main.seq", *WAVED]
29
+ #: A sequence written by :func:`write_swept_spokes` rather than read from the fixtures.
30
+ SWEPT = "swept_spokes.seq"
31
+ #: Sequences whose waves a smaller memory streams.
32
+ WAVED = [SWEPT, "mprage_stack_of_spirals_3d.seq"]
33
+ NAMES = ["gre_2d_3sl.seq", "epi_2d_main.seq", "zte_3d.seq", *WAVED]
31
34
 
32
35
 
33
36
  def _converted(name, directory):
34
37
  shutil.copytree(FIXTURES, directory, dirs_exist_ok=True)
38
+ if name == SWEPT:
39
+ write_swept_spokes(directory / name, SYSTEM)
35
40
  ir.convert(directory / name, SYSTEM)
36
41
  return directory / name
37
42
 
@@ -200,9 +205,7 @@ def test_nothing_is_read_before_it_is_loaded_or_loaded_over_what_plays(played):
200
205
 
201
206
  # Three slots per position of the stack of spirals take more memory than
202
207
  # every wave at once, which is then how a playout holds them.
203
- @pytest.mark.parametrize(
204
- ("name", "ring"), [(name, 2) for name in WAVED] + [("zte_3d.seq", 3)]
205
- )
208
+ @pytest.mark.parametrize(("name", "ring"), [(name, 2) for name in WAVED] + [(SWEPT, 3)])
206
209
  def test_the_instances_of_a_segment_play_the_slots_of_its_ring_in_turn(
207
210
  name, ring, tmp_path
208
211
  ):
@@ -235,7 +238,7 @@ def test_the_instances_of_a_segment_play_the_slots_of_its_ring_in_turn(
235
238
  def test_without_a_budget_the_playout_holds_the_waves_as_the_cache_lays_them_out(
236
239
  tmp_path,
237
240
  ):
238
- seq = _converted("zte_3d.seq", tmp_path)
241
+ seq = _converted(SWEPT, tmp_path)
239
242
  budget = _budgets(seq, 3)["streamed"]
240
243
  ir.convert(seq, SYSTEM, wave_budget=budget)
241
244
  stored = ir.playout(seq)
@@ -401,7 +404,7 @@ def test_the_prescan_waits_for_no_trigger_and_pulses_no_output(tmp_path):
401
404
  def test_waves_that_cannot_be_loaded_in_time_are_refused_before_anything_plays(
402
405
  tmp_path,
403
406
  ):
404
- seq = _converted("zte_3d.seq", tmp_path)
407
+ seq = _converted(SWEPT, tmp_path)
405
408
  streamed = _budgets(seq)["streamed"]
406
409
  slow = WaveBudget(streamed.max_samples, RASTER_US, load_us_per_sample=1e3)
407
410
  with pytest.raises(ValueError, match="loading"):