interactive-pipe 0.7.9__tar.gz → 0.8.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.
- {interactive_pipe-0.7.9/src/interactive_pipe.egg-info → interactive_pipe-0.8.0}/PKG-INFO +2 -2
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/pyproject.toml +1 -1
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/readme.md +1 -1
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/__init__.py +1 -1
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/data_objects/audio.py +9 -2
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0/src/interactive_pipe.egg-info}/PKG-INFO +2 -2
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/LICENSE +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/setup.cfg +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/core/__init__.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/core/cache.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/core/engine.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/core/filter.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/core/graph.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/core/pipeline.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/core/signature.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/data_objects/__init__.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/data_objects/curves.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/data_objects/data.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/data_objects/image.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/data_objects/parameters.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/graphical/__init__.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/graphical/gradio_control.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/graphical/gradio_gui.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/graphical/gui.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/graphical/mpl_control.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/graphical/mpl_gui.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/graphical/mpl_window.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/graphical/nb_control.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/graphical/nb_gui.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/graphical/qt_control.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/graphical/qt_gui.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/graphical/window.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/headless/__init__.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/headless/control.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/headless/keyboard.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/headless/pipeline.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/helper/__init__.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/helper/_private.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/helper/choose_backend.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/helper/control_abbreviation.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/helper/filter_decorator.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/helper/keyword_args_analyzer.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/helper/pipeline_decorator.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/thirdparty/images_openai_api.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/thirdparty/music_spotify.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe.egg-info/SOURCES.txt +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe.egg-info/dependency_links.txt +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe.egg-info/requires.txt +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe.egg-info/top_level.txt +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/test/test_cache.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/test/test_control_abbreviations.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/test/test_controller.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/test/test_core.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/test/test_curves.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/test/test_decorator.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/test/test_engine.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/test/test_filter.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/test/test_headless.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/test/test_image.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/test/test_parameters.py +0 -0
- {interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/test/test_recorder.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: interactive_pipe
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.0
|
|
4
4
|
Summary: Library to create flexible interactive image processing pipelines and automatically add a graphical user interface without knowing anything about GUI coding!
|
|
5
5
|
Author-email: Balthazar Neveu <balthazarneveu@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/balthazarneveu/interactive_pipe
|
|
@@ -106,7 +106,7 @@ pip install -e ".[full]"
|
|
|
106
106
|
|
|
107
107
|
## :scroll: Features
|
|
108
108
|
|
|
109
|
-
**Version 0.
|
|
109
|
+
**Version 0.8.0**
|
|
110
110
|
- Modular multi-image processing filters
|
|
111
111
|
- Declarative: Easily make graphical user interface without having to learn anything about pyQt or matplotlib
|
|
112
112
|
- Support in jupyter notebooks
|
|
@@ -62,7 +62,7 @@ pip install -e ".[full]"
|
|
|
62
62
|
|
|
63
63
|
## :scroll: Features
|
|
64
64
|
|
|
65
|
-
**Version 0.
|
|
65
|
+
**Version 0.8.0**
|
|
66
66
|
- Modular multi-image processing filters
|
|
67
67
|
- Declarative: Easily make graphical user interface without having to learn anything about pyQt or matplotlib
|
|
68
68
|
- Support in jupyter notebooks
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__version__ = "0.
|
|
1
|
+
__version__ = "0.8.0"
|
|
2
2
|
from interactive_pipe.helper.pipeline_decorator import pipeline, interactive_pipeline
|
|
3
3
|
from interactive_pipe.headless.control import Control, CircularControl
|
|
4
4
|
from interactive_pipe.data_objects.curves import Curve, SingleCurve
|
{interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/data_objects/audio.py
RENAMED
|
@@ -19,7 +19,7 @@ def audio_to_html(audio: Union[None, str, Path, Tuple[int, np.ndarray]], control
|
|
|
19
19
|
logging.debug("No audio to display")
|
|
20
20
|
return ""
|
|
21
21
|
if isinstance(audio, str) or isinstance(audio, Path):
|
|
22
|
-
audio_base64 = base64.b64encode(open(audio, "rb").read()).decode("utf-8")
|
|
22
|
+
audio_base64 = base64.b64encode(open(str(audio), "rb").read()).decode("utf-8")
|
|
23
23
|
elif isinstance(audio, tuple):
|
|
24
24
|
assert WAVIO_AVAILABLE, "wavio is not available"
|
|
25
25
|
assert len(audio) == 2, "audio tuple should have 2 elements: (rate, data)"
|
|
@@ -67,8 +67,15 @@ class Audio(Data):
|
|
|
67
67
|
if backend is None:
|
|
68
68
|
backend = WAVIO
|
|
69
69
|
if backend == WAVIO:
|
|
70
|
+
if isinstance(data, np.ndarray):
|
|
71
|
+
if data.dtype == np.float32 or data.dtype == np.float64:
|
|
72
|
+
data_save = (data * 32767).astype(np.int16)
|
|
73
|
+
elif data.dtype == np.int16:
|
|
74
|
+
data_save = data
|
|
75
|
+
else:
|
|
76
|
+
raise ValueError(f"Data type {data.dtype} not supported")
|
|
70
77
|
assert WAVIO_AVAILABLE, "wavio is not available"
|
|
71
|
-
wavio.write(path,
|
|
78
|
+
wavio.write(path, data_save, sampling_rate)
|
|
72
79
|
else:
|
|
73
80
|
raise NotImplementedError(f"Unknown backend: {backend}")
|
|
74
81
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: interactive_pipe
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.0
|
|
4
4
|
Summary: Library to create flexible interactive image processing pipelines and automatically add a graphical user interface without knowing anything about GUI coding!
|
|
5
5
|
Author-email: Balthazar Neveu <balthazarneveu@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/balthazarneveu/interactive_pipe
|
|
@@ -106,7 +106,7 @@ pip install -e ".[full]"
|
|
|
106
106
|
|
|
107
107
|
## :scroll: Features
|
|
108
108
|
|
|
109
|
-
**Version 0.
|
|
109
|
+
**Version 0.8.0**
|
|
110
110
|
- Modular multi-image processing filters
|
|
111
111
|
- Declarative: Easily make graphical user interface without having to learn anything about pyQt or matplotlib
|
|
112
112
|
- Support in jupyter notebooks
|
|
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
|
{interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/data_objects/__init__.py
RENAMED
|
File without changes
|
{interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/data_objects/curves.py
RENAMED
|
File without changes
|
|
File without changes
|
{interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/data_objects/image.py
RENAMED
|
File without changes
|
{interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/data_objects/parameters.py
RENAMED
|
File without changes
|
{interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/graphical/__init__.py
RENAMED
|
File without changes
|
{interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/graphical/gradio_control.py
RENAMED
|
File without changes
|
{interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/graphical/gradio_gui.py
RENAMED
|
File without changes
|
|
File without changes
|
{interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/graphical/mpl_control.py
RENAMED
|
File without changes
|
|
File without changes
|
{interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/graphical/mpl_window.py
RENAMED
|
File without changes
|
{interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/graphical/nb_control.py
RENAMED
|
File without changes
|
|
File without changes
|
{interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/graphical/qt_control.py
RENAMED
|
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
|
{interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/helper/choose_backend.py
RENAMED
|
File without changes
|
|
File without changes
|
{interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/helper/filter_decorator.py
RENAMED
|
File without changes
|
|
File without changes
|
{interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/helper/pipeline_decorator.py
RENAMED
|
File without changes
|
|
File without changes
|
{interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe/thirdparty/music_spotify.py
RENAMED
|
File without changes
|
|
File without changes
|
{interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe.egg-info/requires.txt
RENAMED
|
File without changes
|
{interactive_pipe-0.7.9 → interactive_pipe-0.8.0}/src/interactive_pipe.egg-info/top_level.txt
RENAMED
|
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
|