bartorch 0.0.4__py3-none-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. bartorch/__init__.py +61 -0
  2. bartorch/_abi.py +1249 -0
  3. bartorch/_backend.py +288 -0
  4. bartorch/_buffer.py +76 -0
  5. bartorch/_call.py +477 -0
  6. bartorch/_catalogue.py +3663 -0
  7. bartorch/_coverage.py +149 -0
  8. bartorch/_cuda.py +102 -0
  9. bartorch/_dispatch.py +483 -0
  10. bartorch/_finufft.py +564 -0
  11. bartorch/_flags.py +88 -0
  12. bartorch/_grid.py +89 -0
  13. bartorch/_layout.py +106 -0
  14. bartorch/_lib.py +97 -0
  15. bartorch/_marshal.py +195 -0
  16. bartorch/_operator.py +311 -0
  17. bartorch/_options.py +165 -0
  18. bartorch/_settings.py +69 -0
  19. bartorch/apps/__init__.py +20 -0
  20. bartorch/apps/mobafit.py +126 -0
  21. bartorch/apps/pics.py +241 -0
  22. bartorch/apps/pocsense.py +178 -0
  23. bartorch/cli/__init__.py +207 -0
  24. bartorch/cli/_apps.py +84 -0
  25. bartorch/cli/_argv.py +221 -0
  26. bartorch/fourier.py +158 -0
  27. bartorch/interop.py +107 -0
  28. bartorch/interp.py +86 -0
  29. bartorch/io.py +51 -0
  30. bartorch/learning/__init__.py +24 -0
  31. bartorch/learning/channels.py +67 -0
  32. bartorch/learning/denoiser.py +190 -0
  33. bartorch/learning/unrolled.py +203 -0
  34. bartorch/libbartorch.dll +0 -0
  35. bartorch/libbartorch_finufft_x86_64_v2.dll +0 -0
  36. bartorch/libbartorch_finufft_x86_64_v3.dll +0 -0
  37. bartorch/libbartorch_finufft_x86_64_v4.dll +0 -0
  38. bartorch/linop/__init__.py +74 -0
  39. bartorch/linop/autograd.py +85 -0
  40. bartorch/linop/base.py +692 -0
  41. bartorch/linop/basic.py +389 -0
  42. bartorch/linop/combine.py +265 -0
  43. bartorch/linop/form.py +440 -0
  44. bartorch/linop/mri.py +1258 -0
  45. bartorch/linop/nufft.py +265 -0
  46. bartorch/linop/plan.py +211 -0
  47. bartorch/linop/sense.py +854 -0
  48. bartorch/linop/shape.py +563 -0
  49. bartorch/linop/signal.py +225 -0
  50. bartorch/nlop/__init__.py +73 -0
  51. bartorch/nlop/autograd.py +69 -0
  52. bartorch/nlop/base.py +1145 -0
  53. bartorch/nlop/basic.py +480 -0
  54. bartorch/nlop/bundle.py +473 -0
  55. bartorch/nlop/callback.py +228 -0
  56. bartorch/nlop/derivative.py +135 -0
  57. bartorch/nlop/irgnm.py +516 -0
  58. bartorch/nlop/mri.py +500 -0
  59. bartorch/nlop/plan.py +136 -0
  60. bartorch/nlop/simulation.py +359 -0
  61. bartorch/nlop/step.py +241 -0
  62. bartorch/optim/__init__.py +58 -0
  63. bartorch/optim/autograd.py +53 -0
  64. bartorch/optim/blocks.py +957 -0
  65. bartorch/optim/fixed_point.py +144 -0
  66. bartorch/optim/functional.py +233 -0
  67. bartorch/optim/linear.py +1233 -0
  68. bartorch/optim/pocs.py +133 -0
  69. bartorch/optim/scaling.py +89 -0
  70. bartorch/priors/__init__.py +53 -0
  71. bartorch/priors/autograd.py +41 -0
  72. bartorch/priors/base.py +618 -0
  73. bartorch/priors/denoise.py +155 -0
  74. bartorch/priors/implicit.py +120 -0
  75. bartorch/priors/terms.py +424 -0
  76. bartorch/thresh.py +48 -0
  77. bartorch/tools/__init__.py +21 -0
  78. bartorch/tools/calib.py +127 -0
  79. bartorch/tools/process.py +527 -0
  80. bartorch/tools/recon.py +270 -0
  81. bartorch/tools/sampling.py +93 -0
  82. bartorch/tools/simulate.py +103 -0
  83. bartorch/util.py +349 -0
  84. bartorch/wavelet.py +171 -0
  85. bartorch-0.0.4.dist-info/METADATA +160 -0
  86. bartorch-0.0.4.dist-info/RECORD +97 -0
  87. bartorch-0.0.4.dist-info/WHEEL +5 -0
  88. bartorch-0.0.4.dist-info/entry_points.txt +3 -0
  89. bartorch-0.0.4.dist-info/licenses/LICENSE +21 -0
  90. bartorch-0.0.4.dist-info/licenses/external/bart/LICENSE +30 -0
  91. bartorch-0.0.4.dist-info/licenses/external/blocksruntime/LICENSE.TXT +76 -0
  92. bartorch-0.0.4.dist-info/licenses/external/finufft/LICENSE +219 -0
  93. bartorch-0.0.4.dist-info/licenses/external/finufft/NOTICE +42 -0
  94. bartorch-0.0.4.dist-info/licenses/external/pocketfft/LICENSE.md +25 -0
  95. bartorch-0.0.4.dist-info/licenses/finufft-dependencies/DUCC0/LICENSE +33 -0
  96. bartorch-0.0.4.dist-info/licenses/finufft-dependencies/POET/LICENSE +21 -0
  97. bartorch-0.0.4.dist-info/licenses/finufft-dependencies/xsimd/LICENSE +29 -0
bartorch/__init__.py ADDED
@@ -0,0 +1,61 @@
1
+ """BART, the Berkeley Advanced Reconstruction Toolbox, in-process on torch tensors.
2
+
3
+ Shapes are C order: an axis argument is an index into a tensor's shape, never
4
+ a BART bitmask.
5
+ """
6
+
7
+ from __future__ import annotations
8
+
9
+ from importlib.metadata import PackageNotFoundError, version
10
+
11
+ from bartorch import (
12
+ _settings,
13
+ apps,
14
+ cli,
15
+ fourier,
16
+ interop,
17
+ interp,
18
+ io,
19
+ learning,
20
+ linop,
21
+ nlop,
22
+ optim,
23
+ priors,
24
+ thresh,
25
+ tools,
26
+ util,
27
+ wavelet,
28
+ )
29
+ from bartorch._dispatch import BartError
30
+ from bartorch._settings import * # noqa: F401,F403
31
+ from bartorch.fourier import * # noqa: F401,F403
32
+ from bartorch.interp import * # noqa: F401,F403
33
+ from bartorch.thresh import * # noqa: F401,F403
34
+ from bartorch.util import * # noqa: F401,F403
35
+ from bartorch.wavelet import * # noqa: F401,F403
36
+
37
+ try:
38
+ __version__ = version("bartorch")
39
+ except PackageNotFoundError:
40
+ __version__ = "0.0.0.dev0"
41
+
42
+ __all__ = [
43
+ "BartError",
44
+ "__version__",
45
+ "apps",
46
+ "cli",
47
+ "interop",
48
+ "io",
49
+ "learning",
50
+ "linop",
51
+ "nlop",
52
+ "optim",
53
+ "priors",
54
+ "tools",
55
+ *_settings.__all__,
56
+ *fourier.__all__,
57
+ *interp.__all__,
58
+ *thresh.__all__,
59
+ *util.__all__,
60
+ *wavelet.__all__,
61
+ ]