blochsimulator 2.9.1__tar.gz → 2.9.2__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 (232) hide show
  1. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/CHANGELOG.md +142 -0
  2. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/MANIFEST.in +1 -0
  3. {blochsimulator-2.9.1/src/blochsimulator.egg-info → blochsimulator-2.9.2}/PKG-INFO +31 -1
  4. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/README.md +30 -0
  5. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/pyproject.toml +8 -2
  6. blochsimulator-2.9.2/rfpulses/AHP_5ms_Hsn.json +1 -0
  7. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/__init__.py +1 -1
  8. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/bloch_wrapper.c +194 -194
  9. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/bloch_wrapper_strict.c +194 -194
  10. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/dynamic_bloch_wrapper.c +194 -194
  11. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/dynamic_phantom.py +26 -2
  12. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/dynamic_spin_major_wrapper.c +194 -194
  13. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/mouse_phantom.py +41 -3
  14. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/notebook_exporter.py +5 -3
  15. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/phantom_design.py +13 -3
  16. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/phantom_loop.py +4 -1
  17. blochsimulator-2.9.2/src/blochsimulator/phantom_polarization.py +66 -0
  18. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/phantom_widget.py +17 -7
  19. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/project_io.py +1 -0
  20. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/pulse_loader.py +38 -14
  21. blochsimulator-2.9.2/src/blochsimulator/rfpulses/AHP_5ms_Hsn.dat +1024 -0
  22. blochsimulator-2.9.2/src/blochsimulator/rfpulses/AHP_5ms_Hsn.json +1 -0
  23. blochsimulator-2.9.2/src/blochsimulator/rfpulses/__init__.py +1 -0
  24. blochsimulator-2.9.2/src/blochsimulator/rfpulses/bruker/13C_Ultimate_SPSP_Pulse_QuEMRT.exc +2502 -0
  25. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/__init__.py +38 -0
  26. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/acquisition.py +59 -6
  27. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/advanced_bssfp_builders.py +49 -11
  28. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/encoding.py +47 -0
  29. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/image_export.py +14 -3
  30. blochsimulator-2.9.2/src/blochsimulator/sequence/measured_fid.py +543 -0
  31. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/pulseq_builders.py +137 -37
  32. blochsimulator-2.9.2/src/blochsimulator/sequence/receiver.py +458 -0
  33. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/reconstruction.py +36 -0
  34. blochsimulator-2.9.2/src/blochsimulator/sequence/reference_scan.py +257 -0
  35. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/result.py +41 -7
  36. blochsimulator-2.9.2/src/blochsimulator/sequence/signal_units.py +183 -0
  37. blochsimulator-2.9.2/src/blochsimulator/sequence/snr_budget.py +600 -0
  38. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/simulator.py +67 -44
  39. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/dialogs.py +18 -0
  40. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/magnetization_viewer.py +162 -146
  41. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/main_window.py +103 -76
  42. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/mouse_phantom_designer.py +84 -28
  43. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/phantom_designer.py +37 -3
  44. blochsimulator-2.9.2/src/blochsimulator/ui/receiver_noise.py +967 -0
  45. blochsimulator-2.9.2/src/blochsimulator/ui/receiver_noise_preview.py +270 -0
  46. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/reconstruction_explorer.py +337 -111
  47. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/sequence_designer.py +129 -5
  48. blochsimulator-2.9.2/src/blochsimulator/ui/sequence_geometry_viewer.py +1376 -0
  49. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/sequence_simulation_widget.py +820 -235
  50. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/widgets.py +16 -0
  51. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/units.py +53 -0
  52. {blochsimulator-2.9.1 → blochsimulator-2.9.2/src/blochsimulator.egg-info}/PKG-INFO +31 -1
  53. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator.egg-info/SOURCES.txt +20 -0
  54. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_advanced_bssfp_builders.py +69 -0
  55. blochsimulator-2.9.2/tests/test_custom_pulse.py +85 -0
  56. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_dynamic_native_plan.py +53 -0
  57. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_dynamic_phantom.py +7 -1
  58. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_dynamic_spin_major.py +30 -0
  59. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_gui_smoke.py +108 -49
  60. blochsimulator-2.9.2/tests/test_measured_fid.py +381 -0
  61. blochsimulator-2.9.2/tests/test_phantom_display_units.py +386 -0
  62. blochsimulator-2.9.2/tests/test_pulse_loader.py +106 -0
  63. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_pulseq_builders.py +327 -1
  64. blochsimulator-2.9.2/tests/test_receiver_noise.py +908 -0
  65. blochsimulator-2.9.2/tests/test_receiver_noise_gui.py +1012 -0
  66. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_reconstruction_explorer.py +44 -0
  67. blochsimulator-2.9.2/tests/test_reference_scan.py +280 -0
  68. blochsimulator-2.9.2/tests/test_sequence_geometry_viewer.py +708 -0
  69. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_sequence_gui.py +44 -1
  70. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_sequence_simulation.py +43 -1
  71. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_sequence_workspace_features.py +58 -17
  72. blochsimulator-2.9.2/tests/test_signal_units.py +156 -0
  73. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_spectral_phantom_design.py +2 -2
  74. blochsimulator-2.9.1/src/blochsimulator/rfpulses/__init__.py +0 -1
  75. blochsimulator-2.9.1/src/blochsimulator/ui/sequence_geometry_viewer.py +0 -551
  76. blochsimulator-2.9.1/tests/test_sequence_geometry_viewer.py +0 -137
  77. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/LICENSE +0 -0
  78. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/examples/spin_echo_analysis.ipynb +0 -0
  79. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/examples/spin_echo_analysis_data.h5 +0 -0
  80. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/examples/spin_echo_reproduction.ipynb +0 -0
  81. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/requirements.txt +0 -0
  82. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/rfpulses/.DS_Store +0 -0
  83. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/rfpulses/AHP_5ms_Hsn.dat +0 -0
  84. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/rfpulses/SLR_sharpness_1.txt +0 -0
  85. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/rfpulses/SLR_sharpness_5.txt +0 -0
  86. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/rfpulses/bruker/13C_Ultimate_SPSP_Pulse_QuEMRT.exc +0 -0
  87. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/setup.cfg +0 -0
  88. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/setup.py +0 -0
  89. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/adaptive.py +0 -0
  90. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/b1_fields.py +0 -0
  91. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/bloch_core.h +0 -0
  92. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/bloch_core_modified.c +0 -0
  93. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/bloch_core_strict.c +0 -0
  94. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/bloch_wrapper.pyx +0 -0
  95. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/bloch_wrapper_strict.pyx +0 -0
  96. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/default_phantoms.py +0 -0
  97. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/dynamic_bloch_wrapper.pyx +0 -0
  98. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/dynamic_execution.py +0 -0
  99. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/dynamic_spin_major.c +0 -0
  100. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/dynamic_spin_major.h +0 -0
  101. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/dynamic_spin_major_wrapper.pyx +0 -0
  102. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/gradient_lobes.py +0 -0
  103. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/gui.py +0 -0
  104. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/gui_phantom_integration.py +0 -0
  105. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/kernel_capabilities.py +0 -0
  106. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/kspace.py +0 -0
  107. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/kspace_widget.py +0 -0
  108. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/memory.py +0 -0
  109. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/metabolite_presets.py +0 -0
  110. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/paths.py +0 -0
  111. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/phantom.py +0 -0
  112. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/position_sampling.py +0 -0
  113. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/project_naming.py +0 -0
  114. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/rfpulses/SLR_sharpness_1.txt +0 -0
  115. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/rfpulses/SLR_sharpness_5.txt +0 -0
  116. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/bruker_export.py +0 -0
  117. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/bruker_jcamp.py +0 -0
  118. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/bruker_pdata.py +0 -0
  119. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/bssfp_phase.py +0 -0
  120. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/compiler.py +0 -0
  121. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/convergence.py +0 -0
  122. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/convergence_suite.py +0 -0
  123. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/dicom_export.py +0 -0
  124. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/export_bundle.py +0 -0
  125. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/flip_angles.py +0 -0
  126. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/internal_fid.py +0 -0
  127. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/model.py +0 -0
  128. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/nifti_export.py +0 -0
  129. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/parameter_loop.py +0 -0
  130. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/paravision.py +0 -0
  131. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/probe.py +0 -0
  132. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/pulseq.py +0 -0
  133. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/reference.py +0 -0
  134. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/rf_pulses.py +0 -0
  135. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/scanner.py +0 -0
  136. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/spectral_spatial.py +0 -0
  137. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/spin_sampling.py +0 -0
  138. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/sequence/spoiling.py +0 -0
  139. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/slice_explorer.py +0 -0
  140. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/spectral_phantom.py +0 -0
  141. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/__init__.py +0 -0
  142. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/b1_widgets.py +0 -0
  143. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/controls.py +0 -0
  144. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/default_settings.py +0 -0
  145. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/metabolite_excitation_plan.py +0 -0
  146. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/parameter_sweep.py +0 -0
  147. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/plot_interaction.py +0 -0
  148. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/probe_viewers.py +0 -0
  149. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/project_explorer.py +0 -0
  150. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/project_export_dialog.py +0 -0
  151. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/rf_pulse_designer.py +0 -0
  152. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/sequence_diagram.py +0 -0
  153. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/sequence_export_dialog.py +0 -0
  154. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/simulation_explorer.py +0 -0
  155. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/spectral_spatial_designer.py +0 -0
  156. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/styles.py +0 -0
  157. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/threads.py +0 -0
  158. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/tissue_parameters.py +0 -0
  159. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/tutorial_manager.py +0 -0
  160. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/tutorial_overlay.py +0 -0
  161. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/ui/volume_viewer.py +0 -0
  162. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator/visualization.py +0 -0
  163. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator.egg-info/dependency_links.txt +0 -0
  164. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator.egg-info/entry_points.txt +0 -0
  165. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator.egg-info/not-zip-safe +0 -0
  166. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator.egg-info/requires.txt +0 -0
  167. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/src/blochsimulator.egg-info/top_level.txt +0 -0
  168. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_b1_fields.py +0 -0
  169. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_benchmarks.py +0 -0
  170. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_cartesian_acquisition.py +0 -0
  171. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_csi_acquisition.py +0 -0
  172. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_csi_sequence.py +0 -0
  173. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_default_phantoms.py +0 -0
  174. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_dependencies.py +0 -0
  175. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_dynamic_3d_bssfp.py +0 -0
  176. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_dynamic_chemical_shift_maps.py +0 -0
  177. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_dynamic_chunking.py +0 -0
  178. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_dynamic_execution_plan.py +0 -0
  179. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_dynamic_precision_validator.py +0 -0
  180. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_dynamic_spin_major_multi_pool.py +0 -0
  181. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_dynamic_spin_major_rf_cache_multi_pool.py +0 -0
  182. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_encoding_frame.py +0 -0
  183. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_ernst_angle.py +0 -0
  184. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_export.py +0 -0
  185. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_export_simple.py +0 -0
  186. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_flash_flip_angle_sweep.py +0 -0
  187. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_free_mode_sampling.py +0 -0
  188. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_frequency_offsets.py +0 -0
  189. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_gradient_lobes.py +0 -0
  190. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_input_shapes.py +0 -0
  191. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_internal_fid.py +0 -0
  192. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_kernel_capabilities.py +0 -0
  193. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_memory_limits.py +0 -0
  194. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_metabolite_excitation_plan.py +0 -0
  195. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_metabolite_presets.py +0 -0
  196. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_mouse_phantom.py +0 -0
  197. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_notebook_examples.py +0 -0
  198. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_notebook_export.py +0 -0
  199. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_notebook_reproduction.py +0 -0
  200. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_numerical_contracts.py +0 -0
  201. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_parameter_loop_disk.py +0 -0
  202. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_phantom_loop.py +0 -0
  203. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_plot_interaction.py +0 -0
  204. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_position_sampling.py +0 -0
  205. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_probe_frequency_tracking.py +0 -0
  206. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_probe_longitudinal_equilibrium.py +0 -0
  207. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_project_explorer.py +0 -0
  208. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_project_io.py +0 -0
  209. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_project_naming.py +0 -0
  210. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_pulseq_import.py +0 -0
  211. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_rf_pulses.py +0 -0
  212. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_scanner_settings.py +0 -0
  213. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_sequence_convergence_suite.py +0 -0
  214. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_sequence_edit_confirmation.py +0 -0
  215. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_sequence_export_formats.py +0 -0
  216. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_sequence_model.py +0 -0
  217. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_sequence_parameter_loop.py +0 -0
  218. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_sequence_reference.py +0 -0
  219. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_session_simulation_explorer.py +0 -0
  220. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_slice_explorer_memory.py +0 -0
  221. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_slice_selection.py +0 -0
  222. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_spatial_magnetization_viewer.py +0 -0
  223. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_spectral_selective_3d_bssfp.py +0 -0
  224. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_spectral_spatial_pulses.py +0 -0
  225. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_spectral_spatial_schedule.py +0 -0
  226. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_spinbox_wheel.py +0 -0
  227. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_spoiler_train_analysis.py +0 -0
  228. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_spoiling_validation.py +0 -0
  229. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_ssfp_sequence.py +0 -0
  230. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_timestep_convergence.py +0 -0
  231. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_variable_flip_angle.py +0 -0
  232. {blochsimulator-2.9.1 → blochsimulator-2.9.2}/tests/test_visualization_export.py +0 -0
@@ -6,6 +6,148 @@ The project follows [Semantic Versioning](https://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [2.9.2] - 2026-10-22
10
+
11
+ ### Added
12
+
13
+ - Receiver noise calibration and SNR budget with a reference scan model
14
+ (saturation, T2* decay, coil fields) and loading of measured FID and noise
15
+ scans.
16
+ - Reconstruction Explorer: larger layout, geometry sections, designer starting
17
+ from a default sphere, voxel Spectrum/FID/time-course view.
18
+ - Geometry tab: live preview from the form, ETA and contrast, draggable FOV and
19
+ slice package, read/phase FOV offsets for all generated sequences.
20
+ - Free Mode: repetitions, global B1/gradient field arrows, gradient integral
21
+ of extra lobes, Labels checkbox in the 3D vector view.
22
+ - Dynamic simulations on the native RF raster.
23
+
24
+ ### Changed
25
+
26
+ - The RF pulse library ships as package data.
27
+
28
+ ### Fixed
29
+
30
+ - Mouse designer polarization for legacy values and rebased nuclei.
31
+ - Simulation ETA, AHP library pulse amplitude units, decimal pulse durations
32
+ in amp/phase file names, CustomPulse duration/flip angle on resampling.
33
+
34
+ ### Added
35
+
36
+ - The Mouse Phantom Designer accepts absolute polarization in percent, with
37
+ the thermal multiple shown alongside it using nucleus, B0 and a saved
38
+ temperature; mouse injections use mM × µl with a derived µmol dose and
39
+ polarized amount, and legacy dose-only files retain their amount without an
40
+ inferred recipe. The spectral Phantom Designer keeps "× thermal" and gains
41
+ a sample temperature with the thermal polarization it stands for. Calibrated
42
+ noise and physical signal display use the phantom's explicit temperature
43
+ when available.
44
+ - Settings → Interface offers persistent Sequence signal units: physical
45
+ fully polarized amounts (mol with SI prefixes, by default) or SNR units
46
+ (noise σ = 1 per quadrature). Existing results redraw immediately across
47
+ signal, Cartesian frame/volume, CSI and split views; spiral images use a
48
+ labelled per-frame noise estimate. The reference FID follows SNR units with
49
+ ±1 noise lines. Missing calibration/noise metadata falls back explicitly to
50
+ simulation units; live previews retain simulation units.
51
+ - Sequence Mode receiver noise from a relative SNR or a `ReceiverCalibration`
52
+ from a measured phantom FID (concentration in mM, volume in ml, averages,
53
+ bandwidth, flip angle, enrichment, temperatures and a loading noise factor),
54
+ reproducible seeds, and new realizations without rerunning Bloch
55
+ simulation. Relative SNR is the single-scan SNR of the ideal 90° FID of the
56
+ whole object (initial magnetization plus any delivered bolus dose) at a
57
+ reference bandwidth, so it is independent of grid and signal weighting; runs
58
+ record that amplitude as `receiver_acquisition["ideal_fid_amplitude"]`.
59
+ Noise scales with √(bandwidth) per ADC event; calibrated noise also with
60
+ √(averages) of the reference scan. Projects and result exports retain the
61
+ clean ADC stream and receiver settings.
62
+ - `units.thermal_polarization(nucleus, field_strength_t, temperature_k)`
63
+ returns the Boltzmann polarization for spin-1/2 and higher-spin nuclei.
64
+ - Receiver / Noise has its own tab between Phantom + B1 and Simulations with
65
+ an SNR budget instead of example images: reference phantom (nuclei,
66
+ polarization, sensitivity per µmol), ideal whole-object FID SNR, SNR per
67
+ readout bandwidth, image-voxel shares of the object and, after a run, the
68
+ matched-filter SNR (also per species) with a sum-rule estimate for the
69
+ brightest voxel. A reference FID draws the setting with ±σ. Entered
70
+ calibration values are previewed before they are set.
71
+ - The relative SNR and measured noise std support adaptive spin-box arrows and
72
+ scientific notation.
73
+ - An optional reference scan model in the receiver calibration describes how
74
+ the phantom FID was measured: T1 saturation from TR, dummy scans and
75
+ averages, T2* decay until the measured point, and the B1 workspace coil
76
+ sampled over a sphere or cylinder at the phantom position. Its amplitude per
77
+ ideal 90° FID (`ReceiverCalibration.signal_efficiency`, from
78
+ `reference_signal_efficiency`) replaces sin α, so a saturated, decayed or
79
+ off-centre reference no longer reads as lower receiver sensitivity. The SNR
80
+ budget lists the factor and its inputs; runs reject a coil-dependent
81
+ calibration for an object without B1 maps.
82
+ - **Load FID…** and **Load noise scan…** fill the receiver calibration from
83
+ measured data. They read ParaVision 1-D raw data (`fid` or `rawdata.job0`
84
+ with `acqp`, integer or float, either byte order) or complex arrays
85
+ (`.npy`, `.txt`, `.csv`, `.dat`). The FID amplitude is extrapolated through
86
+ the digital-filter group delay with T2*. The noise std comes from a
87
+ matching 0° noise scan (same NA, receiver gain and bandwidth) or the FID
88
+ tail. Averages, bandwidth, flip angle, TR, dummy scans and the amplitude
89
+ delay come from the scan parameters, and warnings flag a non-white tail or
90
+ low SNR (`sequence.measured_fid`). **Set calibration** refuses a loaded FID
91
+ of another nucleus or field strength.
92
+ - The Geometry tab colours the object by the phantom property with the
93
+ largest spatial differences: anatomy labels or dominant species regions
94
+ first, otherwise the widest map (concentration, T1/T2, kPL, delivery,
95
+ shifts, B0, ...). A selector overrides the automatic choice and the summary
96
+ shows a legend.
97
+ - The Geometry tab follows FOV, matrix and slice edits in the sequence form
98
+ without generating the sequence; the last generated placement stays as a
99
+ dotted outline. A notice says that timing and k-space are not regenerated
100
+ yet and offers to generate the sequence.
101
+ - Generated FLASH takes read and phase offsets that move the FOV centre in
102
+ the sequence itself: the ADC frequency offset shifts the read FOV and the
103
+ receiver phase per phase-encoding step shifts the phase FOV, so the
104
+ exported `.seq` carries them too (`ReadOffset`/`PhaseOffset` definitions).
105
+ Image coordinates, DICOM, NIfTI and Bruker export, the Geometry tab and its
106
+ coverage notes follow the shifted centre.
107
+ - EPI, EPSI, CSI, 3D bSSFP, SS-bSSFP and ME-bSSFP take read and phase offsets
108
+ the same way: Cartesian readouts shift the ADC frequency (reversed lobes
109
+ with the opposite sign) and the receiver phase, CSI ramps the phase of its
110
+ encoding steps. Spiral and 3D radial readouts store the offsets with
111
+ `OffsetEncoding = reconstruction`; their reconstruction applies the
112
+ matching k-space phase ramp before gridding. Every sequence form has Read
113
+ offset and Phase offset fields, and the Geometry tab previews them.
114
+ - The FOV and slice package can be dragged in the Geometry tab views: the
115
+ drag maps to read, phase and slice offsets through the sequence frame,
116
+ snaps to 0.1 mm, shows the shift while dragging and fills the sequence form
117
+ (the live preview follows). Shift keeps the largest axis only, a right
118
+ click cancels, and dragging outside the FOV still pans the view.
119
+
120
+ ### Changed
121
+
122
+ - Sequence-mode ETA now uses cumulative post-compilation throughput, preventing
123
+ individual uneven work chunks from causing abrupt remaining-time changes.
124
+
125
+ ### Fixed
126
+
127
+ - 3D radial image coordinates and exported positions sat half a voxel off:
128
+ voxel N // 2 holds the FOV centre, as the reconstruction places it.
129
+ - The Sequence-mode ETA counts completed voxels instead of a misscaled chunk
130
+ count and gets an early run rate from a small first chunk, so it no longer
131
+ jumps or stalls. Progress, elapsed and remaining time share one line.
132
+ - `CustomPulse.compile` keeps the duration and flip angle of loaded pulses on
133
+ any raster (a 1 ms hard pulse resampled to 3 us rotated by 89.4 instead of
134
+ 90 deg) and resamples custom gradients together with B1.
135
+ - Dynamic sequence simulations with `simulation_timestep_s=None` (native RF
136
+ raster) no longer fail while writing the result metadata.
137
+ - Library pulse names such as `load_pulse("bruker/13C_Ultimate_SPSP_Pulse_QuEMRT")`
138
+ and `CustomPulse("AHP_5ms_Hsn")` resolve in source checkouts and pip
139
+ installs. The `.exc`/`.dat` pulses now ship as package data; before, only
140
+ the PyInstaller app contained them.
141
+ - `load_amp_phase_dat` reads decimal durations from file names: `pulse_2.5ms.dat`
142
+ lasted 5 ms and `HS_0.25MS.dat` 25 ms. The GUI import dialog always passes
143
+ its own duration and was not affected.
144
+ - The library pulse `AHP_5ms_Hsn` stores its amplitudes in percent and now
145
+ peaks at `max_b1_gauss` (1 G) instead of 100 G, by name and by file path.
146
+ A JSON file next to an amp/phase pulse (`AHP_5ms_Hsn.json`) records its
147
+ import options; `load_pulse_from_file` uses them for options it is not
148
+ given. The GUI import dialog asks for the unit and rescales to the flip
149
+ angle, so it was not affected.
150
+
9
151
  ## [2.9.1] - 2026-10-21
10
152
 
11
153
  ### Added
@@ -15,3 +15,4 @@ include examples/spin_echo_reproduction.ipynb
15
15
  include examples/spin_echo_analysis.ipynb
16
16
  include examples/spin_echo_analysis_data.h5
17
17
  recursive-include rfpulses *
18
+ recursive-include src/blochsimulator/rfpulses *.txt *.dat *.json *.exc
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: blochsimulator
3
- Version: 2.9.1
3
+ Version: 2.9.2
4
4
  Summary: High-performance Bloch equation simulator for MRI
5
5
  Author: Luca Nagel
6
6
  License: GPL-3.0-only
@@ -147,6 +147,36 @@ The time-resolved bevahiour of spins during and after RF Pulse can be visualized
147
147
 
148
148
  **Sequence Mode**
149
149
 
150
+ - Mouse Phantom Designer polarization inputs use absolute percent with the
151
+ thermal multiple alongside them, based on nucleus, B0 and temperature. Mouse
152
+ injections use mM × µl and show the resulting µmol dose and fully polarized
153
+ equivalent. New injections start at 80 mM × 250 µl (20 µmol) and
154
+ 10000 × thermal, 5.8 % at 7 T and 37 °C; older files retain their original
155
+ dose and relative-polarization values.
156
+ The spectral Phantom Designer keeps × thermal and shows the thermal
157
+ polarization at its sample temperature.
158
+ - **Receiver / Noise** adds reproducible complex noise from a relative SNR
159
+ (single-scan SNR of the ideal 90° FID of the whole object, including any
160
+ delivered bolus) or a calibration from a measured phantom FID: amplitude,
161
+ noise std, averages, bandwidth, flip angle, concentration (mM), volume (ml),
162
+ enrichment and temperature. Noise follows each ADC event's bandwidth, so a
163
+ thermal phantom scan predicts e.g. hyperpolarized in-vivo SNR. An optional
164
+ reference scan model corrects the calibration for T1 saturation, T2* decay
165
+ and the B1 workspace coil at the phantom position. **Load FID…** and
166
+ **Load noise scan…** read the ParaVision raw data or complex arrays of the
167
+ phantom FID and 0° noise scan directly. Its dedicated
168
+ tab between **Phantom + B1** and **Simulations** shows an SNR budget from
169
+ the receiver setting through the whole-object FID and each readout
170
+ bandwidth to the image voxels of the current object and last run. Clean ADC
171
+ data and noise settings are preserved in projects and result exports.
172
+ **Settings → Interface → Signal units** switches the current Sequence
173
+ plots between physical amounts (mol with automatic SI prefixes, calibrated
174
+ runs) and SNR units (noise σ = 1 per complex quadrature), without rerunning
175
+ the simulation. Cartesian/CSI FFTs preserve that noise normalization;
176
+ spiral images use a labelled estimate from their noise realization. Runs
177
+ without the required calibration or noise metadata show simulation units.
178
+ See [receiver calibration](docs/sequence_simulation_architecture.md#receiver-noise-and-phantom-calibration).
179
+
150
180
  Loaded and generated sequences can be inspected in a sequence viewer. A 3D phantom design viewer in addition to a 3D B1 design viewer are provided.
151
181
 
152
182
  - Experimental **export of simulated acquisitions as Bruker raw datasets**,
@@ -112,6 +112,36 @@ The time-resolved bevahiour of spins during and after RF Pulse can be visualized
112
112
 
113
113
  **Sequence Mode**
114
114
 
115
+ - Mouse Phantom Designer polarization inputs use absolute percent with the
116
+ thermal multiple alongside them, based on nucleus, B0 and temperature. Mouse
117
+ injections use mM × µl and show the resulting µmol dose and fully polarized
118
+ equivalent. New injections start at 80 mM × 250 µl (20 µmol) and
119
+ 10000 × thermal, 5.8 % at 7 T and 37 °C; older files retain their original
120
+ dose and relative-polarization values.
121
+ The spectral Phantom Designer keeps × thermal and shows the thermal
122
+ polarization at its sample temperature.
123
+ - **Receiver / Noise** adds reproducible complex noise from a relative SNR
124
+ (single-scan SNR of the ideal 90° FID of the whole object, including any
125
+ delivered bolus) or a calibration from a measured phantom FID: amplitude,
126
+ noise std, averages, bandwidth, flip angle, concentration (mM), volume (ml),
127
+ enrichment and temperature. Noise follows each ADC event's bandwidth, so a
128
+ thermal phantom scan predicts e.g. hyperpolarized in-vivo SNR. An optional
129
+ reference scan model corrects the calibration for T1 saturation, T2* decay
130
+ and the B1 workspace coil at the phantom position. **Load FID…** and
131
+ **Load noise scan…** read the ParaVision raw data or complex arrays of the
132
+ phantom FID and 0° noise scan directly. Its dedicated
133
+ tab between **Phantom + B1** and **Simulations** shows an SNR budget from
134
+ the receiver setting through the whole-object FID and each readout
135
+ bandwidth to the image voxels of the current object and last run. Clean ADC
136
+ data and noise settings are preserved in projects and result exports.
137
+ **Settings → Interface → Signal units** switches the current Sequence
138
+ plots between physical amounts (mol with automatic SI prefixes, calibrated
139
+ runs) and SNR units (noise σ = 1 per complex quadrature), without rerunning
140
+ the simulation. Cartesian/CSI FFTs preserve that noise normalization;
141
+ spiral images use a labelled estimate from their noise realization. Runs
142
+ without the required calibration or noise metadata show simulation units.
143
+ See [receiver calibration](docs/sequence_simulation_architecture.md#receiver-noise-and-phantom-calibration).
144
+
115
145
  Loaded and generated sequences can be inspected in a sequence viewer. A 3D phantom design viewer in addition to a 3D B1 design viewer are provided.
116
146
 
117
147
  - Experimental **export of simulated acquisitions as Bruker raw datasets**,
@@ -12,11 +12,17 @@ packages = [
12
12
  package-dir = {"" = "src"}
13
13
 
14
14
  [tool.setuptools.package-data]
15
- blochsimulator = ["rfpulses/*.txt"]
15
+ blochsimulator = [
16
+ "rfpulses/*.txt",
17
+ "rfpulses/*.dat",
18
+ "rfpulses/*.json",
19
+ "rfpulses/*.exc",
20
+ "rfpulses/bruker/*.exc",
21
+ ]
16
22
 
17
23
  [project]
18
24
  name = "blochsimulator"
19
- version = "2.9.1"
25
+ version = "2.9.2"
20
26
  description = "High-performance Bloch equation simulator for MRI"
21
27
  readme = "README.md"
22
28
  requires-python = ">=3.9"
@@ -0,0 +1 @@
1
+ {"amplitude_unit": "percent"}
@@ -1,4 +1,4 @@
1
- __version__ = "2.9.1"
1
+ __version__ = "2.9.2"
2
2
 
3
3
  from .simulator import (
4
4
  BlochSimulator,