pulserver 0.4.8__tar.gz → 0.4.10__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.
- {pulserver-0.4.8 → pulserver-0.4.10}/PKG-INFO +2 -2
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/developer-guide/internals/calibration.md +5 -4
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/explanations/reconstruction.md +5 -2
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/user-guide/reconstruction-client.md +1 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/user-guide/reconstruction-plugins.md +21 -9
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/user-guide/running.md +2 -1
- {pulserver-0.4.8 → pulserver-0.4.10}/pyproject.toml +1 -1
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/fse3d.py +9 -2
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/host/_server.py +27 -5
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/proxy/_seqdesc.py +13 -12
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/_calibration.py +18 -20
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/_runtime/mrd2dicom.py +27 -6
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/handlers/nufft.py +18 -16
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/handlers/pics.py +88 -19
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/handlers/pmc.py +25 -12
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon/test_calibration.py +3 -3
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon/test_mrd2dicom.py +56 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon/test_nufft.py +31 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon/test_pics.py +58 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon/test_pmc.py +26 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_design_server.py +28 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_seqdesc.py +34 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_zoo_evaluation.py +36 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.claude/skills/build-and-test/SKILL.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.claude/skills/write-documentation/SKILL.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.dockerignore +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.gitattributes +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.github/DISCUSSION_TEMPLATE/ideas.yml +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.github/DISCUSSION_TEMPLATE/q-a.yml +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.github/ISSUE_TEMPLATE/documentation.yml +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.github/dependabot.yml +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.github/workflows/codeql.yml +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.github/workflows/console.yml +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.github/workflows/docs.yml +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.github/workflows/fields.yml +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.github/workflows/image.yml +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.github/workflows/style.yml +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.github/workflows/tags-release.yml +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.github/workflows/test-ci.yml +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.github/workflows/wheels.yml +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.gitignore +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/.pre-commit-config.yaml +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/AGENTS.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/CMakeLists.txt +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/CODE_OF_CONDUCT.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/CONTRIBUTING.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/LICENSE +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/LICENSES/gadgetron-python-MIT.txt +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/LICENSES/python-ismrmrd-server-MIT.txt +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/NEXT.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/README.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/SECURITY.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/SKILLS.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/codecov.yml +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docker/Dockerfile +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docker/compose.yaml +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docker/entrypoint.sh +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docker/limits/limits.txt +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docker/smoke.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_static/architecture-dark.svg +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_static/architecture.svg +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_static/capabilities.js +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_static/context-dark.svg +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_static/context.svg +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_static/pulseg-dark.svg +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_static/pulseg.svg +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_static/pulserver-logo-dark.svg +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_static/pulserver-logo.svg +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_static/pulserver-mark-dark.svg +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_static/pulserver-mark.svg +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_static/pulserver.css +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_static/repetition-dark.svg +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_static/repetition.svg +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_static/safety-dark.svg +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_static/safety.svg +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_static/session-dark.svg +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_static/session.svg +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_static/virtual-dark.svg +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_static/virtual.svg +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_templates/autosummary/base.rst +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_templates/autosummary/class.rst +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_templates/autosummary/enum.rst +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/_templates/autosummary/function.rst +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/api/design.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/api/host.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/api/index.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/api/ir.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/api/mrd.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/api/protocol.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/api/proxy.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/api/recon.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/api/validate.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/api/virtual.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/api_objects.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/colab.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/conf.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/developer-guide/documentation.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/developer-guide/index.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/developer-guide/installation.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/developer-guide/internals/index.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/developer-guide/internals/ir-cache.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/developer-guide/internals/protocol-wire.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/developer-guide/internals/reconstruction-proxy.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/developer-guide/internals/sar-ratios.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/developer-guide/internals/virtual-scanner.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/developer-guide/releases.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/developer-guide/style.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/developer-guide/terminology.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/developer-guide/workflow.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/examples/course.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/examples/index.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/examples/tours.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/explanations/architecture.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/explanations/index.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/explanations/protocol.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/explanations/raw-data.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/explanations/reconstruction-session.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/explanations/safety-checks.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/explanations/scanner-representation.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/explanations/virtual-scanner.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/figure_style.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/index.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/misc/contributors.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/misc/index.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/misc/license.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/misc/related.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/user-guide/index.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/user-guide/scanner-sequences.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/docs/user-guide/virtual-scanner.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/gallery/01-course/01_protocol_to_image.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/gallery/01-course/02_sequence_plugin.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/gallery/01-course/03_scanner_representation.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/gallery/01-course/04_reconstruction_plugin.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/gallery/01-course/05_recon_plugin.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/gallery/01-course/06_testing_on_the_virtual_scanner.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/gallery/01-course/README.rst +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/gallery/01-course/_gallery_header.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/gallery/02-tours/01_protocol_resolution.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/gallery/02-tours/02_segmentation.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/gallery/02-tours/03_fov_offset_enrichment.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/gallery/02-tours/README.rst +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/gallery/02-tours/_gallery_header.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/gallery/README.rst +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/gallery/_gallery_header.md +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/scripts/build_docs.sh +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/scripts/check_throughput.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/scripts/format_and_lint.sh +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/scripts/make_artwork.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/scripts/publish_docs.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/setup.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/CMakeLists.txt +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/cache/pulseg_cache.c +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/core/pulseg_core.c +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/core/pulseg_error.c +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/core/pulseg_math.c +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/include/pulseg/pulseg.h +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/include/pulseg/pulseg_cache.h +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/include/pulseg/pulseg_collection.h +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/include/pulseg/pulseg_config.h +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/include/pulseg/pulseg_errors.h +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/include/pulseg/pulseg_io.h +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/include/pulseg/pulseg_playout.h +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/include/pulseg/pulseg_protocol.h +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/include/pulseg/pulseg_types.h +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/include/pulseq/pulseq.h +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/include/pulseq/pulseq_config.h +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/include/pulseq/pulseq_types.h +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/io/pulseg_opts.c +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/io/pulseg_protocol.c +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/playout/pulseg_playout.c +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/pulseg_internal.h +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/pulseq/pulseq_internal.h +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/pulseq/pulseq_shape.c +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/structure/pulseg_descriptor.c +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/structure/pulseg_getters.c +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/structure/pulseg_repetition.c +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/c/structure/pulseg_waves.c +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/cpp/fourier/bindings.cpp +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/cpp/fourier/bindings.hpp +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/cpp/fourier/parallel.hpp +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/cpp/fourier/timeline.cpp +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/cpp/fourier/timeline.hpp +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/cpp/ir/collection.cpp +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/cpp/ir/dedup.cpp +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/cpp/ir/from_libraries.cpp +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/cpp/ir/from_libraries.hpp +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/cpp/ir/gradient_stretch.cpp +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/cpp/ir/pulseg_convert.h +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/cpp/ir/pulseq_file.cpp +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/cpp/ir/pulseq_file.h +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/cpp/ir/structure.cpp +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/cpp/ir/wave_plan.cpp +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/cpp/ir/waves.cpp +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/cpp/module.cpp +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/cpp/native.hpp +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/cpp/playout.cpp +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/cpp/playout.hpp +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/__init__.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_accelerators.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_cli.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_labels.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_logs.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_memory.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_plugins.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/__init__.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/_evaluation.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/_inversion.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/_pmc.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/_saturation.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/_slab.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/_user.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/recon/epi.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/recon/nufft.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/recon/nufft_train.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/recon/pics.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/recon/pics_train.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/recon/pmc.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/bssfp2d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/bssfp3d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/epi2d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/epi3d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/gre2d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/gre3d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/gre_multiecho2d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/gre_multiecho3d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/gre_propeller2d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/gre_radial2d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/gre_spiral2d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/gre_stack_of_blades3d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/gre_stack_of_spirals3d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/gre_stack_of_stars3d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/mprage3d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/mprage_stack_of_spirals3d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/mprage_stack_of_stars3d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/se2d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/se3d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/se_epi_propeller2d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/se_propeller2d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/se_radial2d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/se_spiral2d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/se_stack_of_blades3d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/se_stack_of_spirals3d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/se_stack_of_stars3d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/_zoo/sequences/zte3d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/design/__init__.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/design/_entries.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/design/_options.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/design/_plugin.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/design/_rf.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/host/__init__.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/host/__main__.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/host/_blocks.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/host/_command.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/host/_limits.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/host/_push.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/host/_service.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/host/_store.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/ir/__init__.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/ir/_calibration.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/ir/_checks.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/ir/_convert.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/ir/_playout.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/ir/_source.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/ir/_vendor.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/ir/_waves.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/mrd/__init__.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/mrd/_acquisitions.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/mrd/_header.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/mrd/_images.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/mrd/_metadata.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/mrd/_sequence.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/protocol/__init__.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/protocol/_keys.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/protocol/_prescription.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/protocol/_schema.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/protocol/_wire.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/proxy/__init__.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/proxy/__main__.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/proxy/_designs.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/proxy/_enrich.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/proxy/_held.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/proxy/_intake.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/proxy/_local.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/proxy/_motion.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/proxy/_proxy.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/proxy/_queue.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/proxy/_receiver.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/proxy/_workers.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/__init__.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/__main__.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/_buffers.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/_correct.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/_exam_image.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/_figure.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/_loader.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/_replay.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/_runtime/__init__.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/_runtime/application.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/_runtime/concurrency.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/_runtime/connection.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/_runtime/constants.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/_runtime/exam.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/_runtime/offline.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/_runtime/readers.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/_runtime/writers.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/_units.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/gadgets.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/handlers/__init__.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/handlers/epi.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/handlers/nufft_train.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/handlers/pics_train.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/recon/plugin.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/validate/__init__.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/validate/_command.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/validate/_compare.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/validate/_validate.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/validate/_xml.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/virtual/__init__.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/virtual/_brainweb.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/virtual/_client.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/virtual/_coils.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/virtual/_command.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/virtual/_console.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/virtual/_export.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/virtual/_fourier.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/virtual/_girf.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/virtual/_localizer.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/virtual/_motion.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/virtual/_phantom.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/virtual/_stream.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/virtual/_timeline.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/src/pulserver/virtual/_tissue.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/_analytic.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/_host.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/_seqtext.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/_synthetic.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/_virtual.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/_zoo.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/conftest.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/fixtures/bloch/bssfp.npy +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/fixtures/bloch/epi_2d_main.npy +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/fixtures/bloch/gre_2d_3sl.npy +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/fixtures/bloch/steady_dess_hard_0hz.npy +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/fixtures/bloch/steady_dess_hard_30hz.npy +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/fixtures/bloch/steady_echo_hard_0hz.npy +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/fixtures/bloch/steady_echo_hard_30hz.npy +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/fixtures/bloch/steady_echo_selective_0hz.npy +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/fixtures/bloch/steady_fid_hard_0hz.npy +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/fixtures/sequences/dedup_gre_pair.seq +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/fixtures/sequences/dedup_gre_pair_b.seq +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/fixtures/sequences/epi_2d_main.seq +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/fixtures/sequences/gre_2d_3sl.seq +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/fixtures/sequences/mprage_stack_of_spirals_3d.seq +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/fixtures/sequences/zte_3d.seq +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/native/check_initializers.c +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/native/print_wave_samples.c +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/native/read_cache_summary.c +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/native/read_rf_definitions.c +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/native/read_rf_timing.c +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/native/replay_an_instance.c +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/plugins/crash.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/plugins/gre2d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/plugins/gre2d_raw.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/plugins/rf_train.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/plugins/stall.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/plugins/strong.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/plugins/tiny.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/plugins/typed.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon/test_app.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon/test_buffers.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon/test_coil_compression.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon/test_connection.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon/test_correct.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon/test_epi.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon/test_exam_image.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon/test_flags.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon/test_gadgets.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon/test_handlers.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon/test_images.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon/test_loader.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon/test_prewhiten.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon/test_readers_writers.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon/test_slots.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon/test_units.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon_plugins/children.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon_plugins/crash.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon_plugins/device.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon_plugins/exam.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon_plugins/gre2d.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/recon_plugins/pose.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_console.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_console_sequences.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_design_push.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_design_service.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_docs.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_docstring_defaults.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_docstrings.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_enrich.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_exam_artifacts.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_exam_calibration.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_exam_sharing.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_host_slots.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_image.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_ir.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_ir_checks.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_ir_designed.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_ir_extensions.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_ir_gradient_stretch.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_ir_grouping.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_ir_labels.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_ir_playout.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_ir_prescan.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_ir_prescan_tour.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_ir_profile.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_ir_receive_calibration.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_ir_repetition.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_ir_rf.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_ir_rf_freq.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_ir_segments.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_ir_source.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_ir_steady_excitation.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_ir_timing.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_ir_vendor.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_ir_waves.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_keys.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_limits.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_logs.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_memory.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_motion.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_mrd_images.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_mrd_sequence.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_plugin_options.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_plugins.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_protocol.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_proxy.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_publish_docs.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_resolution.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_rf_layout.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_scan_command.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_sequence_plugin.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_smoke.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_validate.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_virtual.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_virtual_brainweb.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_virtual_clock.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_virtual_coils.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_virtual_export.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_virtual_fourier.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_virtual_localizer.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_virtual_sequences.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_wire.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_zoo_defaults.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_zoo_fov_offset.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/tests/test_zoo_mrd_labels.py +0 -0
- {pulserver-0.4.8 → pulserver-0.4.10}/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.
|
|
3
|
+
Version: 0.4.10
|
|
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>
|
|
@@ -21,7 +21,7 @@ Project-URL: Documentation, https://pulserver.github.io/pulserver/
|
|
|
21
21
|
Project-URL: Issues, https://github.com/pulserver/pulserver/issues
|
|
22
22
|
Project-URL: Source, https://github.com/pulserver/pulserver
|
|
23
23
|
Requires-Python: >=3.10
|
|
24
|
-
Requires-Dist: pypulseqpp>=0.0.
|
|
24
|
+
Requires-Dist: pypulseqpp>=0.0.54
|
|
25
25
|
Requires-Dist: numpy>=2.2.6
|
|
26
26
|
Requires-Dist: ismrmrd>=1.15.0
|
|
27
27
|
Requires-Dist: pydicom>=3.0.2
|
|
@@ -71,7 +71,8 @@ $\sum_k \mathbf{y}_k\mathbf{y}_k^H$ over the placed samples of the calibration
|
|
|
71
71
|
k-space of the first unit the stream compresses, or of its imaging k-space
|
|
72
72
|
where that unit holds no calibration k-space. One basis is estimated per
|
|
73
73
|
stream, and every unit is projected onto it, so the virtual channels of
|
|
74
|
-
successive units are the same.
|
|
74
|
+
successive units are the same. The basis and the projection are computed on
|
|
75
|
+
the host.
|
|
75
76
|
|
|
76
77
|
If the signal of the channels lies in a subspace of dimension at most $n$,
|
|
77
78
|
compression discards none of it, and SENSE with compressed data and compressed
|
|
@@ -93,9 +94,9 @@ The calibration k-space of a unit is {attr}`ReconData.ref
|
|
|
93
94
|
| Calibration unit | Readouts flagged `IS_PARALLEL_CALIBRATION` in a unit with no imaging readouts, as in an encoding space of their own | That unit, whose `data.data` is `None`; the imaging units of the same slice take the maps from the stream |
|
|
94
95
|
| Calibration series | A series of its own | The reconstruction of that series, which stores the maps in the exam |
|
|
95
96
|
|
|
96
|
-
The estimate receives the calibration k-space of a Cartesian encoding space
|
|
97
|
-
zero-filled onto the whole grid of the space, the lines its readouts
|
|
98
|
-
being at their grid positions, and returns maps on that grid. For a
|
|
97
|
+
The estimate receives the calibration k-space of a Cartesian encoding space on
|
|
98
|
+
the host, zero-filled onto the whole grid of the space, the lines its readouts
|
|
99
|
+
cover being at their grid positions, and returns maps on that grid. For a
|
|
99
100
|
non-Cartesian space {func}`~pulserver.recon.coil_maps` raises `ValueError`.
|
|
100
101
|
|
|
101
102
|
### Resolution
|
|
@@ -49,9 +49,12 @@ write such a plugin.
|
|
|
49
49
|
- **Shares an exam cache across the series of one exam.**
|
|
50
50
|
|
|
51
51
|
Code: {class}`~pulserver.recon.ExamCache`. Test: *a value one cache stores is read by the next on its directory* (`test_app.py`).
|
|
52
|
-
- **Ships a `pics` plugin with prewhitening, partial Fourier and asymmetric echo.**
|
|
52
|
+
- **Ships a `pics` plugin with prewhitening, coil compression, partial Fourier and asymmetric echo.**
|
|
53
53
|
|
|
54
|
-
Code: `src/pulserver/_zoo/recon/pics.py`. Tests: *every other phase encode and the centre reconstruct to the image of all lines*; *a partial fourier image is closer to the full one than the solve of its lines alone* (`test_pics.py`).
|
|
54
|
+
Code: `src/pulserver/_zoo/recon/pics.py`. Tests: *every other phase encode and the centre reconstruct to the image of all lines*; *a partial fourier image is closer to the full one than the solve of its lines alone*; *channels beyond the virtual coils are compressed before the maps and the solve* (`test_pics.py`).
|
|
55
|
+
- **Keeps a unit's k-space, maps and solver vectors on the host, the encoding computing on the series' GPU.**
|
|
56
|
+
|
|
57
|
+
Code: `pics_image` in `src/pulserver/recon/handlers/pics.py`. Test: *the solve on host k space is bartorchs pics with the image on the host* (`test_pics.py`).
|
|
55
58
|
- **Runs a plugin offline on a kept series, unchanged.**
|
|
56
59
|
|
|
57
60
|
Code: `python -m pulserver.recon`. Test: *plugin runs unchanged offline* (`test_app.py`).
|
|
@@ -89,6 +89,7 @@ of the image it is written into; `{{` and `}}` are literal braces:
|
|
|
89
89
|
| `location` | The image centre's coordinate on the patient axis the normal lies closest to, in mm, positive towards right, anterior or superior; an oblique plane is located on that axis too |
|
|
90
90
|
| `location_letter` | The side `location` lies on: `R` or `L`, `A` or `P`, `S` or `I` |
|
|
91
91
|
| `instance_number`, `series_number` | The image's `InstanceNumber` and `SeriesNumber` |
|
|
92
|
+
| `instance_number+N`, `instance_number-N`, `series_number+N`, `series_number-N` | Either number plus or minus the integer `N`, as in `{instance_number+1000}` |
|
|
92
93
|
|
|
93
94
|
An attribute that resolves to no tag, for want of the dictionary, is logged and
|
|
94
95
|
left out. `pulserver replay --dicom-dictionary` names another dictionary for a
|
|
@@ -133,9 +133,11 @@ through `self.gadget(kind)`. `context.exam`, an
|
|
|
133
133
|
{class}`~pulserver.recon.ExamCache`, is shared by the series of one exam, such
|
|
134
134
|
as for a coil calibration; under the proxy a stored value reaches the next
|
|
135
135
|
series pickled, as a copy without its `cleanup`. `context.device` is the GPU
|
|
136
|
-
the proxy gave the series, such as `"cuda:0"`, or `None`.
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
the proxy gave the series, such as `"cuda:0"`, or `None`. The shipped plugins
|
|
137
|
+
keep a unit's k-space, maps and solver vectors on the host and build their
|
|
138
|
+
encoding on that device, which brings a coil at a time over as it applies. A
|
|
139
|
+
child process started with the `spawn` method runs functions from importable
|
|
140
|
+
modules, not from the plugin file.
|
|
139
141
|
|
|
140
142
|
(readout-placement)=
|
|
141
143
|
## Readout placement
|
|
@@ -202,7 +204,7 @@ with an FFT before the in-plane NUFFT.
|
|
|
202
204
|
## Coil sensitivities, noise and compression
|
|
203
205
|
|
|
204
206
|
{func}`~pulserver.recon.coil_maps` returns the coil sensitivities of a unit as
|
|
205
|
-
a complex torch tensor `(coils, [z,] y, x)` on
|
|
207
|
+
a complex torch tensor `(coils, [z,] y, x)` on the host. They are
|
|
206
208
|
estimated by the function the plugin passes, from the unit's calibration
|
|
207
209
|
k-space `data.ref`, or taken from the maps the stream or the exam holds
|
|
208
210
|
({doc}`../developer-guide/internals/calibration` states the order and the
|
|
@@ -228,16 +230,16 @@ class Pics(recon.ReconPlugin):
|
|
|
228
230
|
],
|
|
229
231
|
triggers={"imaging": mrd.AcquisitionFlag.LAST_IN_SLICE},
|
|
230
232
|
)
|
|
231
|
-
self.compression = recon.CoilCompression(
|
|
233
|
+
self.compression = recon.CoilCompression(6)
|
|
232
234
|
|
|
233
235
|
def recon(self, context, branch, data):
|
|
234
236
|
data = self.compression(context, data)
|
|
235
237
|
maps = recon.coil_maps(context, data, estimate=apps.nlinv_maps)
|
|
236
238
|
if data.data is None: # a unit of calibration readouts only
|
|
237
239
|
return None
|
|
238
|
-
kspace = torch.from_numpy(data.data.kspace)
|
|
240
|
+
kspace = torch.from_numpy(data.data.kspace)
|
|
239
241
|
image = apps.pics(kspace, maps, regularizers=priors.Wavelet((-1, -2), 0.005))
|
|
240
|
-
return recon.ReconResult(image.abs().
|
|
242
|
+
return recon.ReconResult(image.abs().numpy())
|
|
241
243
|
|
|
242
244
|
|
|
243
245
|
PLUGIN = Pics()
|
|
@@ -252,6 +254,14 @@ that unit's calibration k-space (its imaging k-space where it has none), and
|
|
|
252
254
|
projects every later unit onto it. Compress a unit before requesting its maps,
|
|
253
255
|
so that they are estimated in the basis of the data they are used with.
|
|
254
256
|
|
|
257
|
+
`apps.pics` computes where the maps are, here the host. An encoding built with
|
|
258
|
+
`device=context.device`, such as {func}`bartorch.linop.CartesianSense`, computes
|
|
259
|
+
on the GPU and takes the k-space, the maps and the solver's vectors from the
|
|
260
|
+
host a coil at a time, so the GPU never holds a whole multi-coil volume; the
|
|
261
|
+
`pics` plugin solves so. Off the grid, `apps.pics` builds its encoding where the
|
|
262
|
+
trajectory is, so a trajectory on `context.device` with the rest on the host
|
|
263
|
+
does the same; the `nufft` plugin solves so.
|
|
264
|
+
|
|
255
265
|
The `pics` and `nufft` handlers fit the maps with
|
|
256
266
|
`apps.nlinv_maps(kspace, phase_pole=0)`, `bart nlinv --phase-pole 0`, on a grid
|
|
257
267
|
of the central 24 lines, or of the trajectory's samples within 12 grid units of
|
|
@@ -442,8 +452,10 @@ Six shipped plugins are complete reconstructions, returning the values of their
|
|
|
442
452
|
transform or solve unscaled. They are searched after every reconstruction
|
|
443
453
|
plugin directory, so a client can name one, such as `nufft`, without a file of
|
|
444
454
|
its own, and a file of the same name in a `--plugins` directory replaces it.
|
|
445
|
-
Each whitens its readouts with {class}`~pulserver.recon.Prewhiten`,
|
|
446
|
-
|
|
455
|
+
Each whitens its readouts with {class}`~pulserver.recon.Prewhiten`, compresses a
|
|
456
|
+
unit of more than six receive channels to six virtual channels
|
|
457
|
+
({class}`~pulserver.recon.CoilCompression`), and sends a volume as one image per
|
|
458
|
+
partition.
|
|
447
459
|
|
|
448
460
|
| Plugin | Reconstructs |
|
|
449
461
|
| --- | --- |
|
|
@@ -254,7 +254,8 @@ pulserver design serve --plugins DIR --socket PATH
|
|
|
254
254
|
|
|
255
255
|
A call answered in its own process spends most of its time importing the
|
|
256
256
|
design engine. A warm server imports it once, designs, checks and converts one
|
|
257
|
-
sequence of its own,
|
|
257
|
+
sequence of its own, designs one refocusing train with blochsim, which imports
|
|
258
|
+
PyTorch, and imports every plugin of its `--plugins` directories.
|
|
258
259
|
It answers each call forwarded to its socket in a child process forked from
|
|
259
260
|
it, so nothing a call does outlives the call, and a plugin that ends its
|
|
260
261
|
process fails only its own call, with
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""pypulseqpp's 3D fast spin echo bound to the scanner UI, its partitions counted by the number of slices."""
|
|
2
2
|
|
|
3
3
|
import functools
|
|
4
|
+
import importlib.util
|
|
4
5
|
|
|
5
6
|
import numpy as np
|
|
6
7
|
import pypulseqpp as pp
|
|
@@ -65,8 +66,14 @@ DUAL_REGION = REFOCUSING == "dual_region"
|
|
|
65
66
|
#: adds their amplitude and cycles as user entries.
|
|
66
67
|
WAVE = option("wave", False, **OPTIONS["wave"])
|
|
67
68
|
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
# Found, not imported: only generating designs a train, and blochsim imports
|
|
70
|
+
# torch, which a listing or an evaluation would wait for.
|
|
71
|
+
if OPTIMIZED and importlib.util.find_spec("blochsim") is None:
|
|
72
|
+
raise ModuleNotFoundError(
|
|
73
|
+
"the optimized refocusing trains are designed with blochsim, which is "
|
|
74
|
+
"not installed",
|
|
75
|
+
name="blochsim",
|
|
76
|
+
)
|
|
70
77
|
|
|
71
78
|
#: Order of the views across shots, ``"radial"`` or ``"shuffling"``.
|
|
72
79
|
ORDERING = option("ordering", "radial", choices=ORDERINGS, **OPTIONS["ordering"])
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import contextlib
|
|
6
|
+
import importlib.util
|
|
6
7
|
import json
|
|
7
8
|
import logging
|
|
8
9
|
import os
|
|
@@ -98,9 +99,10 @@ class DesignServer:
|
|
|
98
99
|
"""Server of design calls on a Unix socket, each answered in a child forked from a warm parent.
|
|
99
100
|
|
|
100
101
|
The parent imports the design engine, designs, checks and converts one
|
|
101
|
-
sequence of its own,
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
sequence of its own, designs one refocusing train with blochsim, and
|
|
103
|
+
imports every plugin the directories ``plugins`` hold; no plugin code
|
|
104
|
+
designs in it. A call is answered in a child forked from it, which
|
|
105
|
+
inherits what the parent imported, answers as :func:`answer` does and
|
|
104
106
|
exits: nothing a call does outlives its child. A child that ends without
|
|
105
107
|
a reply, a crash of plugin code among them, is answered with an ``ERROR``
|
|
106
108
|
line naming its exit status. Calls run concurrently, one child each.
|
|
@@ -119,14 +121,19 @@ class DesignServer:
|
|
|
119
121
|
self._children: dict[int, socket.socket] = {}
|
|
120
122
|
|
|
121
123
|
def warm(self) -> None:
|
|
122
|
-
"""Design, check and convert pypulseqpp's 2D gradient echo, and import every plugin.
|
|
124
|
+
"""Design, check and convert pypulseqpp's 2D gradient echo, design one refocusing train, and import every plugin.
|
|
123
125
|
|
|
124
|
-
A plugin that cannot be imported is left cold
|
|
126
|
+
A plugin that cannot be imported is left cold, and so is the train
|
|
127
|
+
design without blochsim or where it fails; their calls are answered
|
|
125
128
|
all the same.
|
|
126
129
|
"""
|
|
127
130
|
from . import _service
|
|
128
131
|
|
|
129
132
|
_warm_design()
|
|
133
|
+
try:
|
|
134
|
+
_warm_trains()
|
|
135
|
+
except Exception as error: # the train design stays cold
|
|
136
|
+
_log.info("warming the train design stopped: %s", error)
|
|
130
137
|
for name in names(self.plugins):
|
|
131
138
|
try:
|
|
132
139
|
_service.list_protocol(self.plugins, name)
|
|
@@ -234,6 +241,21 @@ def _warm_design() -> None:
|
|
|
234
241
|
ir.convert(first, system)
|
|
235
242
|
|
|
236
243
|
|
|
244
|
+
def _warm_trains() -> None:
|
|
245
|
+
"""Design pypulseqpp's 3D fast spin echo with optimized refocusing trains, a few echoes long.
|
|
246
|
+
|
|
247
|
+
blochsim, torch and what torch loads on the first derivative a design
|
|
248
|
+
takes are then imported, on the CPU: CUDA is not initialised, so a child
|
|
249
|
+
can still use it.
|
|
250
|
+
"""
|
|
251
|
+
if importlib.util.find_spec("blochsim") is None:
|
|
252
|
+
return
|
|
253
|
+
import pypulseqpp as pp
|
|
254
|
+
from pypulseqpp.sequences.sequence.fse3D_sequence import fse3d
|
|
255
|
+
|
|
256
|
+
fse3d(pp.Opts(), n_x=32, n_y=8, n_z=4, etl=4, flip_modulation="optimized")
|
|
257
|
+
|
|
258
|
+
|
|
237
259
|
def _wait(pid: int, timeout: float) -> None:
|
|
238
260
|
"""Wait for a child to end, killing it once ``timeout`` has passed."""
|
|
239
261
|
import time
|
|
@@ -174,12 +174,17 @@ def describe(seq: Any, *, subsequence_index: int = 0) -> SequenceDescription:
|
|
|
174
174
|
gradients = seq.rf_gradients()
|
|
175
175
|
slice_select = _slice_select(gradients)
|
|
176
176
|
|
|
177
|
+
# Read once for the whole sequence: each of these tabulates every block,
|
|
178
|
+
# and reading it again per pulse makes a long scan quadratic.
|
|
179
|
+
library_ids = _rf_library_ids(seq)
|
|
180
|
+
shims = _shim_ids(seq)
|
|
181
|
+
|
|
177
182
|
definitions: dict[int, RfDefinition] = {}
|
|
178
183
|
rows: dict[int, SequenceEvent] = {}
|
|
179
184
|
|
|
180
185
|
for at, block in enumerate(np.asarray(pulses.block, dtype=int)):
|
|
181
186
|
pulse = seq.get_block(int(block)).rf
|
|
182
|
-
definition =
|
|
187
|
+
definition = int(library_ids[block - 1])
|
|
183
188
|
if definition not in definitions:
|
|
184
189
|
definitions[definition] = _definition_of(
|
|
185
190
|
definition, pulse, float(seq.rf_raster_time)
|
|
@@ -193,7 +198,7 @@ def describe(seq: Any, *, subsequence_index: int = 0) -> SequenceDescription:
|
|
|
193
198
|
float(np.max(np.abs(np.asarray(pulse.signal)))),
|
|
194
199
|
float(pulses.phase_offset[at]),
|
|
195
200
|
float(pulses.freq_offset[at]),
|
|
196
|
-
|
|
201
|
+
int(shims[block - 1]),
|
|
197
202
|
slice_select.get(int(block), 0.0),
|
|
198
203
|
),
|
|
199
204
|
)
|
|
@@ -236,18 +241,14 @@ def _slice_select(gradients: Any) -> dict[int, float]:
|
|
|
236
241
|
}
|
|
237
242
|
|
|
238
243
|
|
|
239
|
-
def
|
|
240
|
-
"""Return the library id of the pulse
|
|
241
|
-
return
|
|
244
|
+
def _rf_library_ids(seq: Any) -> np.ndarray:
|
|
245
|
+
"""Return the library id of the pulse each block plays, block ``i`` at ``i - 1``."""
|
|
246
|
+
return np.asarray([row[1] for row in seq.block_events.values()], dtype=int)
|
|
242
247
|
|
|
243
248
|
|
|
244
|
-
def
|
|
245
|
-
"""Return the transmit shim
|
|
246
|
-
|
|
247
|
-
if shims is None:
|
|
248
|
-
return 0
|
|
249
|
-
held = shims()
|
|
250
|
-
return int(held.get(block, 0)) if isinstance(held, dict) else 0
|
|
249
|
+
def _shim_ids(seq: Any) -> np.ndarray:
|
|
250
|
+
"""Return the transmit shim each block drives, block ``i`` at ``i - 1``; 0 where none."""
|
|
251
|
+
return np.asarray(seq.block_shims(), dtype=int)
|
|
251
252
|
|
|
252
253
|
|
|
253
254
|
def _definition_of(definition: int, pulse: Any, raster_s: float) -> RfDefinition:
|
|
@@ -165,24 +165,23 @@ def coil_maps(
|
|
|
165
165
|
Parameters
|
|
166
166
|
----------
|
|
167
167
|
context : ReconContext
|
|
168
|
-
Scan context
|
|
169
|
-
are returned.
|
|
168
|
+
Scan context.
|
|
170
169
|
data : ReconData
|
|
171
170
|
The unit that needs maps; ``data.counters["slice"]`` is its slice,
|
|
172
171
|
0 when the unit has no such counter.
|
|
173
172
|
estimate : callable
|
|
174
173
|
``estimate(kspace) -> maps``, such as :func:`bartorch.apps.nlinv_maps`.
|
|
175
174
|
``kspace`` is the calibration k-space of the unit as a torch tensor
|
|
176
|
-
``(coils, [z,] y, x)
|
|
177
|
-
its encoding space; ``maps`` are the sensitivities on the
|
|
175
|
+
``(coils, [z,] y, x)`` on the host, zero outside the lines it holds, on
|
|
176
|
+
the grid of its encoding space; ``maps`` are the sensitivities on the
|
|
177
|
+
same grid.
|
|
178
178
|
required : bool, default=True
|
|
179
179
|
Return ``None``, rather than raise, when no source has usable maps.
|
|
180
180
|
|
|
181
181
|
Returns
|
|
182
182
|
-------
|
|
183
183
|
torch.Tensor or None
|
|
184
|
-
A copy of the maps ``(coils, [z,] y, x)``, complex64, on
|
|
185
|
-
``context.device``.
|
|
184
|
+
A copy of the maps ``(coils, [z,] y, x)``, complex64, on the host.
|
|
186
185
|
|
|
187
186
|
Raises
|
|
188
187
|
------
|
|
@@ -222,7 +221,7 @@ def coil_maps(
|
|
|
222
221
|
f"no coil sensitivities for slice {location}; sources consulted:\n "
|
|
223
222
|
+ "\n ".join(rejected)
|
|
224
223
|
)
|
|
225
|
-
return torch.tensor(found.maps
|
|
224
|
+
return torch.tensor(found.maps)
|
|
226
225
|
|
|
227
226
|
|
|
228
227
|
class CoilCompression:
|
|
@@ -241,8 +240,9 @@ class CoilCompression:
|
|
|
241
240
|
compress a unit before asking for its maps.
|
|
242
241
|
|
|
243
242
|
The returned unit holds new buffers with ``n_virtual`` channels, and shares
|
|
244
|
-
its ``counters`` and ``acquisitions`` with the unit it was made from.
|
|
245
|
-
|
|
243
|
+
its ``counters`` and ``acquisitions`` with the unit it was made from. The
|
|
244
|
+
basis and the projection are computed on the host. bartorch is imported
|
|
245
|
+
when a unit is compressed.
|
|
246
246
|
|
|
247
247
|
Corresponds to Gadgetron's ``GenericReconEigenChannelGadget``.
|
|
248
248
|
|
|
@@ -272,7 +272,7 @@ class CoilCompression:
|
|
|
272
272
|
source = data.ref if data.ref is not None else data.data
|
|
273
273
|
if source is None:
|
|
274
274
|
raise ValueError("a unit with no k-space cannot give the basis")
|
|
275
|
-
basis = _basis(source, self.n_virtual
|
|
275
|
+
basis = _basis(source, self.n_virtual)
|
|
276
276
|
context.coil_compression = basis
|
|
277
277
|
elif basis.n_virtual != self.n_virtual:
|
|
278
278
|
raise ValueError(
|
|
@@ -281,8 +281,8 @@ class CoilCompression:
|
|
|
281
281
|
)
|
|
282
282
|
return dataclasses.replace(
|
|
283
283
|
data,
|
|
284
|
-
data=_compressed(data.data, basis
|
|
285
|
-
ref=_compressed(data.ref, basis
|
|
284
|
+
data=_compressed(data.data, basis),
|
|
285
|
+
ref=_compressed(data.ref, basis),
|
|
286
286
|
)
|
|
287
287
|
|
|
288
288
|
|
|
@@ -387,7 +387,7 @@ def _estimated(
|
|
|
387
387
|
)
|
|
388
388
|
kspace[(slice(None), *lines, slice(None))] = ref.kspace
|
|
389
389
|
|
|
390
|
-
maps = estimate(torch.from_numpy(kspace)
|
|
390
|
+
maps = estimate(torch.from_numpy(kspace))
|
|
391
391
|
maps = np.asarray(maps.detach().cpu().numpy(), dtype=np.complex64)
|
|
392
392
|
if maps.shape != kspace.shape:
|
|
393
393
|
raise ValueError(
|
|
@@ -433,7 +433,7 @@ def _usable(
|
|
|
433
433
|
return None
|
|
434
434
|
|
|
435
435
|
|
|
436
|
-
def _basis(buffer: ReconBuffer, n_virtual: int
|
|
436
|
+
def _basis(buffer: ReconBuffer, n_virtual: int) -> Basis:
|
|
437
437
|
import torch
|
|
438
438
|
from bartorch import tools
|
|
439
439
|
|
|
@@ -442,7 +442,7 @@ def _basis(buffer: ReconBuffer, n_virtual: int, device: str | None) -> Basis:
|
|
|
442
442
|
raise ValueError(f"cannot keep {n_virtual} virtual channels of {coils}")
|
|
443
443
|
samples = np.ascontiguousarray(buffer.kspace[:, buffer.mask], dtype=np.complex64)
|
|
444
444
|
matrix = tools.cc(
|
|
445
|
-
torch.from_numpy(samples).reshape(coils, -1, 1, 1)
|
|
445
|
+
torch.from_numpy(samples).reshape(coils, -1, 1, 1),
|
|
446
446
|
p=n_virtual,
|
|
447
447
|
M=True,
|
|
448
448
|
A=True,
|
|
@@ -452,9 +452,7 @@ def _basis(buffer: ReconBuffer, n_virtual: int, device: str | None) -> Basis:
|
|
|
452
452
|
return Basis(matrix, n_virtual, digest(matrix[:, :n_virtual], n_virtual))
|
|
453
453
|
|
|
454
454
|
|
|
455
|
-
def _compressed(
|
|
456
|
-
buffer: ReconBuffer | None, basis: Basis, device: str | None
|
|
457
|
-
) -> ReconBuffer | None:
|
|
455
|
+
def _compressed(buffer: ReconBuffer | None, basis: Basis) -> ReconBuffer | None:
|
|
458
456
|
if buffer is None:
|
|
459
457
|
return None
|
|
460
458
|
import torch
|
|
@@ -468,8 +466,8 @@ def _compressed(
|
|
|
468
466
|
)
|
|
469
467
|
kspace = np.ascontiguousarray(buffer.kspace, dtype=np.complex64)
|
|
470
468
|
virtual = tools.ccapply(
|
|
471
|
-
torch.from_numpy(kspace).reshape(coils, -1, 1, 1)
|
|
472
|
-
torch.from_numpy(basis.matrix).reshape(coils, coils, 1, 1, 1)
|
|
469
|
+
torch.from_numpy(kspace).reshape(coils, -1, 1, 1),
|
|
470
|
+
torch.from_numpy(basis.matrix).reshape(coils, coils, 1, 1, 1),
|
|
473
471
|
p=basis.n_virtual,
|
|
474
472
|
S=True,
|
|
475
473
|
)
|
|
@@ -86,6 +86,26 @@ _EXPLICIT = re.compile(r"\(([0-9A-Fa-f]{4}),([0-9A-Fa-f]{4})\)([A-Z]{2})")
|
|
|
86
86
|
_DICTIONARY_LINE = re.compile(
|
|
87
87
|
r"\(([0-9A-Fa-f]{4}),([0-9A-Fa-f]{4})\)\s+([A-Z]{2})\s+(\w+)"
|
|
88
88
|
)
|
|
89
|
+
#: A placeholder offsetting an integer quantity, ``instance_number+36352``.
|
|
90
|
+
_OFFSET = re.compile(r"\s*(\w+)\s*([+-])\s*(\d+)\s*")
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
class _Quantities(dict):
|
|
94
|
+
"""The quantities of an image, and an integer one plus or minus an integer.
|
|
95
|
+
|
|
96
|
+
:meth:`str.format_map` hands ``{instance_number+5}`` over as the key
|
|
97
|
+
``"instance_number+5"``, which is evaluated here.
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
def __missing__(self, key: str) -> int:
|
|
101
|
+
match = _OFFSET.fullmatch(key)
|
|
102
|
+
if match is None:
|
|
103
|
+
raise KeyError(key)
|
|
104
|
+
name, sign, offset = match.groups()
|
|
105
|
+
value = self[name]
|
|
106
|
+
if not isinstance(value, int) or isinstance(value, bool):
|
|
107
|
+
raise KeyError(f"{name} is not an integer quantity")
|
|
108
|
+
return value + int(offset) if sign == "+" else value - int(offset)
|
|
89
109
|
|
|
90
110
|
|
|
91
111
|
def to_dicom_date(value: Any) -> str:
|
|
@@ -163,7 +183,8 @@ class MrdDicomBuilder:
|
|
|
163
183
|
lies closest to, positive towards right, anterior or superior (mm), for an
|
|
164
184
|
oblique plane too; ``location_letter``, the side that location lies on
|
|
165
185
|
(``R``/``L``, ``A``/``P``, ``S``/``I``);
|
|
166
|
-
``instance_number`` and ``series_number
|
|
186
|
+
``instance_number`` and ``series_number``, either of them plus or minus
|
|
187
|
+
an integer, ``{instance_number+1000}``; ``{{`` and ``}}`` are literal
|
|
167
188
|
braces. The private dictionary is the
|
|
168
189
|
file the header's ``dicom:dictionary`` entry names, in MATLAB's format, a
|
|
169
190
|
``(gggg,eeee) VR Keyword VM`` line per attribute. An attribute that cannot
|
|
@@ -720,11 +741,11 @@ class MrdDicomBuilder:
|
|
|
720
741
|
|
|
721
742
|
def _state(self, dicomDset: pydicom.Dataset, quantities: dict[str, Any]) -> None:
|
|
722
743
|
"""Write the header's ``dicom:`` attributes that name a quantity of the image."""
|
|
723
|
-
quantities =
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
744
|
+
quantities = _Quantities(
|
|
745
|
+
quantities,
|
|
746
|
+
instance_number=dicomDset.InstanceNumber,
|
|
747
|
+
series_number=dicomDset.SeriesNumber,
|
|
748
|
+
)
|
|
728
749
|
for tag, vr, value in self._per_image:
|
|
729
750
|
try:
|
|
730
751
|
text = value.format_map(quantities)
|
|
@@ -9,11 +9,10 @@ import numpy as np
|
|
|
9
9
|
from ...mrd._acquisitions import AcquisitionFlag
|
|
10
10
|
from ...mrd._images import center_crop
|
|
11
11
|
from .._buffers import ReconBuffer, ReconData
|
|
12
|
-
from .._calibration import CoilCompression
|
|
13
12
|
from .._correct import gradient_unwarped, states_gradient_coefficients
|
|
14
13
|
from ..gadgets import Prewhiten
|
|
15
14
|
from ..plugin import ReconContext, ReconPlugin, ReconResult
|
|
16
|
-
from .pics import averaged, nlinv_estimate, wavelet_axes
|
|
15
|
+
from .pics import VIRTUAL_COILS, averaged, compressed, nlinv_estimate, wavelet_axes
|
|
17
16
|
|
|
18
17
|
|
|
19
18
|
class NufftRecon(ReconPlugin):
|
|
@@ -37,7 +36,14 @@ class NufftRecon(ReconPlugin):
|
|
|
37
36
|
(:func:`bartorch.estimate_density`), which preconditions the solve (Baron
|
|
38
37
|
et al., Magn Reson Med 2018). The step is the reciprocal of the largest
|
|
39
38
|
eigenvalue of the normal operator (``bart pics -e``). An image is its
|
|
40
|
-
averages summed, and its values are those of the solve, unscaled.
|
|
39
|
+
averages summed, and its values are those of the solve, unscaled. A unit
|
|
40
|
+
of more receive channels than ``virtual_coils`` is compressed to that many
|
|
41
|
+
virtual channels first (:func:`~pulserver.recon.handlers.pics.compressed`).
|
|
42
|
+
|
|
43
|
+
The samples, the maps, the density and the vectors of the solve stay on
|
|
44
|
+
the host, where the maps and the density are estimated. The encoding is
|
|
45
|
+
built on ``context.device``, the trajectory with it, and brings the rest
|
|
46
|
+
over a coil at a time as it applies.
|
|
41
47
|
|
|
42
48
|
The trajectory is the one the proxy's enrichment writes, which
|
|
43
49
|
:meth:`~pulserver.recon.ReconBuffer.grid_trajectory` scales to the image
|
|
@@ -62,17 +68,16 @@ class NufftRecon(ReconPlugin):
|
|
|
62
68
|
``lambda``, relative to the data scaling ``pics`` estimates.
|
|
63
69
|
iterations : int, default=30
|
|
64
70
|
Iterations of the solve.
|
|
65
|
-
virtual_coils : int | None, default=
|
|
66
|
-
Receive channels beyond this many are compressed to it
|
|
67
|
-
|
|
68
|
-
``None`` keeps every channel.
|
|
71
|
+
virtual_coils : int | None, default=VIRTUAL_COILS
|
|
72
|
+
Receive channels beyond this many are compressed to it; ``None``
|
|
73
|
+
keeps every channel.
|
|
69
74
|
"""
|
|
70
75
|
|
|
71
76
|
def __init__(
|
|
72
77
|
self,
|
|
73
78
|
wavelet: float = 0.005,
|
|
74
79
|
iterations: int = 30,
|
|
75
|
-
virtual_coils: int | None =
|
|
80
|
+
virtual_coils: int | None = VIRTUAL_COILS,
|
|
76
81
|
) -> None:
|
|
77
82
|
super().__init__(
|
|
78
83
|
gadgets=[Prewhiten()],
|
|
@@ -93,8 +98,7 @@ class NufftRecon(ReconPlugin):
|
|
|
93
98
|
del branch
|
|
94
99
|
if data.data is None:
|
|
95
100
|
return None
|
|
96
|
-
|
|
97
|
-
data = CoilCompression(self.virtual_coils)(context, data)
|
|
101
|
+
data = compressed(context, data, self.virtual_coils)
|
|
98
102
|
buffer = data.data
|
|
99
103
|
grid = buffer.grid_trajectory()
|
|
100
104
|
if grid is None:
|
|
@@ -183,10 +187,8 @@ class NufftRecon(ReconPlugin):
|
|
|
183
187
|
|
|
184
188
|
samples, points = _within(samples, points, shape)
|
|
185
189
|
volume = tuple(shape) if len(shape) == 3 else None
|
|
186
|
-
samples = torch.from_numpy(
|
|
187
|
-
|
|
188
|
-
).to(device)
|
|
189
|
-
points = torch.from_numpy(np.ascontiguousarray(points)).to(device)
|
|
190
|
+
samples = torch.from_numpy(np.ascontiguousarray(samples, dtype=np.complex64))
|
|
191
|
+
points = torch.from_numpy(np.ascontiguousarray(points))
|
|
190
192
|
axes = 2 if volume is None else 3
|
|
191
193
|
maps = nlinv_estimate(samples, points, volume)
|
|
192
194
|
grid = tuple(maps.shape[-axes:])
|
|
@@ -197,13 +199,13 @@ class NufftRecon(ReconPlugin):
|
|
|
197
199
|
image = apps.pics(
|
|
198
200
|
samples,
|
|
199
201
|
maps,
|
|
200
|
-
traj=points,
|
|
202
|
+
traj=points if device is None else points.to(device),
|
|
201
203
|
pattern=density.sqrt(),
|
|
202
204
|
regularizers=priors.Wavelet(encoded, self.wavelet),
|
|
203
205
|
maxiter=self.iterations,
|
|
204
206
|
eigen_step=True,
|
|
205
207
|
)
|
|
206
|
-
return image.abs().
|
|
208
|
+
return image.abs().numpy().reshape(maps.shape[-axes:])
|
|
207
209
|
|
|
208
210
|
|
|
209
211
|
def _within(
|