drap 0.0.3.post12__py3-none-any.whl → 0.0.4.post6__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/main.py CHANGED
@@ -66,5 +66,4 @@ def main():
66
66
 
67
67
 
68
68
 
69
-
70
69
 
@@ -0,0 +1,23 @@
1
+ file_video_1: 2024-07-12-NW-usAg-GSH-2mgml.flv
2
+ Co_1: 2.0
3
+ step_1: 5
4
+ start pixel x_1: 40
5
+ end pixel x_1: 200
6
+ start pixel y_1: 220
7
+ end pixel y_1: 356
8
+ pixel/mm_1: 45
9
+ directory_path_1: NW-usAg-GSH-2mgml
10
+ time_limit_1: 2000
11
+ print_pdf_1: y
12
+
13
+ file_video_2: 2024-07-10-water-without-absolute-intensity.flv
14
+ Co_2: 2.0
15
+ step_2: 10
16
+ start pixel x_2: 40
17
+ end pixel x_2: 200
18
+ start pixel y_2: 220
19
+ end pixel y_2: 356
20
+ pixel/mm_2: 45
21
+ directory_path_2: edf-files-buffer
22
+ time_limit_2: 4000
23
+ print_pdf_2: y
drap/utils.py CHANGED
@@ -54,8 +54,8 @@ class ImageCropper(QMainWindow):
54
54
 
55
55
  def initUI(self):
56
56
 
57
- # self.test = True
58
- self.test = False
57
+ self.test = True
58
+ # self.test = False
59
59
  # print("teste")
60
60
 
61
61
 
@@ -197,9 +197,9 @@ class ImageCropper(QMainWindow):
197
197
  if self.test:
198
198
  self.load_image()
199
199
  self.int_input1.setText("45.")
200
- self.int_input2.setText("5")
201
- self.int_input3.setText("50")
202
- self.int_input4.setText("2.0")
200
+ self.int_input2.setText("10")
201
+ self.int_input3.setText("5000")
202
+ self.int_input4.setText("1.0")
203
203
 
204
204
  self.show()
205
205
 
@@ -207,7 +207,8 @@ class ImageCropper(QMainWindow):
207
207
 
208
208
 
209
209
  if self.test:
210
- self.file_path = "/home/standard02/Documents/programming/python/bolhas/2024-07-12-NW-usAg-GSH-2mgml.flv"
210
+ self.file_path = "/media/standard02/Linux_sync_2020_02/standart/Documents/programming/python/files/15-SY-50cm/water-without-absolute-intensity2.flv"
211
+ # self.file_path, _ = QFileDialog.getOpenFileName(self, 'Open Video', '', 'Videos (*.avi *.mp4 *.mov *.mkv *.wmv *.flv *.mpg *.mpeg *.3gp *.ogv .webm)')
211
212
  else:
212
213
  self.file_path, _ = QFileDialog.getOpenFileName(self, 'Open Video', '', 'Videos (*.avi *.mp4 *.mov *.mkv *.wmv *.flv *.mpg *.mpeg *.3gp *.ogv .webm)')
213
214
 
@@ -421,7 +422,7 @@ class ImageCropper(QMainWindow):
421
422
  numbers = [(input_field.text()) for input_field in [self.int_input1, self.int_input2, self.int_input3, self.int_input4]];
422
423
 
423
424
  for output_field, number in zip([self.int_output1, self.int_output2, self.int_output3], numbers):
424
- output_field.setText(f'Número: {number}')
425
+ output_field.setText(f'Number: {number}')
425
426
 
426
427
  set_file_1 = conc_scat_video(3, file_video =self.file_path, px_mm = float(numbers[0]) , step = int(numbers[1]), time_limit = int(numbers[2]), Co = float(numbers[3]) , retangulo = self.ret, print_pdf = print_pdf);
427
428
  result_image = set_file_1.read_video();
@@ -1307,6 +1308,12 @@ class conc_scat_video:
1307
1308
  new_w = int(img_w * factor)
1308
1309
  new_h = int(img_h * factor)
1309
1310
 
1311
+ if new_w <= 1 or new_h <= 1:
1312
+ print(f"Error, check the video; it seems probably there is no droplet image starting from {int(time)} s.")
1313
+ break
1314
+
1315
+
1316
+
1310
1317
  imagem = cv2.resize(imagem, (new_w, new_h), interpolation=cv2.INTER_LINEAR)
1311
1318
  # cv2.imwrite("saida_crop.png",imagem);
1312
1319
 
@@ -1,11 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: drap
3
- Version: 0.0.3.post12
3
+ Version: 0.0.4.post6
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" <crislpo@ufpr.br>
6
6
  License: MIT
7
- Project-URL: Homepage, https://test.pypi.org/project/DrAP/
8
- Project-URL: Source, https://test.pypi.org/project/DrAP/
7
+ Project-URL: Homepage, https://github.com/alvescassio/DrAP
8
+ Project-URL: Source, https://github.com/alvescassio/DrAP
9
+ Project-URL: Issues, https://github.com/alvescassio/DrAP/issues
9
10
  Keywords: saxs,x-ray,edf,opencv,pyqt5,droplet
10
11
  Requires-Python: >=3.10
11
12
  Description-Content-Type: text/markdown
@@ -0,0 +1,16 @@
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=FHiki3tcip7BOvsEFxVacdienu1D3QHneuXEidBfBXs,1200
5
+ drap/qt_adjust.py,sha256=Ru99Qz_5bqxwDNGxREQnF17BZ0Nda0eeuQvH2-w98S8,1317
6
+ drap/terminal_interface.py,sha256=vCnobMdtxKvCUaFsu0fWmChd65a-Osn41LdMtSdMdO4,2201
7
+ drap/utils.py,sha256=IZSKId6gGP74myeouZOid86vbbRn_GKr7HDz44eXPT0,67369
8
+ drap/resources/DrapuserGuide_eng.pdf,sha256=EF9GwitgqOB9MPAWta6fXgPTaKU6O8_ERCcb6mbrj4A,553887
9
+ drap/resources/DrapuserGuide_pt.pdf,sha256=KjbIWg5df5eAWFtx4eGFUcIb6ktTlHG8bztMk6l0_d4,547977
10
+ drap/resources/name_videos.dat,sha256=-BC_xVXnRDN-zIcQk95_DUi0WLbmARlap2ML9N8LszI,481
11
+ drap-0.0.4.post6.dist-info/licenses/LICENSE,sha256=iHcEhVN-5ifqXsDa1Ny38sIBS7SJ9-eYJQRtHiJ3QU0,1098
12
+ drap-0.0.4.post6.dist-info/METADATA,sha256=nFbZKDTL610Dc8nqSmc2ZfUAqoDxweGbyweq16S8vus,1491
13
+ drap-0.0.4.post6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
+ drap-0.0.4.post6.dist-info/entry_points.txt,sha256=8AnGrT_RVCkh26SYRqjRTbstT4BMuOO68qRFqPfPr8M,69
15
+ drap-0.0.4.post6.dist-info/top_level.txt,sha256=jYMnBoijRdvPMYoMlILxlRNbSdKUX3_uwMa7DLRE4zE,5
16
+ drap-0.0.4.post6.dist-info/RECORD,,
@@ -1,15 +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=Ru99Qz_5bqxwDNGxREQnF17BZ0Nda0eeuQvH2-w98S8,1317
6
- drap/terminal_interface.py,sha256=vCnobMdtxKvCUaFsu0fWmChd65a-Osn41LdMtSdMdO4,2201
7
- drap/utils.py,sha256=O1cmm7TDncC8ixAi82uZwuPpm9DEDgWvoYxU9os54Hs,66890
8
- drap/resources/DrapuserGuide_eng.pdf,sha256=EF9GwitgqOB9MPAWta6fXgPTaKU6O8_ERCcb6mbrj4A,553887
9
- drap/resources/DrapuserGuide_pt.pdf,sha256=KjbIWg5df5eAWFtx4eGFUcIb6ktTlHG8bztMk6l0_d4,547977
10
- drap-0.0.3.post12.dist-info/licenses/LICENSE,sha256=iHcEhVN-5ifqXsDa1Ny38sIBS7SJ9-eYJQRtHiJ3QU0,1098
11
- drap-0.0.3.post12.dist-info/METADATA,sha256=XRklCcG4ncrziU3vn1VsDArbT1sueltB9W7uWhrhcbg,1428
12
- drap-0.0.3.post12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
13
- drap-0.0.3.post12.dist-info/entry_points.txt,sha256=8AnGrT_RVCkh26SYRqjRTbstT4BMuOO68qRFqPfPr8M,69
14
- drap-0.0.3.post12.dist-info/top_level.txt,sha256=jYMnBoijRdvPMYoMlILxlRNbSdKUX3_uwMa7DLRE4zE,5
15
- drap-0.0.3.post12.dist-info/RECORD,,