lvpyioTools 2.6.0__tar.gz → 2.6.2__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.
- {lvpyiotools-2.6.0/src/lvpyioTools.egg-info → lvpyiotools-2.6.2}/PKG-INFO +1 -1
- {lvpyiotools-2.6.0 → lvpyiotools-2.6.2}/pyproject.toml +2 -2
- {lvpyiotools-2.6.0 → lvpyiotools-2.6.2}/src/lvpyioTools/frame.py +3 -2
- {lvpyiotools-2.6.0/src/lvpyioTools → lvpyiotools-2.6.2/src/lvpyioTools/scripts}/viewer.py +12 -4
- {lvpyiotools-2.6.0 → lvpyiotools-2.6.2}/src/lvpyioTools/set.py +1 -0
- {lvpyiotools-2.6.0 → lvpyiotools-2.6.2/src/lvpyioTools.egg-info}/PKG-INFO +1 -1
- {lvpyiotools-2.6.0 → lvpyiotools-2.6.2}/src/lvpyioTools.egg-info/SOURCES.txt +1 -1
- lvpyiotools-2.6.2/src/lvpyioTools.egg-info/entry_points.txt +2 -0
- lvpyiotools-2.6.0/src/lvpyioTools.egg-info/entry_points.txt +0 -2
- {lvpyiotools-2.6.0 → lvpyiotools-2.6.2}/LICENSE +0 -0
- {lvpyiotools-2.6.0 → lvpyiotools-2.6.2}/README.md +0 -0
- {lvpyiotools-2.6.0 → lvpyiotools-2.6.2}/setup.cfg +0 -0
- {lvpyiotools-2.6.0 → lvpyiotools-2.6.2}/src/lvpyioTools/__init__.py +0 -0
- {lvpyiotools-2.6.0 → lvpyiotools-2.6.2}/src/lvpyioTools/attribute.py +0 -0
- {lvpyiotools-2.6.0 → lvpyiotools-2.6.2}/src/lvpyioTools/calibration.py +0 -0
- {lvpyiotools-2.6.0 → lvpyiotools-2.6.2}/src/lvpyioTools/mask.py +0 -0
- {lvpyiotools-2.6.0 → lvpyiotools-2.6.2}/src/lvpyioTools/setParser.py +0 -0
- {lvpyiotools-2.6.0 → lvpyiotools-2.6.2}/src/lvpyioTools/setProperties.py +0 -0
- {lvpyiotools-2.6.0 → lvpyiotools-2.6.2}/src/lvpyioTools/stubs/set.py +0 -0
- {lvpyiotools-2.6.0 → lvpyiotools-2.6.2}/src/lvpyioTools/stubs/set.pyi +0 -0
- {lvpyiotools-2.6.0 → lvpyiotools-2.6.2}/src/lvpyioTools.egg-info/dependency_links.txt +0 -0
- {lvpyiotools-2.6.0 → lvpyiotools-2.6.2}/src/lvpyioTools.egg-info/requires.txt +0 -0
- {lvpyiotools-2.6.0 → lvpyiotools-2.6.2}/src/lvpyioTools.egg-info/top_level.txt +0 -0
|
@@ -3,7 +3,7 @@ name = "lvpyioTools"
|
|
|
3
3
|
description = "A set of tools to handle LabView files and data via the lvpyio library."
|
|
4
4
|
readme = { file = "README.md", content-type = "text/markdown" }
|
|
5
5
|
requires-python = ">=3.12.3"
|
|
6
|
-
version = "2.6.
|
|
6
|
+
version = "2.6.2"
|
|
7
7
|
license = "MIT"
|
|
8
8
|
license-files = ["LICENSE"]
|
|
9
9
|
authors = [
|
|
@@ -32,4 +32,4 @@ docs = [
|
|
|
32
32
|
]
|
|
33
33
|
|
|
34
34
|
[project.scripts]
|
|
35
|
-
lvpyioShow = "lvpyioTools.viewer:main"
|
|
35
|
+
lvpyioShow = "lvpyioTools.scripts.viewer:main"
|
|
@@ -4,6 +4,8 @@ Helper class for working lvpyio frames retrieved from a set.
|
|
|
4
4
|
|
|
5
5
|
from typing import TYPE_CHECKING
|
|
6
6
|
from enum import StrEnum
|
|
7
|
+
import matplotlib.pyplot as plt
|
|
8
|
+
from matplotlib.colors import Colormap
|
|
7
9
|
|
|
8
10
|
from lvpyio.types.frame import ImageFrame
|
|
9
11
|
from lvpyio.types.scale import Scales
|
|
@@ -63,7 +65,7 @@ class LVFrame():
|
|
|
63
65
|
|
|
64
66
|
def show(self, image_number: int = 0,
|
|
65
67
|
vmin: float | None = None, vmax: float | None = None,
|
|
66
|
-
cmap: str = 'gray',
|
|
68
|
+
cmap: str | Colormap | None = 'gray',
|
|
67
69
|
_show: bool = True):
|
|
68
70
|
"""
|
|
69
71
|
Display the image data from a specific frame and image number using the default image viewer.
|
|
@@ -71,7 +73,6 @@ class LVFrame():
|
|
|
71
73
|
Args:
|
|
72
74
|
image_number (int, optional): The index of the image to display. Defaults to 0.
|
|
73
75
|
"""
|
|
74
|
-
import matplotlib.pyplot as plt
|
|
75
76
|
image_data = self.get(image_number)
|
|
76
77
|
fig, ax = plt.subplots()
|
|
77
78
|
ax.imshow(image_data, cmap=cmap, vmin=vmin, vmax=vmax)
|
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
"""
|
|
1
|
+
r"""
|
|
2
|
+
LVPyIO Tools Viewer
|
|
3
|
+
-------------------
|
|
2
4
|
Show a specific image from a DaVis set file.
|
|
5
|
+
|
|
6
|
+
Usage:
|
|
7
|
+
```bash
|
|
8
|
+
lvpyioShow path/to/set/file
|
|
9
|
+
```
|
|
3
10
|
"""
|
|
4
11
|
from pathlib import Path
|
|
5
12
|
|
|
6
|
-
from
|
|
13
|
+
from ..set import LVSet
|
|
7
14
|
|
|
8
15
|
def main():
|
|
9
16
|
import argparse
|
|
10
17
|
|
|
11
|
-
|
|
18
|
+
doc = __doc__.strip() if __doc__ is not None else "LVPyIO Tools Viewer"
|
|
19
|
+
parser = argparse.ArgumentParser(description=doc)
|
|
12
20
|
parser.add_argument("set", type=str, help="Path to the DaVis set file")
|
|
13
21
|
parser.add_argument("--buffer", type=int, default=0, help="Buffer frame number to display (default: 0)")
|
|
14
22
|
parser.add_argument("--frame", type=int, default=0, help="Frame number to display (default: 0)")
|
|
@@ -27,4 +35,4 @@ def main():
|
|
|
27
35
|
except IndexError as e:
|
|
28
36
|
print(f"Error: {e}")
|
|
29
37
|
except Exception as e:
|
|
30
|
-
print(f"An unexpected error occurred: {e}")
|
|
38
|
+
print(f"An unexpected error occurred: {e}")
|
|
@@ -9,12 +9,12 @@ src/lvpyioTools/mask.py
|
|
|
9
9
|
src/lvpyioTools/set.py
|
|
10
10
|
src/lvpyioTools/setParser.py
|
|
11
11
|
src/lvpyioTools/setProperties.py
|
|
12
|
-
src/lvpyioTools/viewer.py
|
|
13
12
|
src/lvpyioTools.egg-info/PKG-INFO
|
|
14
13
|
src/lvpyioTools.egg-info/SOURCES.txt
|
|
15
14
|
src/lvpyioTools.egg-info/dependency_links.txt
|
|
16
15
|
src/lvpyioTools.egg-info/entry_points.txt
|
|
17
16
|
src/lvpyioTools.egg-info/requires.txt
|
|
18
17
|
src/lvpyioTools.egg-info/top_level.txt
|
|
18
|
+
src/lvpyioTools/scripts/viewer.py
|
|
19
19
|
src/lvpyioTools/stubs/set.py
|
|
20
20
|
src/lvpyioTools/stubs/set.pyi
|
|
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
|