cardio 2025.10.1__tar.gz → 2026.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. {cardio-2025.10.1 → cardio-2026.1.0}/PKG-INFO +7 -8
  2. {cardio-2025.10.1 → cardio-2026.1.0}/README.md +6 -7
  3. {cardio-2025.10.1 → cardio-2026.1.0}/pyproject.toml +2 -2
  4. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/__init__.py +1 -1
  5. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/app.py +0 -2
  6. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/blend_transfer_functions.py +0 -3
  7. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/color_transfer_function.py +0 -2
  8. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/logic.py +254 -172
  9. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/mesh.py +0 -3
  10. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/object.py +0 -2
  11. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/orientation.py +6 -3
  12. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/piecewise_function.py +0 -2
  13. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/property_config.py +0 -3
  14. cardio-2026.1.0/src/cardio/rotation.py +211 -0
  15. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/scene.py +51 -22
  16. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/segmentation.py +1 -4
  17. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/transfer_function_pair.py +0 -2
  18. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/types.py +0 -2
  19. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/ui.py +350 -173
  20. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/utils.py +0 -7
  21. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/volume.py +174 -44
  22. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/volume_property.py +0 -2
  23. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/volume_property_presets.py +0 -3
  24. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/window_level.py +0 -2
  25. {cardio-2025.10.1 → cardio-2026.1.0}/LICENSE +0 -0
  26. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/assets/bone.toml +0 -0
  27. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/assets/vascular_closed.toml +0 -0
  28. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/assets/vascular_open.toml +0 -0
  29. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/assets/xray.toml +0 -0
  30. {cardio-2025.10.1 → cardio-2026.1.0}/src/cardio/screenshot.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: cardio
3
- Version: 2025.10.1
3
+ Version: 2026.1.0
4
4
  Summary: A simple web-based viewer for 3D and 4D ('cine') medical imaging data.
5
5
  Keywords: Medical,Imaging,3D,4D,Visualization
6
6
  Author: Davis Marc Vigneault
@@ -59,12 +59,11 @@ Description-Content-Type: text/markdown
59
59
  `cardio` is a simple web-based viewer for 3D and 4D ('cine') medical imaging data,
60
60
  built primarily on [trame](https://github.com/kitware/trame),
61
61
  [vtk](https://github.com/kitware/vtk), and
62
- [itk](https://github.com/insightsoftwareconsortium/itk). `cardio` is able to
63
- render sequences of mesh files (e.g., `\*.obj` files), segmentation files (e.g.
64
- `\*nii.gz` files with discrete labels) and volume renderings of grayscale images
65
- (e.g. \*.nii.gz files with continuous values). `cardio` is launched from the
66
- commandline and may be configured either directly from the commandline, via a static
67
- TOML configuration file, or a combination of the two.
62
+ [itk](https://github.com/insightsoftwareconsortium/itk). `cardio` can render sequences
63
+ of mesh files (e.g., `\*.obj` files), segmentation files (e.g., `\*nii.gz` files with
64
+ discrete labels) and volume renderings of grayscale images (e.g., `\*.nii.gz` files with
65
+ continuous values). `cardio` is launched from the commandline and may be configured via
66
+ commandline arguments, a static TOML configuration file, or a combination of the two.
68
67
 
69
68
  ## Quickstart
70
69
 
@@ -76,7 +75,7 @@ $ uv init
76
75
  $ uv add cardio
77
76
  $ . ./.venv/bin/activate
78
77
  (project) cardio --version
79
- cardio 2025.10.1
78
+ cardio 2026.1.0
80
79
  ```
81
80
 
82
81
  ### Developing
@@ -3,12 +3,11 @@
3
3
  `cardio` is a simple web-based viewer for 3D and 4D ('cine') medical imaging data,
4
4
  built primarily on [trame](https://github.com/kitware/trame),
5
5
  [vtk](https://github.com/kitware/vtk), and
6
- [itk](https://github.com/insightsoftwareconsortium/itk). `cardio` is able to
7
- render sequences of mesh files (e.g., `\*.obj` files), segmentation files (e.g.
8
- `\*nii.gz` files with discrete labels) and volume renderings of grayscale images
9
- (e.g. \*.nii.gz files with continuous values). `cardio` is launched from the
10
- commandline and may be configured either directly from the commandline, via a static
11
- TOML configuration file, or a combination of the two.
6
+ [itk](https://github.com/insightsoftwareconsortium/itk). `cardio` can render sequences
7
+ of mesh files (e.g., `\*.obj` files), segmentation files (e.g., `\*nii.gz` files with
8
+ discrete labels) and volume renderings of grayscale images (e.g., `\*.nii.gz` files with
9
+ continuous values). `cardio` is launched from the commandline and may be configured via
10
+ commandline arguments, a static TOML configuration file, or a combination of the two.
12
11
 
13
12
  ## Quickstart
14
13
 
@@ -20,7 +19,7 @@ $ uv init
20
19
  $ uv add cardio
21
20
  $ . ./.venv/bin/activate
22
21
  (project) cardio --version
23
- cardio 2025.10.1
22
+ cardio 2026.1.0
24
23
  ```
25
24
 
26
25
  ### Developing
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "cardio"
7
- version = "2025.10.1"
7
+ version = "2026.1.0"
8
8
  authors = [
9
9
  {name = "Davis Marc Vigneault", email = "davis.vigneault@gmail.com"}
10
10
  ]
@@ -62,7 +62,7 @@ repository = "https://github.com/sudomakeinstall/cardio"
62
62
  profile = "black"
63
63
 
64
64
  [tool.bumpver]
65
- current_version = "2025.10.1"
65
+ current_version = "2026.1.0"
66
66
  version_pattern = "YYYY.MM.INC0"
67
67
  commit_message = "ENH: Bump version from {old_version} => {new_version}"
68
68
  commit = true
@@ -26,4 +26,4 @@ __all__ = [
26
26
  "window_level",
27
27
  ]
28
28
 
29
- __version__ = "2025.10.1"
29
+ __version__ = "2026.1.0"
@@ -1,11 +1,9 @@
1
1
  #!/usr/bin/env python
2
2
 
3
- # Third Party
4
3
  import pydantic_settings as ps
5
4
  import trame as tm
6
5
  import trame.decorators
7
6
 
8
- # Internal
9
7
  from . import __version__
10
8
  from .logic import Logic
11
9
  from .scene import Scene
@@ -1,7 +1,4 @@
1
- # System
2
1
  import numpy as np
3
-
4
- # Third Party
5
2
  import vtk
6
3
 
7
4
 
@@ -1,8 +1,6 @@
1
- # Third Party
2
1
  import pydantic as pc
3
2
  import vtk
4
3
 
5
- # Internal
6
4
  from .types import RGBColor
7
5
 
8
6