SAMBA-ilum 1.0.0.531__tar.gz → 1.0.0.533__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.
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/PKG-INFO +1 -1
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/SAMBA_ilum.egg-info/PKG-INFO +1 -1
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/__main__.py +1 -1
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/HeteroStructure_Generator.py +12 -13
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/cell_check.py +83 -56
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/setup.py +1 -1
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/LICENSE.txt +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/README.md +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/SAMBA_ilum.egg-info/SOURCES.txt +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/SAMBA_ilum.egg-info/dependency_links.txt +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/SAMBA_ilum.egg-info/entry_points.txt +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/SAMBA_ilum.egg-info/requires.txt +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/SAMBA_ilum.egg-info/top_level.txt +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/__init__.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/BZ_2D.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/Hubbard_U_values.txt +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/INCAR_a-scan +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/INCAR_bader +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/INCAR_bader.SO +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/INCAR_bands +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/INCAR_bands.SO +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/INCAR_dos +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/INCAR_dos.SO +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/INCAR_relax +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/INCAR_scf +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/INCAR_scf.SO +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/INCAR_xy-scan +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/INCAR_xyz-scan +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/INCAR_z-scan +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/SAMBA_HeteroStructure.input +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/SAMBA_WorkFlow.input +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.bands +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.chgcar +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.dos +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.location +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.locpot +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.orbitals +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.spin +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/vdw_kernel.bindat +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/_info_pseudo.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/a-scan.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/a-scan_analysis.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/bader +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/bader_poscar.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/bader_update.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/charge_transfer.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/chgsum.pl +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/contcar_update.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/data-base_json.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/data-base_union.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/energy_scan.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/hubbard_correction.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/job.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/kpoints.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/lattice_plot3d.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/make_files.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/output.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/potcar.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/vdW_DF.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/xy-scan.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/xy-scan_analysis.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/xyz-scan.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/xyz-scan_analysis.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/z-scan.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/z-scan_analysis.py +0 -0
- {samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/setup.cfg +0 -0
|
@@ -1976,19 +1976,18 @@ for i in range(len(files)):
|
|
|
1976
1976
|
VTemp1 = VTemp[-1].split()
|
|
1977
1977
|
#-------------------------
|
|
1978
1978
|
pulo = n_Lattice +4
|
|
1979
|
-
tag1_str
|
|
1980
|
-
tag2_str
|
|
1981
|
-
tag3_str
|
|
1982
|
-
tag4_str
|
|
1983
|
-
tag5_str
|
|
1984
|
-
tag6_str
|
|
1985
|
-
tag7_str
|
|
1986
|
-
tag8_str
|
|
1987
|
-
tag9_str
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
#------------------------------------------------------------------------
|
|
1979
|
+
tag1_str = VTemp[pulo + 1]; tag1 = [float(x) for x in tag1_str.split('_')] # mismatch_areas_12_21
|
|
1980
|
+
tag2_str = VTemp[pulo + 5]; tag2 = [float(x) for x in tag2_str.split('_')] # var_areas
|
|
1981
|
+
tag3_str = VTemp[pulo + 9]; tag3 = [float(x) for x in tag3_str.split('_')] # var_vectors
|
|
1982
|
+
tag4_str = VTemp[pulo + 13]; tag4 = [float(x) for x in tag4_str.split('_')] # mismatch_angles_12_21
|
|
1983
|
+
tag5_str = VTemp[pulo + 17]; tag5 = [float(x) for x in tag5_str.split('_')] # var_angles
|
|
1984
|
+
tag6_str = VTemp[pulo + 25]; tag6 = [float(x) for x in tag6_str.split('_')] # MSCell_1
|
|
1985
|
+
tag7_str = VTemp[pulo + 29]; tag7 = [float(x) for x in tag7_str.split('_')] # MSCell_2
|
|
1986
|
+
tag8_str = VTemp[pulo + 33]; tag8 = [float(x) for x in tag8_str.split('_')] # MDeform_1
|
|
1987
|
+
tag9_str = VTemp[pulo + 37]; tag9 = [float(x) for x in tag9_str.split('_')] # MDeform_2
|
|
1988
|
+
#-----------------------------------------------------------------------------------------
|
|
1989
|
+
data_hash = [tag1, tag2, tag3, tag4, tag5, tag6, tag7, tag8, tag9]
|
|
1990
|
+
#-----------------------------------------------------------------
|
|
1992
1991
|
new_id = hashlib.sha1(json.dumps(data_hash, separators=(',', ':')).encode('utf-8')).hexdigest()[:8]
|
|
1993
1992
|
#--------------------------------------------------------------------------------------------------
|
|
1994
1993
|
|
|
@@ -16,6 +16,8 @@ import numpy as np
|
|
|
16
16
|
import shutil
|
|
17
17
|
import glob
|
|
18
18
|
import uuid
|
|
19
|
+
import hashlib
|
|
20
|
+
import json
|
|
19
21
|
import sys
|
|
20
22
|
import os
|
|
21
23
|
|
|
@@ -41,62 +43,6 @@ files0 = [name for name in os.listdir(poscar_dir_path) if os.path.isfile(os.path
|
|
|
41
43
|
|
|
42
44
|
|
|
43
45
|
|
|
44
|
-
#============================================
|
|
45
|
-
# creating IDs for POSCAR files =============
|
|
46
|
-
#============================================
|
|
47
|
-
id_poscar_files = open(dir_files + '/ID_POSCAR_Files.txt', 'w')
|
|
48
|
-
#---------------------------
|
|
49
|
-
for i in range(len(files0)):
|
|
50
|
-
#--------------------------------------------
|
|
51
|
-
Lattice0 = dir_files + '/' + dir_poscar + '/'
|
|
52
|
-
poscar = open(Lattice0 + files0[i], 'r')
|
|
53
|
-
VTemp1 = poscar.readline().split()
|
|
54
|
-
for j in range(4): VTemp = poscar.readline()
|
|
55
|
-
VTemp2 = poscar.readline().split()
|
|
56
|
-
VTemp3 = poscar.readline().split()
|
|
57
|
-
poscar.close()
|
|
58
|
-
#-------------
|
|
59
|
-
temp_ion = ''
|
|
60
|
-
temp_nion = 0
|
|
61
|
-
for j in range(len(VTemp2)):
|
|
62
|
-
temp_ion += str(VTemp2[j])
|
|
63
|
-
temp_nion += int(VTemp3[j])
|
|
64
|
-
if (j < (len(VTemp2) -1)):
|
|
65
|
-
temp_ion += '_'
|
|
66
|
-
#-------------------------
|
|
67
|
-
if (VTemp1[0] != 'SAMBA'):
|
|
68
|
-
#----------------------
|
|
69
|
-
id_material = ''
|
|
70
|
-
unique_id = str(uuid.uuid4().hex[:16])
|
|
71
|
-
#---------------------------------------
|
|
72
|
-
poscar = open(Lattice0 + files0[i], "r")
|
|
73
|
-
for j in range(5): VTemp = poscar.readline()
|
|
74
|
-
VTemp3 = poscar.readline().split()
|
|
75
|
-
VTemp4 = poscar.readline().split()
|
|
76
|
-
poscar.close()
|
|
77
|
-
#---------------------------
|
|
78
|
-
for j in range(len(VTemp3)):
|
|
79
|
-
id_material += str(VTemp3[j])
|
|
80
|
-
if (str(VTemp4[j]) != '1'): id_material += str(VTemp4[j])
|
|
81
|
-
id_material += '_' + unique_id
|
|
82
|
-
#--------------------------------------------------------------------
|
|
83
|
-
with open(Lattice0 + files0[i], 'r') as file: line = file.readlines()
|
|
84
|
-
line[0] = 'SAMBA ' + temp_ion + ' ' + str(temp_nion) + ' ' + id_material + '\n'
|
|
85
|
-
with open(Lattice0 + files0[i], 'w') as file: file.writelines(line)
|
|
86
|
-
#------------------------------------------------------------------
|
|
87
|
-
id_poscar_files.write(f'{files0[i]} >> {id_material} \n')
|
|
88
|
-
#-------------------------
|
|
89
|
-
if (VTemp1[0] == 'SAMBA'):
|
|
90
|
-
#----------------------------
|
|
91
|
-
id_material = str(VTemp1[-1])
|
|
92
|
-
#--------------------------------------------------------
|
|
93
|
-
id_poscar_files.write(f'{files0[i]} >> {id_material} \n')
|
|
94
|
-
#----------------------
|
|
95
|
-
id_poscar_files.close()
|
|
96
|
-
if (os.path.getsize(dir_files + '/ID_POSCAR_Files.txt') == 0): os.remove(dir_files + '/ID_POSCAR_Files.txt')
|
|
97
|
-
#-----------------------------------------------------------------------------------------------------------
|
|
98
|
-
|
|
99
|
-
|
|
100
46
|
#============================================
|
|
101
47
|
# Testing POSCAR file compatibility =========
|
|
102
48
|
#============================================
|
|
@@ -303,3 +249,84 @@ for name in files0:
|
|
|
303
249
|
if (axis_correction > 0): sys.exit()
|
|
304
250
|
|
|
305
251
|
delete_hidden_files(poscar_dir_path)
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
#============================================
|
|
256
|
+
# creating IDs for POSCAR files =============
|
|
257
|
+
#============================================
|
|
258
|
+
id_poscar_files = open(dir_files + '/ID_POSCAR_Files.txt', 'w')
|
|
259
|
+
for i in range(len(files0)):
|
|
260
|
+
#--------------------------------------------
|
|
261
|
+
Lattice0 = dir_files + '/' + dir_poscar + '/'
|
|
262
|
+
poscar = open(Lattice0 + files0[i], 'r')
|
|
263
|
+
VTemp1 = poscar.readline().split()
|
|
264
|
+
for j in range(4): VTemp = poscar.readline()
|
|
265
|
+
VTemp2 = poscar.readline().split()
|
|
266
|
+
VTemp3 = poscar.readline().split()
|
|
267
|
+
poscar.close()
|
|
268
|
+
#-------------
|
|
269
|
+
temp_ion = ''
|
|
270
|
+
temp_nion = 0
|
|
271
|
+
for j in range(len(VTemp2)):
|
|
272
|
+
temp_ion += str(VTemp2[j])
|
|
273
|
+
temp_nion += int(VTemp3[j])
|
|
274
|
+
if (j < (len(VTemp2) -1)): temp_ion += '_'
|
|
275
|
+
#---------------------------------------------
|
|
276
|
+
if (VTemp1[0] != 'SAMBA'):
|
|
277
|
+
#----------------------
|
|
278
|
+
id_material = ''
|
|
279
|
+
#---------------------------------------
|
|
280
|
+
poscar = open(Lattice0 + files0[i], "r")
|
|
281
|
+
for j in range(5): VTemp = poscar.readline()
|
|
282
|
+
VTemp3 = poscar.readline().split()
|
|
283
|
+
VTemp4 = poscar.readline().split()
|
|
284
|
+
poscar.close()
|
|
285
|
+
#--------------------------------------------------------------------------------------------
|
|
286
|
+
# Creating a unique 16-digit ID that encodes the POSCAR file structure ----------------------
|
|
287
|
+
#--------------------------------------------------------------------------------------------
|
|
288
|
+
with open(poscar, 'r') as f: lines = [line.strip() for line in f.readlines() if line.strip()]
|
|
289
|
+
#-----------------------
|
|
290
|
+
tag_1 = float(lines[1])
|
|
291
|
+
#---------
|
|
292
|
+
tag_2 = []
|
|
293
|
+
for i in range(2, 5):
|
|
294
|
+
vector = [float(x) for x in lines[i].split()]
|
|
295
|
+
tag_2.append(vector)
|
|
296
|
+
#-----------------------
|
|
297
|
+
tag_3 = lines[5].split()
|
|
298
|
+
#-----------------------
|
|
299
|
+
tag_4 = [int(x) for x in lines[6].split()]
|
|
300
|
+
#-----------------------------------------
|
|
301
|
+
tag_5 = lines[7].lower()
|
|
302
|
+
#-----------------------
|
|
303
|
+
tag_6 = []
|
|
304
|
+
natoms = sum(tag_4)
|
|
305
|
+
for i in range(8, 8 + natoms):
|
|
306
|
+
coord = [float(x) for x in lines[i].split()]
|
|
307
|
+
tag_6.append(coord)
|
|
308
|
+
#----------------------
|
|
309
|
+
data_hash = [tag_1, tag_2, tag_3, tag_4, tag_5, tag_6]
|
|
310
|
+
canonical_string = json.dumps(data_hash, separators=(',', ':'))
|
|
311
|
+
unique_id = hashlib.sha256(canonical_string.encode('utf-8')).hexdigest()[:16]
|
|
312
|
+
#-------------------------------------------------------------------------
|
|
313
|
+
for j in range(len(VTemp3)):
|
|
314
|
+
id_material += str(VTemp3[j])
|
|
315
|
+
if (str(VTemp4[j]) != '1'): id_material += str(VTemp4[j])
|
|
316
|
+
id_material += '_' + unique_id
|
|
317
|
+
#--------------------------------------------------------------------
|
|
318
|
+
with open(Lattice0 + files0[i], 'r') as file: line = file.readlines()
|
|
319
|
+
line[0] = 'SAMBA ' + temp_ion + ' ' + str(temp_nion) + ' ' + id_material + '\n'
|
|
320
|
+
with open(Lattice0 + files0[i], 'w') as file: file.writelines(line)
|
|
321
|
+
#------------------------------------------------------------------
|
|
322
|
+
id_poscar_files.write(f'{files0[i]} >> {id_material} \n')
|
|
323
|
+
#-------------------------
|
|
324
|
+
if (VTemp1[0] == 'SAMBA'):
|
|
325
|
+
#----------------------------
|
|
326
|
+
id_material = str(VTemp1[-1])
|
|
327
|
+
#--------------------------------------------------------
|
|
328
|
+
id_poscar_files.write(f'{files0[i]} >> {id_material} \n')
|
|
329
|
+
#----------------------
|
|
330
|
+
id_poscar_files.close()
|
|
331
|
+
#----------------------
|
|
332
|
+
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{samba_ilum-1.0.0.531 → samba_ilum-1.0.0.533}/samba_ilum/src/INPUTS/SAMBA_HeteroStructure.input
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|