drap 0.0.3.post8__py3-none-any.whl → 0.0.3.post9__py3-none-any.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.
- drap/qt_adjust.py +3 -1
- drap/utils.py +7 -7
- {drap-0.0.3.post8.dist-info → drap-0.0.3.post9.dist-info}/METADATA +2 -2
- drap-0.0.3.post9.dist-info/RECORD +13 -0
- drap-0.0.3.post8.dist-info/RECORD +0 -13
- {drap-0.0.3.post8.dist-info → drap-0.0.3.post9.dist-info}/WHEEL +0 -0
- {drap-0.0.3.post8.dist-info → drap-0.0.3.post9.dist-info}/entry_points.txt +0 -0
- {drap-0.0.3.post8.dist-info → drap-0.0.3.post9.dist-info}/licenses/LICENSE +0 -0
- {drap-0.0.3.post8.dist-info → drap-0.0.3.post9.dist-info}/top_level.txt +0 -0
drap/qt_adjust.py
CHANGED
@@ -2,7 +2,9 @@
|
|
2
2
|
import os
|
3
3
|
from PyQt5.QtCore import QLibraryInfo, QCoreApplication
|
4
4
|
|
5
|
-
|
5
|
+
from typing import Optional
|
6
|
+
|
7
|
+
def fix_qt_plugin_paths(prefer_platform: Optional[str] = None) -> None:
|
6
8
|
|
7
9
|
os.environ.pop("QT_QPA_PLATFORM_PLUGIN_PATH", None)
|
8
10
|
os.environ.pop("QT_PLUGIN_PATH", None)
|
drap/utils.py
CHANGED
@@ -59,7 +59,7 @@ class ImageCropper(QMainWindow):
|
|
59
59
|
print("teste")
|
60
60
|
|
61
61
|
|
62
|
-
self.setWindowTitle('Analysis
|
62
|
+
self.setWindowTitle('Analysis Droplet Parameters')
|
63
63
|
self.setGeometry(100, 100, 1200, 600)
|
64
64
|
|
65
65
|
# Criar um widget central e configurar o layout
|
@@ -91,7 +91,7 @@ class ImageCropper(QMainWindow):
|
|
91
91
|
|
92
92
|
|
93
93
|
# Create a button to crop the image
|
94
|
-
self.crop_button = QPushButton('
|
94
|
+
self.crop_button = QPushButton('Crop Image', self)
|
95
95
|
self.controls_layout.addWidget(self.crop_button)
|
96
96
|
self.crop_button.clicked.connect(self.crop_image)
|
97
97
|
|
@@ -179,12 +179,12 @@ class ImageCropper(QMainWindow):
|
|
179
179
|
|
180
180
|
|
181
181
|
#Create a button to choose the directory and upload an image
|
182
|
-
self.load_directory_button = QPushButton('
|
182
|
+
self.load_directory_button = QPushButton('Match files from samples and background', self)
|
183
183
|
self.controls_layout.addWidget(self.load_directory_button)
|
184
184
|
self.load_directory_button.clicked.connect(self.contate_sort_images_edf_size_drop)
|
185
185
|
|
186
186
|
# Checkbox para opção extra
|
187
|
-
self.check_option = QCheckBox("Print PDF with images", self)
|
187
|
+
self.check_option = QCheckBox("Print a PDF with images", self)
|
188
188
|
self.check_option.setChecked(False) # desmarcado por padrão
|
189
189
|
self.controls_layout.addWidget(self.check_option)
|
190
190
|
|
@@ -378,7 +378,7 @@ class ImageCropper(QMainWindow):
|
|
378
378
|
save_path = Path(save_path);
|
379
379
|
save_path = save_path.resolve();
|
380
380
|
save_path = os.path.normpath(save_path);
|
381
|
-
save_path = os.path.join(save_path, '
|
381
|
+
save_path = os.path.join(save_path, 'image_croped.png');
|
382
382
|
save_path = os.path.normpath(save_path);
|
383
383
|
os.makedirs(os.path.dirname(save_path), exist_ok=True)
|
384
384
|
if save_path:
|
@@ -461,7 +461,7 @@ class ImageCropper(QMainWindow):
|
|
461
461
|
save_path = Path(save_path);
|
462
462
|
save_path = save_path.resolve();
|
463
463
|
save_path = os.path.normpath(save_path);
|
464
|
-
save_path = os.path.join(save_path, '
|
464
|
+
save_path = os.path.join(save_path, 'data_image_croped.txt');
|
465
465
|
os.makedirs(os.path.dirname(save_path), exist_ok=True)
|
466
466
|
if save_path:
|
467
467
|
with open(save_path, 'w') as file:
|
@@ -1551,7 +1551,7 @@ def save_data_edf(data_in, output_file, option):
|
|
1551
1551
|
|
1552
1552
|
file_op = open(output_file, "w", encoding='utf-8');
|
1553
1553
|
|
1554
|
-
if option == 0: file_op.write("Frame, dropDX(mm), dropDY(mm), surface(mm^2),
|
1554
|
+
if option == 0: file_op.write("Frame, dropDX(mm), dropDY(mm), surface(mm^2), RelativeConcentration(%), date, time(s)\n")
|
1555
1555
|
else: file_op.write("Frame, date, time(s) \n")
|
1556
1556
|
|
1557
1557
|
for i_data in data_in:
|
@@ -1,13 +1,13 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: drap
|
3
|
-
Version: 0.0.3.
|
3
|
+
Version: 0.0.3.post9
|
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
|
7
7
|
Project-URL: Homepage, https://test.pypi.org/project/DrAP/
|
8
8
|
Project-URL: Source, https://test.pypi.org/project/DrAP/
|
9
9
|
Keywords: saxs,x-ray,edf,opencv,pyqt5,droplet
|
10
|
-
Requires-Python: >=3.
|
10
|
+
Requires-Python: >=3.10
|
11
11
|
Description-Content-Type: text/markdown
|
12
12
|
License-File: LICENSE
|
13
13
|
Requires-Dist: opencv-python-headless>=4.9
|
@@ -0,0 +1,13 @@
|
|
1
|
+
drap/__init__.py,sha256=RF05F-NDoYmyOjQ1EgdKSfsx2tTYCheTpL0AYrFmdI0,47
|
2
|
+
drap/automation.py,sha256=TvCwFeYgrKxc50kaQkV2ETGyD1RhxCCX5oCGMWo2JjU,1294
|
3
|
+
drap/gui.py,sha256=LzBBQwFiF6IcOZfBkWB6wnKsBKD-v-6Un8VoJMG7eKU,1553
|
4
|
+
drap/main.py,sha256=IBMQp932Qd6aBSeWCoQH2MQhMtmEU_yZKOsUO_U9Wmk,1201
|
5
|
+
drap/qt_adjust.py,sha256=7zw5aVwP7svwHMLl9Vj5N9zqwmVrv61S3ipjRJLNoAk,907
|
6
|
+
drap/terminal_interface.py,sha256=vCnobMdtxKvCUaFsu0fWmChd65a-Osn41LdMtSdMdO4,2201
|
7
|
+
drap/utils.py,sha256=-vUtbswvbBbEScvs-tnYzUhQvI4M22sDwXTvzxJAiII,66888
|
8
|
+
drap-0.0.3.post9.dist-info/licenses/LICENSE,sha256=iHcEhVN-5ifqXsDa1Ny38sIBS7SJ9-eYJQRtHiJ3QU0,1098
|
9
|
+
drap-0.0.3.post9.dist-info/METADATA,sha256=1TotPhZgS7SWpVT_eVzWSP4J_rCHoUZfayFwAdy0dbk,1392
|
10
|
+
drap-0.0.3.post9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
11
|
+
drap-0.0.3.post9.dist-info/entry_points.txt,sha256=8AnGrT_RVCkh26SYRqjRTbstT4BMuOO68qRFqPfPr8M,69
|
12
|
+
drap-0.0.3.post9.dist-info/top_level.txt,sha256=jYMnBoijRdvPMYoMlILxlRNbSdKUX3_uwMa7DLRE4zE,5
|
13
|
+
drap-0.0.3.post9.dist-info/RECORD,,
|
@@ -1,13 +0,0 @@
|
|
1
|
-
drap/__init__.py,sha256=RF05F-NDoYmyOjQ1EgdKSfsx2tTYCheTpL0AYrFmdI0,47
|
2
|
-
drap/automation.py,sha256=TvCwFeYgrKxc50kaQkV2ETGyD1RhxCCX5oCGMWo2JjU,1294
|
3
|
-
drap/gui.py,sha256=LzBBQwFiF6IcOZfBkWB6wnKsBKD-v-6Un8VoJMG7eKU,1553
|
4
|
-
drap/main.py,sha256=IBMQp932Qd6aBSeWCoQH2MQhMtmEU_yZKOsUO_U9Wmk,1201
|
5
|
-
drap/qt_adjust.py,sha256=K4lqMC7aZ8RlcA65BIVtftRoZWY9OVrAQQP-IHN2f_E,875
|
6
|
-
drap/terminal_interface.py,sha256=vCnobMdtxKvCUaFsu0fWmChd65a-Osn41LdMtSdMdO4,2201
|
7
|
-
drap/utils.py,sha256=Zu7eOqRfH7ZWrSFU-iccAU9WerjMK9Y8MakZDGx8snQ,66915
|
8
|
-
drap-0.0.3.post8.dist-info/licenses/LICENSE,sha256=iHcEhVN-5ifqXsDa1Ny38sIBS7SJ9-eYJQRtHiJ3QU0,1098
|
9
|
-
drap-0.0.3.post8.dist-info/METADATA,sha256=EPs3_1-sR-q3ZpjgerUqWiWu7hb6FDDTo7xGQ49NN0U,1391
|
10
|
-
drap-0.0.3.post8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
11
|
-
drap-0.0.3.post8.dist-info/entry_points.txt,sha256=8AnGrT_RVCkh26SYRqjRTbstT4BMuOO68qRFqPfPr8M,69
|
12
|
-
drap-0.0.3.post8.dist-info/top_level.txt,sha256=jYMnBoijRdvPMYoMlILxlRNbSdKUX3_uwMa7DLRE4zE,5
|
13
|
-
drap-0.0.3.post8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|