pulserver 0.4.6__tar.gz → 0.4.8__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.8}/.github/workflows/wheels.yml +1 -1
- {pulserver-0.4.6 → pulserver-0.4.8}/.gitignore +0 -2
- {pulserver-0.4.6 → pulserver-0.4.8}/PKG-INFO +3 -3
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/developer-guide/index.md +1 -1
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/developer-guide/internals/virtual-scanner.md +6 -22
- pulserver-0.4.8/docs/developer-guide/style.md +24 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/developer-guide/workflow.md +0 -1
- {pulserver-0.4.6 → pulserver-0.4.8}/pyproject.toml +2 -2
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/bssfp2d.py +4 -8
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/ir/_calibration.py +23 -12
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_ir_receive_calibration.py +29 -1
- 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.8}/.claude/skills/build-and-test/SKILL.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/.claude/skills/write-documentation/SKILL.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/.dockerignore +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/.gitattributes +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/.github/DISCUSSION_TEMPLATE/ideas.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/.github/DISCUSSION_TEMPLATE/q-a.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/.github/ISSUE_TEMPLATE/documentation.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/.github/dependabot.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/.github/workflows/codeql.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/.github/workflows/console.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/.github/workflows/docs.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/.github/workflows/fields.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/.github/workflows/image.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/.github/workflows/style.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/.github/workflows/tags-release.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/.github/workflows/test-ci.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/.pre-commit-config.yaml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/AGENTS.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/CMakeLists.txt +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/CODE_OF_CONDUCT.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/CONTRIBUTING.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/LICENSE +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/LICENSES/gadgetron-python-MIT.txt +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/LICENSES/python-ismrmrd-server-MIT.txt +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/NEXT.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/README.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/SECURITY.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/SKILLS.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/codecov.yml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docker/Dockerfile +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docker/compose.yaml +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docker/entrypoint.sh +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docker/limits/limits.txt +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docker/smoke.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_static/architecture-dark.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_static/architecture.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_static/capabilities.js +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_static/context-dark.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_static/context.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_static/pulseg-dark.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_static/pulseg.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_static/pulserver-logo-dark.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_static/pulserver-logo.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_static/pulserver-mark-dark.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_static/pulserver-mark.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_static/pulserver.css +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_static/repetition-dark.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_static/repetition.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_static/safety-dark.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_static/safety.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_static/session-dark.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_static/session.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_static/virtual-dark.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_static/virtual.svg +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_templates/autosummary/base.rst +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_templates/autosummary/class.rst +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_templates/autosummary/enum.rst +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/_templates/autosummary/function.rst +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/api/design.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/api/host.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/api/index.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/api/ir.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/api/mrd.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/api/protocol.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/api/proxy.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/api/recon.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/api/validate.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/api/virtual.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/api_objects.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/colab.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/conf.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/developer-guide/documentation.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/developer-guide/installation.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/developer-guide/internals/calibration.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/developer-guide/internals/index.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/developer-guide/internals/ir-cache.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/developer-guide/internals/protocol-wire.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/developer-guide/internals/reconstruction-proxy.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/developer-guide/internals/sar-ratios.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/developer-guide/releases.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/developer-guide/terminology.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/examples/course.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/examples/index.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/examples/tours.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/explanations/architecture.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/explanations/index.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/explanations/protocol.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/explanations/raw-data.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/explanations/reconstruction-session.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/explanations/reconstruction.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/explanations/safety-checks.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/explanations/scanner-representation.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/explanations/virtual-scanner.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/figure_style.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/index.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/misc/contributors.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/misc/index.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/misc/license.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/misc/related.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/user-guide/index.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/user-guide/reconstruction-client.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/user-guide/reconstruction-plugins.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/user-guide/running.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/user-guide/scanner-sequences.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/docs/user-guide/virtual-scanner.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/gallery/01-course/01_protocol_to_image.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/gallery/01-course/02_sequence_plugin.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/gallery/01-course/03_scanner_representation.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/gallery/01-course/04_reconstruction_plugin.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/gallery/01-course/05_recon_plugin.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/gallery/01-course/06_testing_on_the_virtual_scanner.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/gallery/01-course/README.rst +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/gallery/01-course/_gallery_header.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/gallery/02-tours/01_protocol_resolution.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/gallery/02-tours/02_segmentation.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/gallery/02-tours/03_fov_offset_enrichment.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/gallery/02-tours/README.rst +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/gallery/02-tours/_gallery_header.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/gallery/README.rst +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/gallery/_gallery_header.md +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/scripts/build_docs.sh +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/scripts/check_throughput.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/scripts/format_and_lint.sh +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/scripts/make_artwork.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/scripts/publish_docs.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/setup.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/CMakeLists.txt +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/cache/pulseg_cache.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/core/pulseg_core.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/core/pulseg_error.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/core/pulseg_math.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/include/pulseg/pulseg.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/include/pulseg/pulseg_cache.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/include/pulseg/pulseg_collection.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/include/pulseg/pulseg_config.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/include/pulseg/pulseg_errors.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/include/pulseg/pulseg_io.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/include/pulseg/pulseg_playout.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/include/pulseg/pulseg_protocol.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/include/pulseg/pulseg_types.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/include/pulseq/pulseq.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/include/pulseq/pulseq_config.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/include/pulseq/pulseq_types.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/io/pulseg_opts.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/io/pulseg_protocol.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/playout/pulseg_playout.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/pulseg_internal.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/pulseq/pulseq_internal.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/pulseq/pulseq_shape.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/structure/pulseg_descriptor.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/structure/pulseg_getters.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/structure/pulseg_repetition.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/c/structure/pulseg_waves.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/cpp/fourier/bindings.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/cpp/fourier/bindings.hpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/cpp/fourier/parallel.hpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/cpp/fourier/timeline.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/cpp/fourier/timeline.hpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/cpp/ir/collection.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/cpp/ir/dedup.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/cpp/ir/from_libraries.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/cpp/ir/from_libraries.hpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/cpp/ir/gradient_stretch.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/cpp/ir/pulseg_convert.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/cpp/ir/pulseq_file.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/cpp/ir/pulseq_file.h +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/cpp/ir/structure.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/cpp/ir/wave_plan.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/cpp/ir/waves.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/cpp/module.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/cpp/native.hpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/cpp/playout.cpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/cpp/playout.hpp +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_accelerators.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_cli.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_labels.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_logs.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_memory.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_plugins.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/_evaluation.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/_inversion.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/_pmc.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/_saturation.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/_slab.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/_user.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/recon/epi.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/recon/nufft.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/recon/nufft_train.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/recon/pics.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/recon/pics_train.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/recon/pmc.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/bssfp3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/epi2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/epi3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/fse3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/gre2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/gre3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/gre_multiecho2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/gre_multiecho3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/gre_propeller2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/gre_radial2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/gre_spiral2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/gre_stack_of_blades3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/gre_stack_of_spirals3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/gre_stack_of_stars3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/mprage3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/mprage_stack_of_spirals3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/mprage_stack_of_stars3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/se2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/se3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/se_epi_propeller2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/se_propeller2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/se_radial2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/se_spiral2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/se_stack_of_blades3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/se_stack_of_spirals3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/se_stack_of_stars3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/_zoo/sequences/zte3d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/design/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/design/_entries.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/design/_options.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/design/_plugin.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/design/_rf.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/host/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/host/__main__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/host/_blocks.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/host/_command.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/host/_limits.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/host/_push.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/host/_server.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/host/_service.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/host/_store.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/ir/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/ir/_checks.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/ir/_convert.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/ir/_playout.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/ir/_source.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/ir/_vendor.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/ir/_waves.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/mrd/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/mrd/_acquisitions.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/mrd/_header.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/mrd/_images.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/mrd/_metadata.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/mrd/_sequence.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/protocol/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/protocol/_keys.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/protocol/_prescription.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/protocol/_schema.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/protocol/_wire.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/proxy/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/proxy/__main__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/proxy/_designs.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/proxy/_enrich.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/proxy/_held.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/proxy/_intake.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/proxy/_local.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/proxy/_motion.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/proxy/_proxy.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/proxy/_queue.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/proxy/_receiver.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/proxy/_seqdesc.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/proxy/_workers.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/__main__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/_buffers.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/_calibration.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/_correct.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/_exam_image.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/_figure.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/_loader.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/_replay.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/_runtime/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/_runtime/application.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/_runtime/concurrency.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/_runtime/connection.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/_runtime/constants.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/_runtime/exam.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/_runtime/mrd2dicom.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/_runtime/offline.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/_runtime/readers.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/_runtime/writers.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/_units.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/gadgets.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/handlers/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/handlers/epi.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/handlers/nufft.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/handlers/nufft_train.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/handlers/pics.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/handlers/pics_train.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/handlers/pmc.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/recon/plugin.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/validate/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/validate/_command.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/validate/_compare.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/validate/_validate.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/validate/_xml.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/virtual/__init__.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/virtual/_brainweb.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/virtual/_client.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/virtual/_coils.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/virtual/_command.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/virtual/_console.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/virtual/_export.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/virtual/_fourier.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/virtual/_girf.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/virtual/_localizer.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/virtual/_motion.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/virtual/_phantom.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/virtual/_stream.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/virtual/_timeline.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/src/pulserver/virtual/_tissue.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/_analytic.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/_host.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/_seqtext.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/_synthetic.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/_virtual.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/_zoo.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/conftest.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/fixtures/bloch/bssfp.npy +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/fixtures/bloch/epi_2d_main.npy +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/fixtures/bloch/gre_2d_3sl.npy +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/fixtures/bloch/steady_dess_hard_0hz.npy +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/fixtures/bloch/steady_dess_hard_30hz.npy +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/fixtures/bloch/steady_echo_hard_0hz.npy +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/fixtures/bloch/steady_echo_hard_30hz.npy +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/fixtures/bloch/steady_echo_selective_0hz.npy +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/fixtures/bloch/steady_fid_hard_0hz.npy +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/fixtures/sequences/dedup_gre_pair.seq +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/fixtures/sequences/dedup_gre_pair_b.seq +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/fixtures/sequences/epi_2d_main.seq +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/fixtures/sequences/gre_2d_3sl.seq +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/fixtures/sequences/mprage_stack_of_spirals_3d.seq +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/fixtures/sequences/zte_3d.seq +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/native/check_initializers.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/native/print_wave_samples.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/native/read_cache_summary.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/native/read_rf_definitions.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/native/read_rf_timing.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/native/replay_an_instance.c +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/plugins/crash.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/plugins/gre2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/plugins/gre2d_raw.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/plugins/rf_train.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/plugins/stall.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/plugins/strong.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/plugins/tiny.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/plugins/typed.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon/test_app.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon/test_buffers.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon/test_calibration.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon/test_coil_compression.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon/test_connection.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon/test_correct.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon/test_epi.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon/test_exam_image.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon/test_flags.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon/test_gadgets.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon/test_handlers.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon/test_images.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon/test_loader.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon/test_mrd2dicom.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon/test_nufft.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon/test_pics.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon/test_pmc.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon/test_prewhiten.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon/test_readers_writers.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon/test_slots.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon/test_units.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon_plugins/children.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon_plugins/crash.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon_plugins/device.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon_plugins/exam.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon_plugins/gre2d.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/recon_plugins/pose.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_console.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_console_sequences.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_design_push.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_design_server.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_design_service.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_docs.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_docstring_defaults.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_docstrings.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_enrich.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_exam_artifacts.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_exam_calibration.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_exam_sharing.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_host_slots.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_image.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_ir.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_ir_checks.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_ir_designed.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_ir_extensions.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_ir_gradient_stretch.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_ir_grouping.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_ir_labels.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_ir_playout.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_ir_prescan.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_ir_prescan_tour.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_ir_profile.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_ir_repetition.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_ir_rf.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_ir_rf_freq.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_ir_segments.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_ir_source.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_ir_steady_excitation.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_ir_timing.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_ir_vendor.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_ir_waves.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_keys.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_limits.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_logs.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_memory.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_motion.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_mrd_images.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_mrd_sequence.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_plugin_options.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_plugins.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_protocol.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_proxy.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_publish_docs.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_resolution.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_rf_layout.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_scan_command.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_seqdesc.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_sequence_plugin.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_smoke.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_validate.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_virtual.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_virtual_brainweb.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_virtual_clock.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_virtual_coils.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_virtual_export.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_virtual_fourier.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_virtual_localizer.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_virtual_sequences.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_wire.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_zoo_defaults.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_zoo_evaluation.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_zoo_fov_offset.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/tests/test_zoo_mrd_labels.py +0 -0
- {pulserver-0.4.6 → pulserver-0.4.8}/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.8
|
|
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
|
|
@@ -38,7 +38,7 @@ Requires-Dist: pytest>=9.1.1; extra == "dev"
|
|
|
38
38
|
Requires-Dist: pytest-cov>=7.1.0; extra == "dev"
|
|
39
39
|
Requires-Dist: pytest-xdist>=3; extra == "dev"
|
|
40
40
|
Requires-Dist: coverage>=7.16.2; extra == "dev"
|
|
41
|
-
Requires-Dist: ruff==0.17.
|
|
41
|
+
Requires-Dist: ruff==0.17.2; extra == "dev"
|
|
42
42
|
Requires-Dist: pre-commit>=4.6.2; extra == "dev"
|
|
43
43
|
Requires-Dist: build; extra == "dev"
|
|
44
44
|
Provides-Extra: doc
|
|
@@ -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
|
|
|
@@ -24,7 +24,7 @@ classifiers = [
|
|
|
24
24
|
]
|
|
25
25
|
|
|
26
26
|
dependencies = [
|
|
27
|
-
"pypulseqpp>=0.0.
|
|
27
|
+
"pypulseqpp>=0.0.53",
|
|
28
28
|
"numpy>=2.2.6",
|
|
29
29
|
"ismrmrd>=1.15.0",
|
|
30
30
|
"pydicom>=3.0.2",
|
|
@@ -47,7 +47,7 @@ dev = [
|
|
|
47
47
|
"coverage>=7.16.2",
|
|
48
48
|
# Pinned, not ranged: a formatter that differs between a contributor and
|
|
49
49
|
# CI makes "one entry point" a lie. Dependabot proposes the bumps.
|
|
50
|
-
"ruff==0.17.
|
|
50
|
+
"ruff==0.17.2",
|
|
51
51
|
"pre-commit>=4.6.2",
|
|
52
52
|
"build",
|
|
53
53
|
]
|
|
@@ -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:
|
|
@@ -15,6 +15,9 @@ import pypulseqpp as pp
|
|
|
15
15
|
COVERAGE = 0.3
|
|
16
16
|
#: Net gradient area under this fraction of the absolute area is balanced.
|
|
17
17
|
BALANCE_TOLERANCE = 1e-2
|
|
18
|
+
#: Decimals, in m, signals are compared at: candidates equal to rounding
|
|
19
|
+
#: tie, and the first in play order is taken.
|
|
20
|
+
SIGNAL_DIGITS = 9
|
|
18
21
|
#: Plays of the calibration whose readouts set the gain.
|
|
19
22
|
FRAMES = 2
|
|
20
23
|
#: Rest before each play of the calibration, s, so it reads relaxed
|
|
@@ -54,6 +57,22 @@ class _File:
|
|
|
54
57
|
self.channels = np.asarray(sequence.rf_channels(), dtype=int)
|
|
55
58
|
self.durations = np.asarray(self.tables.block_durations, dtype=float)
|
|
56
59
|
self._signals: dict[int, np.ndarray] = {}
|
|
60
|
+
self._bandwidths: dict[tuple[int, int, int], float] = {}
|
|
61
|
+
|
|
62
|
+
def bandwidth(self, rf_id: int) -> float:
|
|
63
|
+
"""Return the bandwidth, Hz, of the RF of ``rf_id``.
|
|
64
|
+
|
|
65
|
+
It depends on the magnitude, phase and time shapes alone, so an
|
|
66
|
+
RF-spoiled train, whose every pulse is an RF definition of its own,
|
|
67
|
+
measures it once.
|
|
68
|
+
"""
|
|
69
|
+
row = self.tables.rf[rf_id - 1]
|
|
70
|
+
shape = (int(row[1]), int(row[2]), int(row[3]))
|
|
71
|
+
if shape not in self._bandwidths:
|
|
72
|
+
block = int(np.flatnonzero(self.rf == rf_id)[0]) + 1
|
|
73
|
+
rf = self.sequence.get_block(block).rf
|
|
74
|
+
self._bandwidths[shape] = float(pp.calc_rf_bandwidth(rf))
|
|
75
|
+
return self._bandwidths[shape]
|
|
57
76
|
|
|
58
77
|
def signal(self, rf_id: int) -> np.ndarray:
|
|
59
78
|
"""Return the RF waveform of ``rf_id``, Hz, one row per channel."""
|
|
@@ -130,9 +149,10 @@ def receive_calibration_sequence(
|
|
|
130
149
|
reading = [i for i, f in enumerate(files) if f.reads.any()]
|
|
131
150
|
calibration = None
|
|
132
151
|
if reading and not (len(reading) == 1 and _repeats_alike(files[reading[0]])):
|
|
152
|
+
# Equal signals, to rounding, go to the first in play order.
|
|
133
153
|
calibration = max(
|
|
134
154
|
(span for i in reading for span in _spans(files[i], i, channels)),
|
|
135
|
-
key=lambda span: span.signal,
|
|
155
|
+
key=lambda span: round(span.signal, SIGNAL_DIGITS),
|
|
136
156
|
default=None,
|
|
137
157
|
)
|
|
138
158
|
if not tour and calibration is None:
|
|
@@ -194,11 +214,6 @@ def _interval(f: _File, block: int) -> float:
|
|
|
194
214
|
return float(np.diff(starts[same]).min()) if same.size > 1 else 0.0
|
|
195
215
|
|
|
196
216
|
|
|
197
|
-
def _bandwidth(f: _File, rf_id: int) -> float:
|
|
198
|
-
block = int(np.flatnonzero(f.rf == rf_id)[0]) + 1
|
|
199
|
-
return float(pp.calc_rf_bandwidth(f.sequence.get_block(block).rf))
|
|
200
|
-
|
|
201
|
-
|
|
202
217
|
def _areas(f: _File, ids: np.ndarray) -> tuple[np.ndarray, bool]:
|
|
203
218
|
"""Area of each gradient id, Hz/m s; False where one is not a trapezoid."""
|
|
204
219
|
trapezoids = np.asarray(f.tables.trapezoids, dtype=float)
|
|
@@ -230,7 +245,6 @@ def _spans(f: _File, file: int, channels: int):
|
|
|
230
245
|
int(b) - 1: float(np.linalg.norm(g))
|
|
231
246
|
for b, g in zip(gradients.block, gradients.gradient, strict=True)
|
|
232
247
|
}
|
|
233
|
-
bandwidths: dict[int, float] = {}
|
|
234
248
|
for first, stop in zip(
|
|
235
249
|
excitations, [*excitations[1:], f.blocks.shape[0]], strict=True
|
|
236
250
|
):
|
|
@@ -242,12 +256,9 @@ def _spans(f: _File, file: int, channels: int):
|
|
|
242
256
|
if channels > 1:
|
|
243
257
|
drives = f.drives(first, channels)
|
|
244
258
|
flip *= float(drives.sum() / (drives.max() * math.sqrt(channels)))
|
|
245
|
-
|
|
246
|
-
bandwidths[rf_id] = _bandwidth(f, rf_id)
|
|
259
|
+
bandwidth = f.bandwidth(rf_id)
|
|
247
260
|
g = slice_gradient.get(first, 0.0)
|
|
248
|
-
thickness =
|
|
249
|
-
bandwidths[rf_id] / g if g > 0 and bandwidths[rf_id] > 0 else COVERAGE
|
|
250
|
-
)
|
|
261
|
+
thickness = bandwidth / g if g > 0 and bandwidth > 0 else COVERAGE
|
|
251
262
|
signal = math.sin(math.radians(min(flip, 90.0))) * min(thickness, COVERAGE)
|
|
252
263
|
areas, known = _areas(f, f.blocks[first:stop, _GX : _GZ + 1])
|
|
253
264
|
net, total = np.abs(areas.sum(axis=0)), np.abs(areas).sum(axis=0)
|
|
@@ -12,10 +12,11 @@ from pulserver.ir import Prescan, WaveBudget
|
|
|
12
12
|
SYSTEM = pp.Opts(max_grad=40, grad_unit="mT/m", max_slew=150, slew_unit="T/m/s")
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
def _repetition(seq, flip_deg, thickness, delay=5e-3, phase_area=0.0):
|
|
15
|
+
def _repetition(seq, flip_deg, thickness, delay=5e-3, phase_area=0.0, phase=0.0):
|
|
16
16
|
rf, gz, gzr = pp.make_sinc_pulse(
|
|
17
17
|
math.radians(flip_deg),
|
|
18
18
|
duration=2e-3,
|
|
19
|
+
phase_offset=phase,
|
|
19
20
|
slice_thickness=thickness,
|
|
20
21
|
time_bw_product=4,
|
|
21
22
|
system=SYSTEM,
|
|
@@ -99,6 +100,33 @@ def test_a_flip_angle_train_calibrates_on_its_largest_flip_at_its_own_amplitude(
|
|
|
99
100
|
assert _flips(calibration) == pytest.approx([80, 80], abs=0.1)
|
|
100
101
|
|
|
101
102
|
|
|
103
|
+
def test_an_rf_spoiled_train_measures_its_pulse_shape_once(tmp_path, monkeypatch):
|
|
104
|
+
seq = pp.Sequence(SYSTEM)
|
|
105
|
+
for k, flip in enumerate([10, 35, 80, 20, 55]):
|
|
106
|
+
_repetition(seq, flip, 5e-3, phase=math.radians(117) * k * (k + 1) / 2)
|
|
107
|
+
seq.write(str(tmp_path / "spoiled.seq"))
|
|
108
|
+
seq = pp.io.read(str(tmp_path / "spoiled.seq"))
|
|
109
|
+
measured = []
|
|
110
|
+
measure = pp.calc_rf_bandwidth
|
|
111
|
+
monkeypatch.setattr(
|
|
112
|
+
pp, "calc_rf_bandwidth", lambda rf: measured.append(rf) or measure(rf)
|
|
113
|
+
)
|
|
114
|
+
calibration = ir.receive_calibration_sequence([seq], SYSTEM)
|
|
115
|
+
|
|
116
|
+
assert len(seq.libraries().rf) == 5
|
|
117
|
+
assert len(measured) == 1
|
|
118
|
+
assert _flips(calibration) == pytest.approx([80, 80], abs=0.1)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
@pytest.mark.parametrize("flips", [(120, 150), (150, 120)])
|
|
122
|
+
def test_excitations_past_ninety_degrees_tie_and_the_first_played_wins(flips):
|
|
123
|
+
calibration = ir.receive_calibration_sequence(
|
|
124
|
+
[_periodic(flips[0], 5e-3), _periodic(flips[1], 5e-3)], SYSTEM
|
|
125
|
+
)
|
|
126
|
+
|
|
127
|
+
assert _flips(calibration) == pytest.approx([flips[0]] * 2, abs=0.1)
|
|
128
|
+
|
|
129
|
+
|
|
102
130
|
def test_a_sequence_without_readouts_generates_nothing():
|
|
103
131
|
seq = pp.Sequence(SYSTEM)
|
|
104
132
|
seq.add_block(pp.make_block_pulse(0.3, duration=1e-3, system=SYSTEM))
|
|
@@ -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)
|