drap 0.0.3.post6__tar.gz → 0.0.3.post7__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.
- {drap-0.0.3.post6 → drap-0.0.3.post7}/PKG-INFO +1 -1
- {drap-0.0.3.post6 → drap-0.0.3.post7}/pyproject.toml +1 -1
- drap-0.0.3.post7/src/drap/qt_adjust.py +30 -0
- {drap-0.0.3.post6 → drap-0.0.3.post7}/src/drap.egg-info/PKG-INFO +1 -1
- drap-0.0.3.post6/src/drap/qt_adjust.py +0 -41
- {drap-0.0.3.post6 → drap-0.0.3.post7}/LICENSE +0 -0
- {drap-0.0.3.post6 → drap-0.0.3.post7}/README.md +0 -0
- {drap-0.0.3.post6 → drap-0.0.3.post7}/setup.cfg +0 -0
- {drap-0.0.3.post6 → drap-0.0.3.post7}/src/drap/__init__.py +0 -0
- {drap-0.0.3.post6 → drap-0.0.3.post7}/src/drap/automation.py +0 -0
- {drap-0.0.3.post6 → drap-0.0.3.post7}/src/drap/gui.py +0 -0
- {drap-0.0.3.post6 → drap-0.0.3.post7}/src/drap/main.py +0 -0
- {drap-0.0.3.post6 → drap-0.0.3.post7}/src/drap/terminal_interface.py +0 -0
- {drap-0.0.3.post6 → drap-0.0.3.post7}/src/drap/utils.py +0 -0
- {drap-0.0.3.post6 → drap-0.0.3.post7}/src/drap.egg-info/SOURCES.txt +0 -0
- {drap-0.0.3.post6 → drap-0.0.3.post7}/src/drap.egg-info/dependency_links.txt +0 -0
- {drap-0.0.3.post6 → drap-0.0.3.post7}/src/drap.egg-info/entry_points.txt +0 -0
- {drap-0.0.3.post6 → drap-0.0.3.post7}/src/drap.egg-info/requires.txt +0 -0
- {drap-0.0.3.post6 → drap-0.0.3.post7}/src/drap.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: drap
|
3
|
-
Version: 0.0.3.
|
3
|
+
Version: 0.0.3.post7
|
4
4
|
Summary: Tool for analyzing droplet size and concentration using video and EDF images
|
5
5
|
Author-email: "Gabriel Braga Marques Teobaldo, Oleg Prymak, Natalie Wolff, Matthias Epple, Marco Aurélio Brizzotti Andrade, Cássio Alves and Cristiano Luis Pinto de Oliveira" <alves.casssio@gmail.com>
|
6
6
|
License: MIT
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "drap"
|
7
|
-
version = "0.0.3.
|
7
|
+
version = "0.0.3.post7"
|
8
8
|
description = "Tool for analyzing droplet size and concentration using video and EDF images"
|
9
9
|
readme = "README.md"
|
10
10
|
license = {text = "MIT"}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
|
2
|
+
import os
|
3
|
+
from PyQt5.QtCore import QLibraryInfo, QCoreApplication
|
4
|
+
|
5
|
+
def fix_qt_plugin_paths(prefer_platform: str | None = None) -> None:
|
6
|
+
|
7
|
+
os.environ.pop("QT_QPA_PLATFORM_PLUGIN_PATH", None)
|
8
|
+
os.environ.pop("QT_PLUGIN_PATH", None)
|
9
|
+
|
10
|
+
if prefer_platform:
|
11
|
+
os.environ["QT_QPA_PLATFORM"] = prefer_platform
|
12
|
+
else:
|
13
|
+
os.environ.setdefault("QT_QPA_PLATFORM", "xcb") # ou 'wayland' conforme seu público
|
14
|
+
|
15
|
+
|
16
|
+
for p in list(QCoreApplication.libraryPaths()):
|
17
|
+
if "cv2/qt/plugins" in p:
|
18
|
+
QCoreApplication.removeLibraryPath(p)
|
19
|
+
|
20
|
+
|
21
|
+
pyqt_plugins = QLibraryInfo.location(QLibraryInfo.PluginsPath)
|
22
|
+
QCoreApplication.addLibraryPath(pyqt_plugins)
|
23
|
+
|
24
|
+
def assert_not_using_cv2_plugins() -> None:
|
25
|
+
|
26
|
+
for p in QCoreApplication.libraryPaths():
|
27
|
+
if "cv2/qt/plugins" in p:
|
28
|
+
raise RuntimeError(
|
29
|
+
"Error"
|
30
|
+
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: drap
|
3
|
-
Version: 0.0.3.
|
3
|
+
Version: 0.0.3.post7
|
4
4
|
Summary: Tool for analyzing droplet size and concentration using video and EDF images
|
5
5
|
Author-email: "Gabriel Braga Marques Teobaldo, Oleg Prymak, Natalie Wolff, Matthias Epple, Marco Aurélio Brizzotti Andrade, Cássio Alves and Cristiano Luis Pinto de Oliveira" <alves.casssio@gmail.com>
|
6
6
|
License: MIT
|
@@ -1,41 +0,0 @@
|
|
1
|
-
|
2
|
-
import os
|
3
|
-
from PyQt5.QtCore import QLibraryInfo, QCoreApplication
|
4
|
-
|
5
|
-
def fix_qt_plugin_paths(prefer_platform: str | None = None) -> None:
|
6
|
-
"""
|
7
|
-
Força o Qt a usar os plugins do PyQt5 e remove caminhos herdados do cv2.
|
8
|
-
Chame isso ANTES de criar o QApplication.
|
9
|
-
"""
|
10
|
-
# 1) Limpa variáveis que podem apontar para plugins errados
|
11
|
-
os.environ.pop("QT_QPA_PLATFORM_PLUGIN_PATH", None)
|
12
|
-
os.environ.pop("QT_PLUGIN_PATH", None)
|
13
|
-
|
14
|
-
# 2) Define plataforma padrão (ajude o usuário)
|
15
|
-
if prefer_platform:
|
16
|
-
os.environ["QT_QPA_PLATFORM"] = prefer_platform
|
17
|
-
else:
|
18
|
-
os.environ.setdefault("QT_QPA_PLATFORM", "xcb") # ou 'wayland' conforme seu público
|
19
|
-
|
20
|
-
# 3) Remove library paths que contenham plugins do cv2
|
21
|
-
for p in list(QCoreApplication.libraryPaths()):
|
22
|
-
if "cv2/qt/plugins" in p:
|
23
|
-
QCoreApplication.removeLibraryPath(p)
|
24
|
-
|
25
|
-
# 4) Garante o diretório oficial de plugins do PyQt5
|
26
|
-
pyqt_plugins = QLibraryInfo.location(QLibraryInfo.PluginsPath)
|
27
|
-
QCoreApplication.addLibraryPath(pyqt_plugins)
|
28
|
-
|
29
|
-
def assert_not_using_cv2_plugins() -> None:
|
30
|
-
"""
|
31
|
-
Se ainda houver um caminho de plugins do cv2, emite uma dica amigável.
|
32
|
-
"""
|
33
|
-
for p in QCoreApplication.libraryPaths():
|
34
|
-
if "cv2/qt/plugins" in p:
|
35
|
-
raise RuntimeError(
|
36
|
-
"Qt ainda está apontando para plugins do OpenCV (cv2/qt/plugins). "
|
37
|
-
"Instale apenas 'opencv-python-headless' e remova resíduos:\n"
|
38
|
-
" pip uninstall -y opencv-python opencv-contrib-python\n"
|
39
|
-
" # apague a pasta 'cv2' do seu site-packages deste venv\n"
|
40
|
-
" pip install --no-cache-dir opencv-python-headless PyQt5\n"
|
41
|
-
)
|
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
|