pulserver 0.4.6__tar.gz → 0.4.7__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.6 → pulserver-0.4.7}/.gitignore +0 -2
- {pulserver-0.4.6 → pulserver-0.4.7}/PKG-INFO +2 -2
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/developer-guide/index.md +1 -1
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/developer-guide/internals/virtual-scanner.md +6 -22
- pulserver-0.4.7/docs/developer-guide/style.md +24 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/developer-guide/workflow.md +0 -1
- {pulserver-0.4.6 → pulserver-0.4.7}/pyproject.toml +1 -1
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/bssfp2d.py +4 -8
- pulserver-0.4.6/.github/workflows/koma.yml +0 -65
- pulserver-0.4.6/docs/developer-guide/style.md +0 -43
- pulserver-0.4.6/tests/koma/Project.toml +0 -8
- pulserver-0.4.6/tests/koma/simulate.jl +0 -89
- pulserver-0.4.6/tests/test_koma.py +0 -163
- {pulserver-0.4.6 → pulserver-0.4.7}/.claude/skills/build-and-test/SKILL.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/.claude/skills/write-documentation/SKILL.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/.dockerignore +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/.gitattributes +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/.github/DISCUSSION_TEMPLATE/ideas.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/.github/DISCUSSION_TEMPLATE/q-a.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/.github/ISSUE_TEMPLATE/documentation.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/.github/dependabot.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/.github/workflows/codeql.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/.github/workflows/console.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/.github/workflows/docs.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/.github/workflows/fields.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/.github/workflows/image.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/.github/workflows/style.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/.github/workflows/tags-release.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/.github/workflows/test-ci.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/.github/workflows/wheels.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/.pre-commit-config.yaml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/AGENTS.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/CMakeLists.txt +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/CODE_OF_CONDUCT.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/CONTRIBUTING.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/LICENSE +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/LICENSES/gadgetron-python-MIT.txt +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/LICENSES/python-ismrmrd-server-MIT.txt +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/NEXT.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/README.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/SECURITY.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/SKILLS.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/codecov.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docker/Dockerfile +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docker/compose.yaml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docker/entrypoint.sh +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docker/limits/limits.txt +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docker/smoke.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_static/architecture-dark.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_static/architecture.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_static/capabilities.js +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_static/context-dark.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_static/context.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_static/pulseg-dark.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_static/pulseg.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_static/pulserver-logo-dark.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_static/pulserver-logo.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_static/pulserver-mark-dark.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_static/pulserver-mark.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_static/pulserver.css +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_static/repetition-dark.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_static/repetition.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_static/safety-dark.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_static/safety.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_static/session-dark.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_static/session.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_static/virtual-dark.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_static/virtual.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_templates/autosummary/base.rst +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_templates/autosummary/class.rst +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_templates/autosummary/enum.rst +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/_templates/autosummary/function.rst +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/api/design.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/api/host.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/api/index.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/api/ir.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/api/mrd.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/api/protocol.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/api/proxy.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/api/recon.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/api/validate.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/api/virtual.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/api_objects.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/colab.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/conf.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/developer-guide/documentation.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/developer-guide/installation.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/developer-guide/internals/calibration.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/developer-guide/internals/index.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/developer-guide/internals/ir-cache.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/developer-guide/internals/protocol-wire.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/developer-guide/internals/reconstruction-proxy.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/developer-guide/internals/sar-ratios.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/developer-guide/releases.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/developer-guide/terminology.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/examples/course.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/examples/index.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/examples/tours.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/explanations/architecture.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/explanations/index.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/explanations/protocol.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/explanations/raw-data.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/explanations/reconstruction-session.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/explanations/reconstruction.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/explanations/safety-checks.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/explanations/scanner-representation.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/explanations/virtual-scanner.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/figure_style.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/index.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/misc/contributors.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/misc/index.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/misc/license.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/misc/related.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/user-guide/index.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/user-guide/reconstruction-client.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/user-guide/reconstruction-plugins.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/user-guide/running.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/user-guide/scanner-sequences.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/docs/user-guide/virtual-scanner.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/gallery/01-course/01_protocol_to_image.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/gallery/01-course/02_sequence_plugin.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/gallery/01-course/03_scanner_representation.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/gallery/01-course/04_reconstruction_plugin.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/gallery/01-course/05_recon_plugin.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/gallery/01-course/06_testing_on_the_virtual_scanner.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/gallery/01-course/README.rst +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/gallery/01-course/_gallery_header.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/gallery/02-tours/01_protocol_resolution.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/gallery/02-tours/02_segmentation.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/gallery/02-tours/03_fov_offset_enrichment.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/gallery/02-tours/README.rst +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/gallery/02-tours/_gallery_header.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/gallery/README.rst +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/gallery/_gallery_header.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/scripts/build_docs.sh +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/scripts/check_throughput.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/scripts/format_and_lint.sh +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/scripts/make_artwork.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/scripts/publish_docs.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/setup.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/CMakeLists.txt +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/cache/pulseg_cache.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/core/pulseg_core.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/core/pulseg_error.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/core/pulseg_math.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/include/pulseg/pulseg.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/include/pulseg/pulseg_cache.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/include/pulseg/pulseg_collection.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/include/pulseg/pulseg_config.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/include/pulseg/pulseg_errors.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/include/pulseg/pulseg_io.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/include/pulseg/pulseg_playout.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/include/pulseg/pulseg_protocol.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/include/pulseg/pulseg_types.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/include/pulseq/pulseq.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/include/pulseq/pulseq_config.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/include/pulseq/pulseq_types.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/io/pulseg_opts.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/io/pulseg_protocol.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/playout/pulseg_playout.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/pulseg_internal.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/pulseq/pulseq_internal.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/pulseq/pulseq_shape.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/structure/pulseg_descriptor.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/structure/pulseg_getters.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/structure/pulseg_repetition.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/c/structure/pulseg_waves.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/cpp/fourier/bindings.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/cpp/fourier/bindings.hpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/cpp/fourier/parallel.hpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/cpp/fourier/timeline.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/cpp/fourier/timeline.hpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/cpp/ir/collection.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/cpp/ir/dedup.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/cpp/ir/from_libraries.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/cpp/ir/from_libraries.hpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/cpp/ir/gradient_stretch.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/cpp/ir/pulseg_convert.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/cpp/ir/pulseq_file.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/cpp/ir/pulseq_file.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/cpp/ir/structure.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/cpp/ir/wave_plan.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/cpp/ir/waves.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/cpp/module.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/cpp/native.hpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/cpp/playout.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/cpp/playout.hpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_accelerators.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_cli.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_labels.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_logs.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_memory.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_plugins.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/_evaluation.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/_inversion.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/_pmc.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/_saturation.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/_slab.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/_user.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/recon/epi.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/recon/nufft.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/recon/nufft_train.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/recon/pics.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/recon/pics_train.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/recon/pmc.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/bssfp3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/epi2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/epi3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/fse3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/gre2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/gre3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/gre_multiecho2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/gre_multiecho3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/gre_propeller2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/gre_radial2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/gre_spiral2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/gre_stack_of_blades3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/gre_stack_of_spirals3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/gre_stack_of_stars3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/mprage3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/mprage_stack_of_spirals3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/mprage_stack_of_stars3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/se2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/se3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/se_epi_propeller2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/se_propeller2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/se_radial2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/se_spiral2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/se_stack_of_blades3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/se_stack_of_spirals3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/se_stack_of_stars3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/_zoo/sequences/zte3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/design/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/design/_entries.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/design/_options.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/design/_plugin.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/design/_rf.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/host/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/host/__main__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/host/_blocks.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/host/_command.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/host/_limits.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/host/_push.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/host/_server.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/host/_service.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/host/_store.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/ir/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/ir/_calibration.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/ir/_checks.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/ir/_convert.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/ir/_playout.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/ir/_source.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/ir/_vendor.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/ir/_waves.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/mrd/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/mrd/_acquisitions.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/mrd/_header.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/mrd/_images.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/mrd/_metadata.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/mrd/_sequence.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/protocol/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/protocol/_keys.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/protocol/_prescription.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/protocol/_schema.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/protocol/_wire.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/proxy/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/proxy/__main__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/proxy/_designs.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/proxy/_enrich.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/proxy/_held.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/proxy/_intake.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/proxy/_local.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/proxy/_motion.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/proxy/_proxy.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/proxy/_queue.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/proxy/_receiver.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/proxy/_seqdesc.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/proxy/_workers.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/__main__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/_buffers.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/_calibration.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/_correct.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/_exam_image.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/_figure.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/_loader.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/_replay.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/_runtime/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/_runtime/application.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/_runtime/concurrency.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/_runtime/connection.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/_runtime/constants.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/_runtime/exam.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/_runtime/mrd2dicom.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/_runtime/offline.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/_runtime/readers.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/_runtime/writers.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/_units.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/gadgets.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/handlers/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/handlers/epi.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/handlers/nufft.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/handlers/nufft_train.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/handlers/pics.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/handlers/pics_train.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/handlers/pmc.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/recon/plugin.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/validate/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/validate/_command.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/validate/_compare.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/validate/_validate.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/validate/_xml.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/virtual/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/virtual/_brainweb.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/virtual/_client.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/virtual/_coils.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/virtual/_command.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/virtual/_console.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/virtual/_export.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/virtual/_fourier.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/virtual/_girf.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/virtual/_localizer.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/virtual/_motion.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/virtual/_phantom.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/virtual/_stream.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/virtual/_timeline.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/src/pulserver/virtual/_tissue.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/_analytic.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/_host.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/_seqtext.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/_synthetic.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/_virtual.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/_zoo.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/conftest.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/fixtures/bloch/bssfp.npy +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/fixtures/bloch/epi_2d_main.npy +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/fixtures/bloch/gre_2d_3sl.npy +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/fixtures/bloch/steady_dess_hard_0hz.npy +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/fixtures/bloch/steady_dess_hard_30hz.npy +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/fixtures/bloch/steady_echo_hard_0hz.npy +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/fixtures/bloch/steady_echo_hard_30hz.npy +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/fixtures/bloch/steady_echo_selective_0hz.npy +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/fixtures/bloch/steady_fid_hard_0hz.npy +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/fixtures/sequences/dedup_gre_pair.seq +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/fixtures/sequences/dedup_gre_pair_b.seq +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/fixtures/sequences/epi_2d_main.seq +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/fixtures/sequences/gre_2d_3sl.seq +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/fixtures/sequences/mprage_stack_of_spirals_3d.seq +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/fixtures/sequences/zte_3d.seq +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/native/check_initializers.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/native/print_wave_samples.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/native/read_cache_summary.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/native/read_rf_definitions.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/native/read_rf_timing.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/native/replay_an_instance.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/plugins/crash.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/plugins/gre2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/plugins/gre2d_raw.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/plugins/rf_train.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/plugins/stall.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/plugins/strong.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/plugins/tiny.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/plugins/typed.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon/test_app.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon/test_buffers.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon/test_calibration.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon/test_coil_compression.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon/test_connection.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon/test_correct.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon/test_epi.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon/test_exam_image.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon/test_flags.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon/test_gadgets.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon/test_handlers.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon/test_images.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon/test_loader.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon/test_mrd2dicom.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon/test_nufft.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon/test_pics.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon/test_pmc.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon/test_prewhiten.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon/test_readers_writers.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon/test_slots.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon/test_units.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon_plugins/children.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon_plugins/crash.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon_plugins/device.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon_plugins/exam.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon_plugins/gre2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/recon_plugins/pose.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_console.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_console_sequences.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_design_push.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_design_server.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_design_service.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_docs.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_docstring_defaults.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_docstrings.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_enrich.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_exam_artifacts.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_exam_calibration.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_exam_sharing.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_host_slots.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_image.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_ir.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_ir_checks.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_ir_designed.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_ir_extensions.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_ir_gradient_stretch.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_ir_grouping.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_ir_labels.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_ir_playout.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_ir_prescan.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_ir_prescan_tour.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_ir_profile.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_ir_receive_calibration.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_ir_repetition.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_ir_rf.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_ir_rf_freq.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_ir_segments.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_ir_source.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_ir_steady_excitation.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_ir_timing.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_ir_vendor.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_ir_waves.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_keys.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_limits.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_logs.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_memory.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_motion.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_mrd_images.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_mrd_sequence.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_plugin_options.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_plugins.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_protocol.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_proxy.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_publish_docs.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_resolution.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_rf_layout.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_scan_command.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_seqdesc.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_sequence_plugin.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_smoke.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_validate.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_virtual.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_virtual_brainweb.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_virtual_clock.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_virtual_coils.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_virtual_export.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_virtual_fourier.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_virtual_localizer.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_virtual_sequences.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_wire.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_zoo_defaults.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_zoo_evaluation.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_zoo_fov_offset.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/tests/test_zoo_mrd_labels.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.7}/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.7
|
|
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.53
|
|
25
25
|
Requires-Dist: numpy>=2.2.6
|
|
26
26
|
Requires-Dist: ismrmrd>=1.15.0
|
|
27
27
|
Requires-Dist: pydicom>=3.0.2
|
|
@@ -7,7 +7,7 @@ conventions, and the implementation design behind the explanations.
|
|
|
7
7
|
| --- | --- |
|
|
8
8
|
| {doc}`installation` | Prerequisites, the editable installation, pre-commit hooks and the documentation build |
|
|
9
9
|
| {doc}`workflow` | Forks, branches, pull requests, continuous integration and the code of conduct |
|
|
10
|
-
| {doc}`style` | Ruff, tests, C89 and code conventions
|
|
10
|
+
| {doc}`style` | Ruff, tests, C89 and code conventions |
|
|
11
11
|
| {doc}`documentation` | Documentation types and scientific writing |
|
|
12
12
|
| {doc}`terminology` | Scanner, protocol, Pulseq and MRD terminology, units and layers |
|
|
13
13
|
| {doc}`internals/index` | IR cache, protocol text blocks, reconstruction proxy, calibration, SAR ratios, virtual scanner |
|
|
@@ -377,9 +377,9 @@ the images whatever its samples.
|
|
|
377
377
|
|
|
378
378
|
## External simulators
|
|
379
379
|
|
|
380
|
-
A Bloch simulator that reads Pulseq files
|
|
381
|
-
|
|
382
|
-
|
|
380
|
+
A Bloch simulator that reads Pulseq files integrates the Bloch equation
|
|
381
|
+
through every RF pulse, which the Fourier engine reduces to a rotation at its
|
|
382
|
+
centre. A simulation of the design would test
|
|
383
383
|
the design alone; {func}`~pulserver.virtual.export` writes the blocks the
|
|
384
384
|
cache plays instead, so that a simulation of the file tests the IR as the
|
|
385
385
|
virtual interpreter does. Each played block becomes one block of a Pulseq
|
|
@@ -391,10 +391,8 @@ virtual interpreter does. Each played block becomes one block of a Pulseq
|
|
|
391
391
|
are summed, as at unit, in-phase sensitivity. A simulator reads the pulse as
|
|
392
392
|
it reads the design's, and applies the offsets as it applies a design's. In
|
|
393
393
|
Pulseq, a frequency offset and the same phase ramp written into the samples
|
|
394
|
-
play one pulse;
|
|
395
|
-
|
|
396
|
-
ramp it would excite the mirror image of an offset slice. It refers the
|
|
397
|
-
offset's phase to the pulse's centre, which the file therefore records.
|
|
394
|
+
play one pulse; the file keeps the offset apart, its phase referred to the
|
|
395
|
+
pulse's centre, which the file therefore records.
|
|
398
396
|
- The gradients along the physical axes: those the cache plays, the block's
|
|
399
397
|
rotation in them, turned by $R$ except in blocks labelled `NOROT`, as the
|
|
400
398
|
virtual interpreter turns them. A time-shaped gradient through the corners of all three axes
|
|
@@ -404,8 +402,7 @@ virtual interpreter does. Each played block becomes one block of a Pulseq
|
|
|
404
402
|
- The ADC window without its offsets. The receiver phase $\theta$ of every
|
|
405
403
|
sample is returned instead, and the simulated samples are demodulated by it
|
|
406
404
|
as the playout demodulates. The offsets act on the samples alone, so no
|
|
407
|
-
simulator has to apply them
|
|
408
|
-
neither its frequency offset nor a phase modulation.
|
|
405
|
+
simulator has to apply them.
|
|
409
406
|
|
|
410
407
|
The file holds the standard sections alone. The text format writes a
|
|
411
408
|
gradient's amplitude to six significant figures, and a turned gradient's
|
|
@@ -413,16 +410,6 @@ amplitude is written as the rotation leaves it, so the k-space of a file
|
|
|
413
410
|
exported under an oblique prescription agrees with the played trajectory to a
|
|
414
411
|
relative $10^{-5}$ of its extent.
|
|
415
412
|
|
|
416
|
-
A job run every night and on demand simulates every fixture and every sequence
|
|
417
|
-
pypulseqpp ships with KomaMRI, over one phantom whose density, relaxation times
|
|
418
|
-
and off-resonance vary across it: as designed, and as exported from its cache.
|
|
419
|
-
KomaMRI drops the ppm term of an offset, so a design file carrying one is given
|
|
420
|
-
to it as Pulseq 1.4.1, whose writer resolves the term; and its rotation of a
|
|
421
|
-
block can drop a corner a gradient holds twice, such as the peak of a trapezoid
|
|
422
|
-
without a flat top, so the job turns a design's gradients itself. The two
|
|
423
|
-
simulations then differ only where the cache plays something other than the
|
|
424
|
-
design, or by the rounding of the text format.
|
|
425
|
-
|
|
426
413
|
## Test coverage
|
|
427
414
|
|
|
428
415
|
- The trajectory the cache plays is the one each file designs, for the
|
|
@@ -486,9 +473,6 @@ design, or by the rounding of the text format.
|
|
|
486
473
|
integrated by pypulseqpp, has the trajectory the cache plays, under an
|
|
487
474
|
axial, an oblique and a reflected prescription, and holds each RF pulse with
|
|
488
475
|
the samples, offsets, centre and use of the design's.
|
|
489
|
-
- In the scheduled KomaMRI job, the signal simulated from the exported file of
|
|
490
|
-
every fixture and every shipped sequence is the one simulated from its
|
|
491
|
-
design, to the rounding of the text format.
|
|
492
476
|
|
|
493
477
|
(vs-coils-from-field-maps)=
|
|
494
478
|
## Coils from field maps
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Coding style
|
|
2
|
+
|
|
3
|
+
## Formatting and tests
|
|
4
|
+
|
|
5
|
+
Ruff formats and lints the Python sources; its configuration and pinned
|
|
6
|
+
version are in `pyproject.toml`. Before you report a change complete, run:
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
bash scripts/format_and_lint.sh
|
|
10
|
+
pytest -q
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Tests are pytest functions and fixtures, never `unittest.TestCase`, and a test
|
|
14
|
+
name states the invariant it protects. Numerical code that can run on CPU and
|
|
15
|
+
CUDA is parametrised over both with the `device` fixture, whose CUDA leg skips
|
|
16
|
+
without a device.
|
|
17
|
+
|
|
18
|
+
## Code conventions
|
|
19
|
+
|
|
20
|
+
`src/c/` is linked into the scanner interpreter and is ANSI C (C89). It calls
|
|
21
|
+
nothing in `src/cpp/`, whose passes run only on the host. Docstrings are NumPy
|
|
22
|
+
style, and comments and docstrings describe the code as it is, not its
|
|
23
|
+
history. `AGENTS.md` states these rules in full.
|
|
24
|
+
|
|
@@ -29,7 +29,6 @@ behaviour comes with a regression test where practical.
|
|
|
29
29
|
| Console | pull requests that change `docker/`, the console or the proxy | one exam scanned through the virtual scanner's console, the proxy and Gadgetron in Docker Compose |
|
|
30
30
|
| Image | pull requests that change `docker/`, `src/` or the build, `main` | the Docker image, scanned through its own console; published from `main` |
|
|
31
31
|
| Fields | on demand | the virtual coils' field maps and VOPs, solved with mariepy and published as an image |
|
|
32
|
-
| KomaMRI | nightly, on demand | the KomaMRI simulation ({doc}`style`) |
|
|
33
32
|
| CodeQL | every pull request, `main` | static analysis |
|
|
34
33
|
| Release | release tags | wheels, PyPI and the GitHub release ({doc}`releases`) |
|
|
35
34
|
|
|
@@ -5,7 +5,6 @@ import math
|
|
|
5
5
|
import pypulseqpp as pp
|
|
6
6
|
from pypulseqpp import sequences
|
|
7
7
|
from pypulseqpp.sequences.sequence.bssfp2D_sequence import (
|
|
8
|
-
MAX_SLICE_DURATION,
|
|
9
8
|
PROSPECTIVE_DUMMIES,
|
|
10
9
|
bssfp2d,
|
|
11
10
|
)
|
|
@@ -107,12 +106,6 @@ class Bssfp2D(SequencePlugin):
|
|
|
107
106
|
per_segment = max(1, round(rr / (g["views_per_segment"] * tr)))
|
|
108
107
|
cycles = per_segment * sum(segments)
|
|
109
108
|
train = once + (n_dummy + cycles - 1) * tr
|
|
110
|
-
if train > MAX_SLICE_DURATION:
|
|
111
|
-
raise ValueError(
|
|
112
|
-
f"a slice's train lasts {train:.1f} s, longer than the "
|
|
113
|
-
f"{MAX_SLICE_DURATION:.0f} s one repetition of the scan may; "
|
|
114
|
-
"raise ry, or lower n_y"
|
|
115
|
-
)
|
|
116
109
|
return Evaluation(
|
|
117
110
|
protocol.replace(achieved(self, line)),
|
|
118
111
|
a["n_slices"] * train,
|
|
@@ -142,9 +135,12 @@ def _dummies(a, tr: float, gating: str) -> int:
|
|
|
142
135
|
return int(a["n_dummy"])
|
|
143
136
|
if gating == "prospective":
|
|
144
137
|
return PROSPECTIVE_DUMMIES
|
|
145
|
-
|
|
138
|
+
n = sequences.steady_state_dummies(
|
|
146
139
|
tr, a["flip_angle_deg"], t2_s=sequences.STEADY_STATE_T2_S
|
|
147
140
|
)
|
|
141
|
+
if gating == "retrospective":
|
|
142
|
+
n = min(n, max(1, round(60.0 / a["heart_rate_bpm"] / tr)))
|
|
143
|
+
return n
|
|
148
144
|
|
|
149
145
|
|
|
150
146
|
def _ungated(protocol) -> dict:
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
name: KomaMRI
|
|
2
|
-
|
|
3
|
-
# Simulates, with the KomaMRI Bloch simulator, every fixture and every sequence
|
|
4
|
-
# pypulseqpp ships: as designed, and as the file virtual.export writes of what
|
|
5
|
-
# its cache plays, whose signals agree unless the cache plays something other
|
|
6
|
-
# than the design. Every night against pypulseqpp's latest release, and on
|
|
7
|
-
# demand. The virtual scanner's own tests hold the cache to the design on every
|
|
8
|
-
# pull request.
|
|
9
|
-
|
|
10
|
-
on:
|
|
11
|
-
schedule:
|
|
12
|
-
- cron: "17 3 * * *"
|
|
13
|
-
workflow_dispatch:
|
|
14
|
-
inputs:
|
|
15
|
-
cases:
|
|
16
|
-
description: Cases to simulate, comma-separated; every case when empty
|
|
17
|
-
required: false
|
|
18
|
-
default: ""
|
|
19
|
-
|
|
20
|
-
permissions:
|
|
21
|
-
contents: read
|
|
22
|
-
|
|
23
|
-
concurrency:
|
|
24
|
-
group: ${{ github.workflow }}-${{ github.ref }}
|
|
25
|
-
cancel-in-progress: true
|
|
26
|
-
|
|
27
|
-
jobs:
|
|
28
|
-
simulate:
|
|
29
|
-
runs-on: ubuntu-latest
|
|
30
|
-
timeout-minutes: 90
|
|
31
|
-
permissions:
|
|
32
|
-
actions: write # the Julia cache deletes the caches it has superseded
|
|
33
|
-
contents: read
|
|
34
|
-
steps:
|
|
35
|
-
- uses: actions/checkout@v7
|
|
36
|
-
with:
|
|
37
|
-
fetch-depth: 0 # setuptools_scm reads the tags
|
|
38
|
-
|
|
39
|
-
- uses: actions/setup-python@v7
|
|
40
|
-
with:
|
|
41
|
-
python-version: "3.13"
|
|
42
|
-
cache: pip
|
|
43
|
-
|
|
44
|
-
- uses: julia-actions/setup-julia@v3
|
|
45
|
-
with:
|
|
46
|
-
version: "1.12"
|
|
47
|
-
|
|
48
|
-
- uses: julia-actions/cache@v3
|
|
49
|
-
|
|
50
|
-
- name: Install
|
|
51
|
-
run: |
|
|
52
|
-
python -m pip install --upgrade pip
|
|
53
|
-
python -m pip install .[dev]
|
|
54
|
-
|
|
55
|
-
- name: Install KomaMRI
|
|
56
|
-
run: julia --project=tests/koma -e 'using Pkg; Pkg.instantiate()'
|
|
57
|
-
|
|
58
|
-
# -rA so a skip is visible rather than reading as a pass, and so that
|
|
59
|
-
# each case prints how far apart its signals are.
|
|
60
|
-
- name: Simulate
|
|
61
|
-
env:
|
|
62
|
-
PULSERVER_KOMA_PROJECT: tests/koma
|
|
63
|
-
PULSERVER_KOMA_CASES: ${{ inputs.cases }}
|
|
64
|
-
JULIA_NUM_THREADS: auto
|
|
65
|
-
run: pytest -q -rA tests/test_koma.py
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# Coding style
|
|
2
|
-
|
|
3
|
-
## Formatting and tests
|
|
4
|
-
|
|
5
|
-
Ruff formats and lints the Python sources; its configuration and pinned
|
|
6
|
-
version are in `pyproject.toml`. Before you report a change complete, run:
|
|
7
|
-
|
|
8
|
-
```bash
|
|
9
|
-
bash scripts/format_and_lint.sh
|
|
10
|
-
pytest -q
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Tests are pytest functions and fixtures, never `unittest.TestCase`, and a test
|
|
14
|
-
name states the invariant it protects. Numerical code that can run on CPU and
|
|
15
|
-
CUDA is parametrised over both with the `device` fixture, whose CUDA leg skips
|
|
16
|
-
without a device.
|
|
17
|
-
|
|
18
|
-
## Code conventions
|
|
19
|
-
|
|
20
|
-
`src/c/` is linked into the scanner interpreter and is ANSI C (C89). It calls
|
|
21
|
-
nothing in `src/cpp/`, whose passes run only on the host. Docstrings are NumPy
|
|
22
|
-
style, and comments and docstrings describe the code as it is, not its
|
|
23
|
-
history. `AGENTS.md` states these rules in full.
|
|
24
|
-
|
|
25
|
-
## Simulation with KomaMRI
|
|
26
|
-
|
|
27
|
-
`tests/test_koma.py` simulates every fixture and every sequence pypulseqpp
|
|
28
|
-
ships with KomaMRI, as designed and as {func}`~pulserver.virtual.export`
|
|
29
|
-
writes what its cache plays, and compares the two signals. It runs where
|
|
30
|
-
`PULSERVER_KOMA_PROJECT` names a Julia project holding KomaMRI and `julia` is
|
|
31
|
-
on the path, and skips elsewhere; `PULSERVER_KOMA_CASES` restricts it to a
|
|
32
|
-
comma-separated list of cases. The KomaMRI workflow runs it every night
|
|
33
|
-
against pypulseqpp's latest release, and on demand. To run it locally with
|
|
34
|
-
Julia 1.10 or later:
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
julia --project=tests/koma -e 'using Pkg; Pkg.instantiate()'
|
|
38
|
-
PULSERVER_KOMA_PROJECT=tests/koma pytest -q tests/test_koma.py
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
`tests/koma/Project.toml` admits the patch releases of the KomaMRI minor
|
|
42
|
-
versions it names; a newer minor version is adopted by editing its `[compat]`
|
|
43
|
-
entries.
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
# Simulates, for every case directory named after the phantom, the design's
|
|
2
|
-
# files and the file exported from its cache, and writes the two signals there.
|
|
3
|
-
#
|
|
4
|
-
# A case directory holds `design.txt`, the design's files in play order, one
|
|
5
|
-
# per line, and `exported.seq`; it receives `design.sig` and `exported.sig`:
|
|
6
|
-
# every ADC sample in play order, as little-endian complex128, without the
|
|
7
|
-
# ADC's offsets applied.
|
|
8
|
-
using KomaMRICore, KomaMRIFiles
|
|
9
|
-
|
|
10
|
-
"""The phantom a file holds: the spin count, then x, y, z (m), ρ, T1, T2 (s) and Δw (rad/s)."""
|
|
11
|
-
function phantom(path)
|
|
12
|
-
open(path) do io
|
|
13
|
-
n = read(io, Int64)
|
|
14
|
-
x, y, z, ρ, T1, T2, Δw = (read!(io, Vector{Float64}(undef, n)) for _ in 1:7)
|
|
15
|
-
Phantom(; name="pulserver", x, y, z, ρ, T1, T2, Δw)
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
"""
|
|
20
|
-
The blocks of `file`, each block's gradients turned by its rotation extension.
|
|
21
|
-
|
|
22
|
-
KomaMRI turns a block by adding up its rotated gradients and simplifies the
|
|
23
|
-
sum, dropping both samples of a corner held twice at one time, or at two times
|
|
24
|
-
closer than rounding, such as the peak of a trapezoid without a flat top
|
|
25
|
-
(KomaMRIBase 0.14). The gradients are turned here instead, and kept at every
|
|
26
|
-
corner of the three.
|
|
27
|
-
"""
|
|
28
|
-
function turned(file)
|
|
29
|
-
seq = read_seq(file; verbose=false, apply_rotations=false)
|
|
30
|
-
GR = Matrix{Grad}(undef, size(seq.GR))
|
|
31
|
-
GR .= seq.GR
|
|
32
|
-
for block in axes(GR, 2), ext in seq.EXT[block]
|
|
33
|
-
ext isa KomaMRIBase.QuaternionRot || continue
|
|
34
|
-
GR[:, block] = turn(KomaMRIBase.rotation_matrix(ext), GR[:, block])
|
|
35
|
-
end
|
|
36
|
-
return Sequence(GR, seq.RF, seq.ADC, seq.DUR, seq.EXT, seq.DEF)
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
"""The gradients `grads` turned by `R`, joined linearly through all their corners, timed to 1 ns."""
|
|
40
|
-
function turn(R, grads)
|
|
41
|
-
samples = map(grads) do g
|
|
42
|
-
s = KomaMRIBase.event_samples(g)
|
|
43
|
-
(t=round.(s.t; digits=9), A=s.A)
|
|
44
|
-
end
|
|
45
|
-
t = KomaMRIBase.merge_sampling_times((s.t for s in samples)...)
|
|
46
|
-
waves = [KomaMRIBase.linear_interpolate_samples(s, t; default=0.0) for s in samples]
|
|
47
|
-
return map(axes(R, 1)) do axis
|
|
48
|
-
a = sum(R[axis, k] .* waves[k] for k in eachindex(waves))
|
|
49
|
-
all(iszero, a) ? Grad(0.0, 0.0) : Grad(a, diff(t), 0.0, 0.0, t[1], a[1], a[end])
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
"""The blocks of `files` in turn, every ADC without its offsets."""
|
|
54
|
-
function played(files)
|
|
55
|
-
seq = reduce(+, (turned(file) for file in files))
|
|
56
|
-
for adc in seq.ADC
|
|
57
|
-
adc.Δf = 0.0
|
|
58
|
-
adc.ϕ = 0.0
|
|
59
|
-
end
|
|
60
|
-
return seq
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
# Every RF and gradient sample is a simulation time, so both files are
|
|
64
|
-
# simulated through the points they hold.
|
|
65
|
-
params() = Dict{String,Any}(
|
|
66
|
-
"return_type" => "mat",
|
|
67
|
-
"precision" => "f64",
|
|
68
|
-
"preserve_samples" => (:rf, :gradients),
|
|
69
|
-
"Δt_rf" => 1e-5,
|
|
70
|
-
)
|
|
71
|
-
|
|
72
|
-
function main(args)
|
|
73
|
-
obj = phantom(args[1])
|
|
74
|
-
sys = Scanner()
|
|
75
|
-
for case in args[2:end]
|
|
76
|
-
design = readlines(joinpath(case, "design.txt"))
|
|
77
|
-
exported = [joinpath(case, "exported.seq")]
|
|
78
|
-
for (name, files) in (("design", design), ("exported", exported))
|
|
79
|
-
elapsed = @elapsed signal = simulate(
|
|
80
|
-
obj, played(files), sys; sim_params=params(), verbose=false
|
|
81
|
-
)
|
|
82
|
-
write(joinpath(case, name * ".sig"), ComplexF64.(vec(signal)))
|
|
83
|
-
println(basename(case), ": ", name, ", ", length(signal), " samples in ",
|
|
84
|
-
round(elapsed; digits=1), " s")
|
|
85
|
-
end
|
|
86
|
-
end
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
main(ARGS)
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
"""What the cache plays, simulated by KomaMRI: the exported file gives the design's signal.
|
|
2
|
-
|
|
3
|
-
Runs where ``PULSERVER_KOMA_PROJECT`` names a Julia project holding KomaMRI,
|
|
4
|
-
such as ``tests/koma`` once instantiated, with ``julia`` on the path.
|
|
5
|
-
"""
|
|
6
|
-
|
|
7
|
-
import os
|
|
8
|
-
import shutil
|
|
9
|
-
import subprocess
|
|
10
|
-
from pathlib import Path
|
|
11
|
-
from types import SimpleNamespace
|
|
12
|
-
|
|
13
|
-
import numpy as np
|
|
14
|
-
import pypulseqpp as pp
|
|
15
|
-
import pytest
|
|
16
|
-
from _zoo import SMALL, designed
|
|
17
|
-
from pypulseqpp import sequences
|
|
18
|
-
|
|
19
|
-
from pulserver import ir, virtual
|
|
20
|
-
|
|
21
|
-
PROJECT = os.environ.get("PULSERVER_KOMA_PROJECT")
|
|
22
|
-
KOMA = Path(__file__).parent / "koma"
|
|
23
|
-
FIXTURES = Path(__file__).parent / "fixtures" / "sequences"
|
|
24
|
-
SYSTEM = pp.Opts(B0=3.0)
|
|
25
|
-
#: Relative to the peak sample of the design's signal. The text format writes a
|
|
26
|
-
#: turned gradient's amplitude to six significant figures, and the phase that
|
|
27
|
-
#: rounding accrues over a spoiler's moment stays well below this.
|
|
28
|
-
TOLERANCE = 1e-3
|
|
29
|
-
#: The cases ``PULSERVER_KOMA_CASES`` names, comma-separated; every one without it.
|
|
30
|
-
NAMES = [
|
|
31
|
-
name
|
|
32
|
-
for name in sorted(
|
|
33
|
-
p.stem for p in FIXTURES.glob("*.seq") if not p.stem.endswith("_b")
|
|
34
|
-
)
|
|
35
|
-
+ sorted(SMALL)
|
|
36
|
-
if not os.environ.get("PULSERVER_KOMA_CASES")
|
|
37
|
-
or name in os.environ["PULSERVER_KOMA_CASES"].split(",")
|
|
38
|
-
]
|
|
39
|
-
|
|
40
|
-
pytestmark = pytest.mark.skipif(
|
|
41
|
-
PROJECT is None, reason="PULSERVER_KOMA_PROJECT names no Julia project"
|
|
42
|
-
)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
def _phantom():
|
|
46
|
-
"""Return spins filling an elliptic cylinder 20 cm long around the isocentre.
|
|
47
|
-
|
|
48
|
-
Planes of spins lie 2 mm apart within 3 cm of the isocentre, where the
|
|
49
|
-
slices of the 2D sequences lie, and 10 mm apart beyond, past the edges of
|
|
50
|
-
the slabs. Density, T1, T2 and off-resonance each vary across the object,
|
|
51
|
-
none of them symmetrically, so a turned or mistimed readout, a shifted
|
|
52
|
-
slice or slab and a wrong pulse each change the signal. Positions are in
|
|
53
|
-
m, relaxation times in s and the off-resonance in Hz.
|
|
54
|
-
"""
|
|
55
|
-
grid = np.linspace(-0.08, 0.08, 17)
|
|
56
|
-
beyond = np.linspace(0.04, 0.1, 7)
|
|
57
|
-
planes = np.concatenate([-beyond[::-1], np.linspace(-0.03, 0.03, 31), beyond])
|
|
58
|
-
x, y, z = np.meshgrid(grid, grid, planes, indexing="ij")
|
|
59
|
-
inside = (x / 0.09) ** 2 + (y / 0.07) ** 2 <= 1.0
|
|
60
|
-
x, y, z = x[inside], y[inside], z[inside]
|
|
61
|
-
return SimpleNamespace(
|
|
62
|
-
positions=np.column_stack([x, y, z]),
|
|
63
|
-
density=1.0 + 0.5 * (x > 0.02) - 0.3 * (y < -0.03) + 0.2 * (z > 0.0),
|
|
64
|
-
t1=0.6 + 5.0 * (x + 0.08),
|
|
65
|
-
t2=0.04 + 0.5 * (y + 0.08),
|
|
66
|
-
off_resonance=20.0 * y / 0.07 + 10.0 * z / 0.03,
|
|
67
|
-
)
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
def _write_phantom(spins, path):
|
|
71
|
-
"""Write the spins as ``simulate.jl`` reads them: their count, then x, y, z, density, T1, T2 and the off-resonance in rad/s."""
|
|
72
|
-
columns = (
|
|
73
|
-
*spins.positions.T,
|
|
74
|
-
spins.density,
|
|
75
|
-
spins.t1,
|
|
76
|
-
spins.t2,
|
|
77
|
-
2.0 * np.pi * spins.off_resonance,
|
|
78
|
-
)
|
|
79
|
-
with path.open("wb") as file:
|
|
80
|
-
np.array([spins.density.size], dtype="<i8").tofile(file)
|
|
81
|
-
for column in columns:
|
|
82
|
-
column.astype("<f8").tofile(file)
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
def _design(name, directory):
|
|
86
|
-
"""Write the design ``name`` names into ``directory`` and return its first file."""
|
|
87
|
-
if name in SMALL:
|
|
88
|
-
path = directory / "scan.seq"
|
|
89
|
-
sequences.write(path, designed(name))
|
|
90
|
-
return path
|
|
91
|
-
shutil.copytree(FIXTURES, directory, dirs_exist_ok=True)
|
|
92
|
-
return directory / f"{name}.seq"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
def _as_komamri_reads_it(first, directory):
|
|
96
|
-
"""Return the design's files in play order, each as KomaMRI is to read it.
|
|
97
|
-
|
|
98
|
-
KomaMRI drops the ppm term of an RF or ADC offset, so a file carrying one
|
|
99
|
-
is given to it as Pulseq 1.4.1, whose writer resolves ppm offsets at the
|
|
100
|
-
field the cache is converted at.
|
|
101
|
-
"""
|
|
102
|
-
files = []
|
|
103
|
-
for index, (path, seq) in enumerate(pp.io.read_chain(first)):
|
|
104
|
-
libraries = seq.libraries()
|
|
105
|
-
if np.any(libraries.rf[:, 6:8]) or np.any(libraries.adc[:, 3:5]):
|
|
106
|
-
path = directory / f"resolved_{index}.seq"
|
|
107
|
-
seq.write_v141(str(path), gamma=SYSTEM.gamma, field=SYSTEM.B0)
|
|
108
|
-
files.append(str(path.resolve()))
|
|
109
|
-
return files
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
@pytest.fixture(scope="module")
|
|
113
|
-
def simulated(tmp_path_factory):
|
|
114
|
-
"""The signals KomaMRI simulates of each design, by name, and of its exported cache, each without the ADC's offsets."""
|
|
115
|
-
root = tmp_path_factory.mktemp("koma")
|
|
116
|
-
spins = _phantom()
|
|
117
|
-
_write_phantom(spins, root / "phantom.bin")
|
|
118
|
-
cases = []
|
|
119
|
-
for name in NAMES:
|
|
120
|
-
case = root / name
|
|
121
|
-
(case / "design").mkdir(parents=True)
|
|
122
|
-
first = _design(name, case / "design")
|
|
123
|
-
ir.convert(first, SYSTEM)
|
|
124
|
-
virtual.export(first, case / "exported.seq", SYSTEM)
|
|
125
|
-
files = _as_komamri_reads_it(first, case)
|
|
126
|
-
(case / "design.txt").write_text("\n".join(files) + "\n")
|
|
127
|
-
cases.append(case)
|
|
128
|
-
subprocess.run(
|
|
129
|
-
[
|
|
130
|
-
"julia",
|
|
131
|
-
f"--project={PROJECT}",
|
|
132
|
-
str(KOMA / "simulate.jl"),
|
|
133
|
-
str(root / "phantom.bin"),
|
|
134
|
-
*map(str, cases),
|
|
135
|
-
],
|
|
136
|
-
check=True,
|
|
137
|
-
)
|
|
138
|
-
signals = {}
|
|
139
|
-
for case in cases:
|
|
140
|
-
design, exported = (
|
|
141
|
-
np.fromfile(case / f"{kind}.sig", dtype="<c16")
|
|
142
|
-
for kind in ("design", "exported")
|
|
143
|
-
)
|
|
144
|
-
signals[case.name] = SimpleNamespace(design=design, exported=exported)
|
|
145
|
-
return signals
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
def _apart(signal, reference):
|
|
149
|
-
"""Return the largest difference between two signals, relative to the reference's peak sample."""
|
|
150
|
-
return np.abs(signal - reference).max() / np.abs(reference).max()
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
@pytest.mark.parametrize("name", NAMES)
|
|
154
|
-
def test_komamri_simulates_the_signal_of_the_design_from_the_exported_cache(
|
|
155
|
-
simulated, name
|
|
156
|
-
):
|
|
157
|
-
design, exported = simulated[name].design, simulated[name].exported
|
|
158
|
-
|
|
159
|
-
assert exported.size == design.size
|
|
160
|
-
print(f"{name}: {_apart(exported, design):.1e} of the design's peak")
|
|
161
|
-
np.testing.assert_allclose(
|
|
162
|
-
exported, design, rtol=0, atol=TOLERANCE * np.abs(design).max()
|
|
163
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|