You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implementation of Centroid degree of freedom. Centeroid of the molecule is determined by some point in space.
Issues: creation of the molecule is sensitive to the order of applying of degrees of freedom.
Need to add more comments for creation of new DOF object for future generetions.
Creation of the folders for valid and invalid structures.
@@ -72,6 +73,7 @@
72
73
print_output("New trial")
73
74
str3d=Structure(mol)
74
75
str3d.generate_structure()
76
+
print'\n{}'.format(sdf2xyz(str3d.sdf_string))
75
77
aims_object=AimsObject(os.path.join(os.getcwd(),'adds')) #Need for creation of the input file. Does not affect the algoritm.
76
78
ifnotstr3d.is_geometry_valid():
77
79
print_output("The geometry of "+str(str3d)+" is invalid. Copied to /invalid")
@@ -85,16 +87,6 @@
85
87
os.mkdir(os.path.join(os.getcwd(),'valid',str(cnt)+'_geometry')) # creates the folder for particular structure inside th "valid" folder
86
88
shutil.copy('geometry.in',os.path.join(os.getcwd(), 'valid', str(cnt)+'_geometry','geometry.in')) # copy input to self-titled folder
87
89
############ draw_picture(os.path.join(os.getcwd(), 'valid', str(cnt)+'_geometry','geometry.in'), image_write = 'yes') # Part of post-processing module. Under construction. Produce nice image with PyMol
0 commit comments