drap 0.0.3.post7__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 CHANGED
@@ -2,7 +2,9 @@
2
2
  import os
3
3
  from PyQt5.QtCore import QLibraryInfo, QCoreApplication
4
4
 
5
- def fix_qt_plugin_paths(prefer_platform: str | None = None) -> None:
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 droplet parameters.')
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('Cut Image', self)
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('Concatene edf files samples and background ', self)
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
 
@@ -215,11 +215,13 @@ class ImageCropper(QMainWindow):
215
215
  QMessageBox.warning(self, 'Warning', 'No video selected.')
216
216
  return
217
217
 
218
- self.file_path = os.path.normpath(self.file_path)
219
- self.file_path = QFileInfo(self.file_path).fileName();
220
- self.file_path = Path(self.file_path);
221
- self.file_path = self.file_path.resolve();
222
- self.file_path = os.path.normpath(self.file_path);
218
+ self.file_path = os.path.normpath(str(Path(self.file_path).expanduser().resolve()))
219
+
220
+ # self.file_path = os.path.normpath(self.file_path)
221
+ # self.file_path = QFileInfo(self.file_path).fileName();
222
+ # self.file_path = Path(self.file_path);
223
+ # self.file_path = self.file_path.resolve();
224
+ # self.file_path = os.path.normpath(self.file_path);
223
225
 
224
226
  video = cv2.VideoCapture(self.file_path);
225
227
 
@@ -376,7 +378,7 @@ class ImageCropper(QMainWindow):
376
378
  save_path = Path(save_path);
377
379
  save_path = save_path.resolve();
378
380
  save_path = os.path.normpath(save_path);
379
- save_path = os.path.join(save_path, 'image_cuted.png');
381
+ save_path = os.path.join(save_path, 'image_croped.png');
380
382
  save_path = os.path.normpath(save_path);
381
383
  os.makedirs(os.path.dirname(save_path), exist_ok=True)
382
384
  if save_path:
@@ -459,7 +461,7 @@ class ImageCropper(QMainWindow):
459
461
  save_path = Path(save_path);
460
462
  save_path = save_path.resolve();
461
463
  save_path = os.path.normpath(save_path);
462
- save_path = os.path.join(save_path, 'data_image_cuted.txt');
464
+ save_path = os.path.join(save_path, 'data_image_croped.txt');
463
465
  os.makedirs(os.path.dirname(save_path), exist_ok=True)
464
466
  if save_path:
465
467
  with open(save_path, 'w') as file:
@@ -1549,7 +1551,7 @@ def save_data_edf(data_in, output_file, option):
1549
1551
 
1550
1552
  file_op = open(output_file, "w", encoding='utf-8');
1551
1553
 
1552
- if option == 0: file_op.write("Frame, dropDX(mm), dropDY(mm), surface(mm^2), Volume(\u03bcL),RelativeConcentration(%), date, time(s), time(min)\n")
1554
+ if option == 0: file_op.write("Frame, dropDX(mm), dropDY(mm), surface(mm^2), RelativeConcentration(%), date, time(s)\n")
1553
1555
  else: file_op.write("Frame, date, time(s) \n")
1554
1556
 
1555
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.post7
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.8
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
@@ -34,16 +34,16 @@ The graphical user interface provides:
34
34
 
35
35
  Install:
36
36
 
37
- python -m venv venv
37
+ python -m venv venv
38
38
 
39
- source venv/bin/activate
39
+ source venv/bin/activate
40
40
 
41
- pip install drap
41
+ pip install drap
42
42
 
43
43
  Use:
44
44
 
45
- drap -o 1 (Gui interface)
45
+ drap -o 1 (Gui interface)
46
46
 
47
- drap -o 2 (Terminal interface)
47
+ drap -o 2 (Terminal interface)
48
48
 
49
- drap -o 3 (Automatic file: name_videos.dat)
49
+ drap -o 3 (Automatic file: name_videos.dat)
@@ -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=5IIjrGB4MBR2FX6Gdh7rCYJOZpGSFn8eTj0g3yPaHxU,66804
8
- drap-0.0.3.post7.dist-info/licenses/LICENSE,sha256=iHcEhVN-5ifqXsDa1Ny38sIBS7SJ9-eYJQRtHiJ3QU0,1098
9
- drap-0.0.3.post7.dist-info/METADATA,sha256=1RABw2n4uyrNMlQr-GkTaxlHzQHPCYqGquu5F1BQdTg,1367
10
- drap-0.0.3.post7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
- drap-0.0.3.post7.dist-info/entry_points.txt,sha256=8AnGrT_RVCkh26SYRqjRTbstT4BMuOO68qRFqPfPr8M,69
12
- drap-0.0.3.post7.dist-info/top_level.txt,sha256=jYMnBoijRdvPMYoMlILxlRNbSdKUX3_uwMa7DLRE4zE,5
13
- drap-0.0.3.post7.dist-info/RECORD,,