SAMBA-ilum 1.1.0.1__tar.gz → 1.1.0.102__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 (69) hide show
  1. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/PKG-INFO +1 -1
  2. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/SAMBA_ilum.egg-info/PKG-INFO +1 -1
  3. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/__main__.py +1 -1
  4. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/HeteroStructure_Generator.py +148 -32
  5. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/setup.py +1 -1
  6. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/LICENSE.txt +0 -0
  7. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/README.md +0 -0
  8. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/SAMBA_ilum.egg-info/SOURCES.txt +0 -0
  9. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/SAMBA_ilum.egg-info/dependency_links.txt +0 -0
  10. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/SAMBA_ilum.egg-info/entry_points.txt +0 -0
  11. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/SAMBA_ilum.egg-info/requires.txt +0 -0
  12. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/SAMBA_ilum.egg-info/top_level.txt +0 -0
  13. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/__init__.py +0 -0
  14. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/BZ_2D.py +0 -0
  15. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/HeteroStructure_Generator_Backup_001.py +0 -0
  16. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/HeteroStructure_Generator_OLD.py +0 -0
  17. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/Hubbard_U_values.txt +0 -0
  18. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/INCAR_a-scan +0 -0
  19. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/INCAR_bader +0 -0
  20. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/INCAR_bader.SO +0 -0
  21. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/INCAR_bands +0 -0
  22. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/INCAR_bands.SO +0 -0
  23. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/INCAR_dos +0 -0
  24. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/INCAR_dos.SO +0 -0
  25. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/INCAR_relax +0 -0
  26. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/INCAR_scf +0 -0
  27. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/INCAR_scf.SO +0 -0
  28. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/INCAR_xy-scan +0 -0
  29. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/INCAR_xyz-scan +0 -0
  30. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/INCAR_z-scan +0 -0
  31. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/SAMBA_HeteroStructure.input +0 -0
  32. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/SAMBA_WorkFlow.input +0 -0
  33. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.bands +0 -0
  34. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.chgcar +0 -0
  35. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.dos +0 -0
  36. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.location +0 -0
  37. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.locpot +0 -0
  38. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.orbitals +0 -0
  39. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.spin +0 -0
  40. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/INPUTS/vdw_kernel.bindat +0 -0
  41. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/_info_pseudo.py +0 -0
  42. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/a-scan.py +0 -0
  43. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/a-scan_analysis.py +0 -0
  44. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/bader +0 -0
  45. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/bader_poscar.py +0 -0
  46. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/bader_update.py +0 -0
  47. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/cell_check.py +0 -0
  48. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/charge_transfer.py +0 -0
  49. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/chgsum.pl +0 -0
  50. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/contcar_update.py +0 -0
  51. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/data-base_json.py +0 -0
  52. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/data-base_union.py +0 -0
  53. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/energy_scan.py +0 -0
  54. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/hubbard_correction.py +0 -0
  55. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/job.py +0 -0
  56. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/kpoints.py +0 -0
  57. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/lattice_plot3d.py +0 -0
  58. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/make_files.py +0 -0
  59. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/output.py +0 -0
  60. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/poscar_fix_direct_coord.py +0 -0
  61. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/potcar.py +0 -0
  62. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/vdW_DF.py +0 -0
  63. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/xy-scan.py +0 -0
  64. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/xy-scan_analysis.py +0 -0
  65. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/xyz-scan.py +0 -0
  66. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/xyz-scan_analysis.py +0 -0
  67. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/z-scan.py +0 -0
  68. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/samba_ilum/src/z-scan_analysis.py +0 -0
  69. {samba_ilum-1.1.0.1 → samba_ilum-1.1.0.102}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: SAMBA_ilum
3
- Version: 1.1.0.1
3
+ Version: 1.1.0.102
4
4
  Summary: ...
5
5
  Author: Augusto de Lelis Araujo
6
6
  Author-email: augusto-lelis@outlook.com
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: SAMBA_ilum
3
- Version: 1.1.0.1
3
+ Version: 1.1.0.102
4
4
  Summary: ...
5
5
  Author: Augusto de Lelis Araujo
6
6
  Author-email: augusto-lelis@outlook.com
@@ -16,7 +16,7 @@ dir_samba = os.path.dirname(os.path.realpath(__file__))
16
16
  print(f'{dir_samba}')
17
17
  #--------------------
18
18
 
19
- version = '1.1.0.001'
19
+ version = '1.1.0.102'
20
20
 
21
21
  print(" ")
22
22
  print("=============================================================")
@@ -349,12 +349,13 @@ for k in range(n_Lattice):
349
349
  number += 1; cell_write = 0
350
350
  porc = (number/n_passos)*100
351
351
  #---------------------------
352
- if (porc >= temp and porc <= 100):
353
- print(f'Progress {porc:>3,.0f}%')
354
- number += 1
355
- if (number == 1): temp = 1
356
- if (number == 2): temp = 5
357
- if (number >= 3): temp = temp + 5
352
+ if porc >= temp:
353
+ bar_length = 50
354
+ filled_length = int(bar_length * porc // 100)
355
+ bar = '#' * filled_length + '-' * (bar_length - filled_length)
356
+ print(f'\rProgress: |{bar}| {porc:.1f}%', end="")
357
+ sys.stdout.flush()
358
+ temp += 1 # Atualiza a cada 1%
358
359
 
359
360
  #------------------------------------------------------------------------------
360
361
  v1x = float(vx[i]); v1y = float(vy[i]); v1z = float(vz[i]); d1 = float(dist[i])
@@ -425,6 +426,10 @@ for k in range(n_Lattice):
425
426
  cell_Lattice.close()
426
427
  except Exception as e:
427
428
  0 == 0
429
+ #-----------------------------------------
430
+ print(f"\rProgress completed !{' ' * 60}")
431
+ #-----------------------------------------
432
+
428
433
 
429
434
  files = os.listdir(diret + dir_cells_Lattice)
430
435
  #--------------------------------------------
@@ -522,13 +527,21 @@ print(f'Step {n}: Analyzing lattices matches (1st and 2nd materials) ===')
522
527
  print(f'==============================================================')
523
528
 
524
529
  files = os.listdir(diret + 'cells_Lattice1')
525
- #===========================================
530
+ #=============================================
531
+ temp = 1.0; number = -1; n_passos = len(files)
532
+ #-----------------------
526
533
  for s in range(len(files)):
527
- #---------------------------------
528
- print(f'Progress {s+1}/{len(files)}')
529
- #---------------------------------
530
- cont = 0
531
- #-------
534
+ #----------------------
535
+ number += 1; cont = 0
536
+ porc = (number/(s+1))*100
537
+ #-------------------------
538
+ if porc >= temp:
539
+ bar_length = 50
540
+ filled_length = int(bar_length * porc // 100)
541
+ bar = '#' * filled_length + '-' * (bar_length - filled_length)
542
+ print(f'\rProgress: |{bar}| {porc:.1f}%', end="")
543
+ sys.stdout.flush()
544
+ temp += 1
532
545
 
533
546
  if (n_Lattice == 2):
534
547
  if os.path.isfile(diret + 'cells_Lattice1' + '/' + files[s]):
@@ -636,7 +649,9 @@ for s in range(len(files)):
636
649
  #===============================================================================
637
650
  #-----------------
638
651
  Structures.close()
639
- #-----------------
652
+ #-----------------------------------------
653
+ print(f"\rProgress completed !{' ' * 60}")
654
+ #-----------------------------------------
640
655
 
641
656
 
642
657
  if (n_Lattice == 3):
@@ -655,9 +670,21 @@ if (n_Lattice == 3):
655
670
  os.remove(diret + 'Matching_Lattices' + '/' + files[s])
656
671
 
657
672
  #==============================================
658
- files = os.listdir(diret + 'Matching_Lattices')
673
+ temp = 1.0; number = -1; n_passos = len(files)
674
+ #-----------------------
659
675
  for s in range(len(files)):
660
- cont = 0
676
+ #----------------------
677
+ number += 1; cont = 0
678
+ porc = (number/(s+1))*100
679
+ #-------------------------
680
+ if porc >= temp:
681
+ bar_length = 50
682
+ filled_length = int(bar_length * porc // 100)
683
+ bar = '#' * filled_length + '-' * (bar_length - filled_length)
684
+ print(f'\rProgress: |{bar}| {porc:.1f}%', end="")
685
+ sys.stdout.flush()
686
+ temp += 1
687
+
661
688
  #-----------------------------------------------------------------------------------------------
662
689
  files_lattice3 = files[s].replace("Matching_Lattices","Cells_Lattice").replace("_12.dat",".dat")
663
690
  #-----------------------------------------------------------------------------------------------
@@ -666,9 +693,6 @@ if (n_Lattice == 3):
666
693
  cont = 1
667
694
  #-------
668
695
 
669
- #------------------------------------
670
- print(f'Progress {s+1}/{len(files)}')
671
- #------------------------------------
672
696
  if (cont == 1):
673
697
  #-----------------------------------------------------------------
674
698
  temp_area = files[s].replace('.dat', '').replace('_', ' ').split()
@@ -761,7 +785,9 @@ if (n_Lattice == 3):
761
785
  Structures.close()
762
786
  #------------------------------------------------------
763
787
  os.remove(diret + 'Matching_Lattices' + '/' + files[s])
764
- #------------------------------------------------------
788
+ #----------------------------------------------------------
789
+ print(f"\rProgress completed !{' ' * 60}")
790
+ #-----------------------------------------
765
791
 
766
792
 
767
793
  #==============================================
@@ -877,9 +903,21 @@ print(f'Step {n}: Writing the POSCAR files for the {n_Lattice} material lattices
877
903
  print(f'================================================================')
878
904
 
879
905
  if (n_test == 1):
906
+ temp = 1.0; number = -1; n_passos = len(dir_matchings)
907
+ #-----------------------
880
908
  for s in range(len(dir_matchings)):
881
- #-----------------------------------------
882
- print(f'Progress {s+1}/{len(dir_matchings)}')
909
+ #----------------------
910
+ number += 1; cont = 0
911
+ porc = (number/(s+1))*100
912
+ #-------------------------
913
+ if porc >= temp:
914
+ bar_length = 50
915
+ filled_length = int(bar_length * porc // 100)
916
+ bar = '#' * filled_length + '-' * (bar_length - filled_length)
917
+ print(f'\rProgress: |{bar}| {porc:.1f}%', end="")
918
+ sys.stdout.flush()
919
+ temp += 1
920
+
883
921
  #------------------------------------------------
884
922
  dir_temp_m = dir_matchings[s].replace('.dat', '')
885
923
  #------------------------------------------------
@@ -939,6 +977,9 @@ if (n_test == 1):
939
977
  print(f"error detected: {e}")
940
978
 
941
979
  match.close()
980
+ #-----------------------------------------
981
+ print(f"\rProgress completed !{' ' * 60}")
982
+ #-----------------------------------------
942
983
 
943
984
 
944
985
  n += 1
@@ -949,9 +990,21 @@ print(f'Step {n}: Writing the Heterostructures POSCAR files ===========')
949
990
  print(f'=============================================================')
950
991
 
951
992
  if (n_test == 1):
993
+ temp = 1.0; number = -1; n_passos = len(dir_matchings)
994
+ #-----------------------
952
995
  for s in range(len(dir_matchings)):
953
- #-----------------------------------------
954
- print(f'Progress {s+1}/{len(dir_matchings)}')
996
+ #----------------------
997
+ number += 1; cont = 0
998
+ porc = (number/(s+1))*100
999
+ #-------------------------
1000
+ if porc >= temp:
1001
+ bar_length = 50
1002
+ filled_length = int(bar_length * porc // 100)
1003
+ bar = '#' * filled_length + '-' * (bar_length - filled_length)
1004
+ print(f'\rProgress: |{bar}| {porc:.1f}%', end="")
1005
+ sys.stdout.flush()
1006
+ temp += 1
1007
+
955
1008
  #------------------------------------------------
956
1009
  dir_temp_m = dir_matchings[s].replace('.dat', '')
957
1010
  #------------------------------------------------
@@ -1384,6 +1437,9 @@ if (n_test == 1):
1384
1437
  #----------------------------------------------------------------------------------------------------
1385
1438
  if (dist_1 > crit_distorc_lattice or dist_2 > crit_distorc_lattice or dist_3 > crit_distorc_lattice):
1386
1439
  os.remove(diret2 + dir_temp_m + '/POSCAR_' + str(i+1) + '.vasp')
1440
+ #-----------------------------------------
1441
+ print(f"\rProgress completed !{' ' * 60}")
1442
+ #-----------------------------------------
1387
1443
 
1388
1444
 
1389
1445
  #=====================================================================
@@ -1414,9 +1470,21 @@ print(f'====================================')
1414
1470
  files0 = os.listdir(diret2)
1415
1471
  n_exclusion = 0
1416
1472
 
1473
+ temp = 1.0; number = -1; n_passos = len(files0)
1474
+ #---------------------------
1417
1475
  for s in range(len(files0)):
1418
- #----------------------------------
1419
- print(f'Progress {s+1}/{len(files0)}')
1476
+ #-----------------------
1477
+ number += 1; cont = 0
1478
+ porc = (number/(s+1))*100
1479
+ #-------------------------
1480
+ if porc >= temp:
1481
+ bar_length = 50
1482
+ filled_length = int(bar_length * porc // 100)
1483
+ bar = '#' * filled_length + '-' * (bar_length - filled_length)
1484
+ print(f'\rProgress: |{bar}| {porc:.1f}%', end="")
1485
+ sys.stdout.flush()
1486
+ temp += 1
1487
+
1420
1488
  #---------------------
1421
1489
  dir_temp_m = files0[s]
1422
1490
  #---------------------
@@ -1449,6 +1517,9 @@ for s in range(len(files0)):
1449
1517
 
1450
1518
  for i in range(len(files)):
1451
1519
  os.remove(diret2 + files0[s] + '/' + 'temp_' + str(i+1) + '.vasp')
1520
+ #-----------------------------------------
1521
+ print(f"\rProgress completed !{' ' * 60}")
1522
+ #-----------------------------------------
1452
1523
 
1453
1524
  #---------------
1454
1525
  n_structures = 0
@@ -1497,9 +1568,21 @@ print(f'======================================')
1497
1568
  files0 = os.listdir(diret2)
1498
1569
  n_exclusion = 0
1499
1570
 
1571
+ temp = 1.0; number = -1; n_passos = len(files0)
1572
+ #---------------------------
1500
1573
  for s in range(len(files0)):
1501
- #----------------------------------
1502
- print(f'Progress {s+1}/{len(files0)}')
1574
+ #-----------------------
1575
+ number += 1; cont = 0
1576
+ porc = (number/(s+1))*100
1577
+ #-------------------------
1578
+ if porc >= temp:
1579
+ bar_length = 50
1580
+ filled_length = int(bar_length * porc // 100)
1581
+ bar = '#' * filled_length + '-' * (bar_length - filled_length)
1582
+ print(f'\rProgress: |{bar}| {porc:.1f}%', end="")
1583
+ sys.stdout.flush()
1584
+ temp += 1
1585
+
1503
1586
  #---------------------
1504
1587
  dir_temp_m = files0[s]
1505
1588
  #-------------------------------------
@@ -1586,6 +1669,9 @@ for s in range(len(files0)):
1586
1669
  if os.path.exists(diret2 + files0[s] + '/' + files[j]):
1587
1670
  os.remove(diret2 + files0[s] + '/' + files[j])
1588
1671
  n_exclusion += 1
1672
+ #-----------------------------------------
1673
+ print(f"\rProgress completed !{' ' * 60}")
1674
+ #-----------------------------------------
1589
1675
 
1590
1676
  #---------------
1591
1677
  n_structures = 0
@@ -1644,9 +1730,21 @@ while n_exclusion_cont != 2:
1644
1730
  files = os.listdir(diret2)
1645
1731
  n_exclusion = 0
1646
1732
 
1733
+ temp = 1.0; number = -1; n_passos = len(files)
1734
+ #--------------------------
1647
1735
  for i in range(len(files)):
1648
- #---------------------------------
1649
- print(f'Progress {i+1}/{len(files)}')
1736
+ #----------------------
1737
+ number += 1; cont = 0
1738
+ porc = (number/(s+1))*100
1739
+ #-------------------------
1740
+ if porc >= temp:
1741
+ bar_length = 50
1742
+ filled_length = int(bar_length * porc // 100)
1743
+ bar = '#' * filled_length + '-' * (bar_length - filled_length)
1744
+ print(f'\rProgress: |{bar}| {porc:.1f}%', end="")
1745
+ sys.stdout.flush()
1746
+ temp += 1
1747
+
1650
1748
  #----------------
1651
1749
  files_delete = []
1652
1750
  #------------------------------------
@@ -1727,6 +1825,10 @@ while n_exclusion_cont != 2:
1727
1825
  if os.path.exists(diret2 + files[j]):
1728
1826
  os.remove(diret2 + files[j])
1729
1827
  n_exclusion += 1
1828
+ #-----------------------------------------
1829
+ print(f"\rProgress completed !{' ' * 60}")
1830
+ #-----------------------------------------
1831
+
1730
1832
  #-------------------------
1731
1833
  files = os.listdir(diret2)
1732
1834
  n_structures = len(files)
@@ -1912,10 +2014,20 @@ vector = sorted(set(shift1_xy))
1912
2014
  #-------------------------
1913
2015
  files = os.listdir(diret2)
1914
2016
  #-------------------------
2017
+ temp = 1.0; number = -1; n_passos = len(files)
2018
+ #--------------------------
1915
2019
  for i in range(len(files)):
1916
- #---------------------------------
1917
- print(f'Progress {i+1}/{len(files)}')
1918
- #---------------------------------
2020
+ #----------------------
2021
+ number += 1; cont = 0
2022
+ porc = (number/(s+1))*100
2023
+ #-------------------------
2024
+ if porc >= temp:
2025
+ bar_length = 50
2026
+ filled_length = int(bar_length * porc // 100)
2027
+ bar = '#' * filled_length + '-' * (bar_length - filled_length)
2028
+ print(f'\rProgress: |{bar}| {porc:.1f}%', end="")
2029
+ sys.stdout.flush()
2030
+ temp += 1
1919
2031
 
1920
2032
  poscar = open(dir1 + files[i], "r")
1921
2033
  poscar2 = open(dir2 + files[i], "w")
@@ -1957,6 +2069,10 @@ for i in range(len(files)):
1957
2069
  #-------------
1958
2070
  poscar.close()
1959
2071
  poscar2.close()
2072
+ #-----------------------------------------
2073
+ print(f"\rProgress completed !{' ' * 60}")
2074
+ #-----------------------------------------
2075
+
1960
2076
  #------------------
1961
2077
  shutil.rmtree(dir1)
1962
2078
  os.rename(dir2,dir1)
@@ -6,7 +6,7 @@ import json
6
6
 
7
7
  setup(
8
8
  name = "SAMBA_ilum",
9
- version = "1.1.0.001",
9
+ version = "1.1.0.102",
10
10
  entry_points={'console_scripts': ['samba_ilum = samba_ilum:main']},
11
11
  description = "...",
12
12
  author = "Augusto de Lelis Araujo",
File without changes
File without changes
File without changes