drap 0.0.4.post6__tar.gz → 0.0.4.post8__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.
Files changed (22) hide show
  1. {drap-0.0.4.post6 → drap-0.0.4.post8}/PKG-INFO +1 -1
  2. {drap-0.0.4.post6 → drap-0.0.4.post8}/pyproject.toml +1 -1
  3. {drap-0.0.4.post6 → drap-0.0.4.post8}/src/drap/utils.py +26 -11
  4. {drap-0.0.4.post6 → drap-0.0.4.post8}/src/drap.egg-info/PKG-INFO +1 -1
  5. {drap-0.0.4.post6 → drap-0.0.4.post8}/LICENSE +0 -0
  6. {drap-0.0.4.post6 → drap-0.0.4.post8}/MANIFEST.in +0 -0
  7. {drap-0.0.4.post6 → drap-0.0.4.post8}/README.md +0 -0
  8. {drap-0.0.4.post6 → drap-0.0.4.post8}/setup.cfg +0 -0
  9. {drap-0.0.4.post6 → drap-0.0.4.post8}/src/drap/__init__.py +0 -0
  10. {drap-0.0.4.post6 → drap-0.0.4.post8}/src/drap/automation.py +0 -0
  11. {drap-0.0.4.post6 → drap-0.0.4.post8}/src/drap/gui.py +0 -0
  12. {drap-0.0.4.post6 → drap-0.0.4.post8}/src/drap/main.py +0 -0
  13. {drap-0.0.4.post6 → drap-0.0.4.post8}/src/drap/qt_adjust.py +0 -0
  14. {drap-0.0.4.post6 → drap-0.0.4.post8}/src/drap/resources/DrapuserGuide_eng.pdf +0 -0
  15. {drap-0.0.4.post6 → drap-0.0.4.post8}/src/drap/resources/DrapuserGuide_pt.pdf +0 -0
  16. {drap-0.0.4.post6 → drap-0.0.4.post8}/src/drap/resources/name_videos.dat +0 -0
  17. {drap-0.0.4.post6 → drap-0.0.4.post8}/src/drap/terminal_interface.py +0 -0
  18. {drap-0.0.4.post6 → drap-0.0.4.post8}/src/drap.egg-info/SOURCES.txt +0 -0
  19. {drap-0.0.4.post6 → drap-0.0.4.post8}/src/drap.egg-info/dependency_links.txt +0 -0
  20. {drap-0.0.4.post6 → drap-0.0.4.post8}/src/drap.egg-info/entry_points.txt +0 -0
  21. {drap-0.0.4.post6 → drap-0.0.4.post8}/src/drap.egg-info/requires.txt +0 -0
  22. {drap-0.0.4.post6 → drap-0.0.4.post8}/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.4.post6
3
+ Version: 0.0.4.post8
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "drap"
7
- version = "v0.0.4.post6"
7
+ version = "v0.0.4.post8"
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"}
@@ -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
 
@@ -308,14 +308,22 @@ class ImageCropper(QMainWindow):
308
308
  set_file_1.read_setfiles_edf(option = 0);
309
309
 
310
310
  def contate_sort_images_edf_size_drop(self):
311
-
312
- directory = QFileDialog.getExistingDirectory(self, 'Choose (Samples) Directory with EDF Images');
311
+
312
+
313
+ if self.test:
314
+ directory = "/home/standard02/Documents/programming/python/bolhas/data/15-SY-30cm/edf-15-SY"
315
+ else:
316
+ directory = QFileDialog.getExistingDirectory(self, 'Choose (Samples) Directory with EDF Images');
317
+
313
318
  directory = directory + "/";
314
319
  directory = Path(directory);
315
320
  directory = directory.resolve();
316
321
  directory = os.path.normpath(directory);
317
322
 
318
- file_path, _ = QFileDialog.getOpenFileName(self, 'Choose (Samples) file with polynomio data', directory, 'Data files (*.dat *.txt *.csv)');
323
+ if self.test:
324
+ file_path = '/home/standard02/Documents/programming/python/bolhas/PyPI/drap/data/15SY-30cm_Video_time_size.csv'
325
+ else:
326
+ file_path, _ = QFileDialog.getOpenFileName(self, 'Choose (Samples) file with polynomio data', directory, 'Data files (*.dat *.txt *.csv)');
319
327
 
320
328
  file_path = Path(file_path);
321
329
  file_path = file_path.resolve();
@@ -327,15 +335,23 @@ class ImageCropper(QMainWindow):
327
335
  set_file_1 = conc_scat_video(5,path = directory, input_file = file_path);
328
336
  set_file_1.read_setfiles_edf(option = 2);
329
337
 
330
- directory = QFileDialog.getExistingDirectory(self, 'Choose (Background) Directory with EDF Images');
338
+
339
+ if self.test:
340
+ directory = "/home/standard02/Documents/programming/python/bolhas/data/15-SY-30cm/edf-files-buffer"
341
+ else:
342
+ directory = QFileDialog.getExistingDirectory(self, 'Choose (Background) Directory with EDF Images');
331
343
  directory = directory + "/";
332
344
 
333
345
 
334
346
  directory = Path(directory);
335
347
  directory = directory.resolve();
336
348
  directory = os.path.normpath(directory);
337
-
338
- file_path, _ = QFileDialog.getOpenFileName(self, 'Choose (Background) file with polynomio data', directory, 'Data files (*.dat *.txt *.csv)');
349
+
350
+
351
+ if self.test:
352
+ file_path = "/home/standard02/Documents/programming/python/bolhas/PyPI/drap/data/water-without-absolute-intensity-30cm_Video_time_size.csv"
353
+ else :
354
+ file_path, _ = QFileDialog.getOpenFileName(self, 'Choose (Background) file with polynomio data', directory, 'Data files (*.dat *.txt *.csv)');
339
355
 
340
356
  file_path = Path(file_path);
341
357
  file_path = file_path.resolve();
@@ -659,12 +675,12 @@ def concatene_files_scat_back(set_file_1, set_file_2):
659
675
 
660
676
 
661
677
  factor = 0.15;
662
- max_area = max(_date_1["area_big"] for _date_1 in temp_info_files_edf)
678
+ # max_area = max(_date_1["area_big"] for _date_1 in temp_info_files_edf)
663
679
  temp_name_file = numpy.array(list_scat_back[:,0]);
664
680
  for _date_1 in temp_info_files_edf:
665
681
  area_avg_1 = (_date_1['area_big'] + _date_1['area_small']) / 2. ;
666
682
 
667
- min_diff = max_area;
683
+ min_diff = float('inf');
668
684
 
669
685
  for i_file_back in range(0, len(list_back_size_avg_drop)):
670
686
  if abs(area_avg_1 - float(list_back_size_avg_drop[i_file_back,1])) <= (min_diff):
@@ -1180,7 +1196,6 @@ class conc_scat_video:
1180
1196
  save_data_edf(self.info_files_edf, os.path.join(path_dir_imgs, name_file), option);
1181
1197
 
1182
1198
 
1183
-
1184
1199
  def read_video(self):
1185
1200
 
1186
1201
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: drap
3
- Version: 0.0.4.post6
3
+ Version: 0.0.4.post8
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes