ion-CSP 2.2.2__py3-none-any.whl → 2.2.3__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.
ion_CSP/__init__.py CHANGED
@@ -1,8 +1,8 @@
1
1
  __author__ = "Ze Yang"
2
2
  __contact__ = "yangze1995007@163.com"
3
3
  __license__ = "MIT"
4
- __version__ = "2.2.2"
5
- __date__ = "2025-07-02"
4
+ __version__ = "2.2.3"
5
+ __date__ = "2025-07-10"
6
6
 
7
7
 
8
8
  try:
ion_CSP/mlp_opt.py CHANGED
@@ -10,17 +10,14 @@ import numpy as np
10
10
  import multiprocessing
11
11
  from ase.io.vasp import read_vasp
12
12
  from ase.optimize import LBFGS
13
- # from ase.constraints import UnitCellFilter
14
- from ase.filters import ExpCellFilter
13
+ from ase.constraints import UnitCellFilter
15
14
  from deepmd.calculator import DP
16
- # from mattersim.forcefield import MatterSimCalculator
17
15
 
18
16
  # 根据脚本位置确定model.pt文件的位置, 减少错误发生
19
17
  base_dir = os.path.dirname(__file__)
20
18
  relative_path = './model.pt'
21
19
  file_path = os.path.join(base_dir, relative_path)
22
20
  calc = DP(file_path)
23
- # calc = MatterSimCalculator(device="cuda")
24
21
 
25
22
 
26
23
  def get_element_num(elements):
@@ -162,8 +159,7 @@ def run_opt(index: int):
162
159
  aim_stress = 1.0 * pstress * 0.01 * 0.6242 / 10.0
163
160
  atoms = read_vasp('POSCAR_'+str(index))
164
161
  atoms.calc = calc
165
- # ucf = UnitCellFilter(atoms, scalar_pressure=aim_stress)
166
- ucf = ExpCellFilter(atoms, scalar_pressure=aim_stress)
162
+ ucf = UnitCellFilter(atoms, scalar_pressure=aim_stress)
167
163
  # optimization
168
164
  opt = LBFGS(ucf)
169
165
  opt.run(fmax=fmax,steps=Opt_Step)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ion_CSP
3
- Version: 2.2.2
3
+ Version: 2.2.3
4
4
  Summary: Crystal Structure Design Software Based on Molecular/Ionic Configuration.
5
5
  Home-page: https://github.com/bagabaga007/ion_CSP
6
6
  Author: Ze Yang
@@ -1,11 +1,11 @@
1
- ion_CSP/__init__.py,sha256=X870lzd7xUyDvBsUfjnDBqMJbCXtUlGh1hbxqI7coX0,356
1
+ ion_CSP/__init__.py,sha256=jMZJMwgE30wGC-Ej_2ghlbE9UnLRCcLb0W-3kQ4mVnM,356
2
2
  ion_CSP/__main__.py,sha256=XlNCx5eMSrL7yld9ddSYXhjXvg2ZYGD_uk9LdqNabvs,74
3
3
  ion_CSP/convert_SMILES.py,sha256=i_f9cbCAr6SpZUvClZRAPGjK-_v9U9lFGA-06i041Tk,15755
4
4
  ion_CSP/empirical_estimate.py,sha256=aSidH3jyoG39ky-kDNUY0ix8hPefeVVWmPABVjTmy0g,37866
5
5
  ion_CSP/gen_opt.py,sha256=EEMIPZ7oEOR9iGLRL-eJleHaWBiOK90o4a8_go9f-9o,21468
6
6
  ion_CSP/identify_molecules.py,sha256=GxDWq815Bk_Fq_SR8fe-dbrbEi1YgATVa7UINw3hAu4,5535
7
7
  ion_CSP/log_and_time.py,sha256=Db53LAM2KH_ty6M9_5FF8xDGiULgExh7pcKOvFtS7DQ,11697
8
- ion_CSP/mlp_opt.py,sha256=NoUSYoGVNVbijsB37xkOy7hwSFIhFTFD6gCB7UVloj0,7249
8
+ ion_CSP/mlp_opt.py,sha256=DP8gldX07O2jXDhopUOodh8nqa5JeusLJjChTtt_DSE,7049
9
9
  ion_CSP/read_mlp_density.py,sha256=0fymqrpqoAmWosnyoNwH3GAvml42skZp_6SLvrXN0SI,12232
10
10
  ion_CSP/steps_opt_monitor.sh,sha256=1klPjnK0gqkDbvI9PtjdK5qidJ5G0Mo8q1SfrlLW5xM,3330
11
11
  ion_CSP/task_manager.py,sha256=62E5s2bkVkRJiKroSGWVfTNYBRbzVcMPqTfZ1FPN61A,16654
@@ -35,9 +35,9 @@ ion_CSP/run/run_gen_opt.py,sha256=_Zcsu0FkuZTfiGKSWNaK17LiyQ3qrP30F66UN5QemCo,27
35
35
  ion_CSP/run/run_read_mlp_density.py,sha256=aSJjWS1jH-D7qzx7RnpMPSTH7KEZp2b35dg1b2OQSCM,1864
36
36
  ion_CSP/run/run_upload_download.py,sha256=wuTAdy4bgdduD7TJtgHwo_fTpHKlkAwmgRknClDLYDo,2436
37
37
  ion_CSP/run/run_vasp_processing.py,sha256=hziE4cZwmIWvVaZtwHn9Dl35apYSLlMvSVIbCyd5mFg,1612
38
- ion_csp-2.2.2.dist-info/licenses/LICENSE,sha256=yeL9PshY_rGAt3GKqn8U7NafHifpmZipb-Owu0DDrHo,1070
39
- ion_csp-2.2.2.dist-info/METADATA,sha256=C35tKmC9pWPtn5ta5Q0ndJVheskSG_kHWhHC4fVcr6Q,6314
40
- ion_csp-2.2.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
41
- ion_csp-2.2.2.dist-info/entry_points.txt,sha256=NexQJDs9f69kJA2DgoU6tsA3V8a66nadJRem1U_c_6g,54
42
- ion_csp-2.2.2.dist-info/top_level.txt,sha256=aYZa43dDebjLpWPN6bDIlBb6BVwA8gk4ajEjDDK9b9I,8
43
- ion_csp-2.2.2.dist-info/RECORD,,
38
+ ion_csp-2.2.3.dist-info/licenses/LICENSE,sha256=yeL9PshY_rGAt3GKqn8U7NafHifpmZipb-Owu0DDrHo,1070
39
+ ion_csp-2.2.3.dist-info/METADATA,sha256=hCXl6gqOMqsmHyptied9QekguXqh-YctkAX5Y9QR124,6314
40
+ ion_csp-2.2.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
41
+ ion_csp-2.2.3.dist-info/entry_points.txt,sha256=NexQJDs9f69kJA2DgoU6tsA3V8a66nadJRem1U_c_6g,54
42
+ ion_csp-2.2.3.dist-info/top_level.txt,sha256=aYZa43dDebjLpWPN6bDIlBb6BVwA8gk4ajEjDDK9b9I,8
43
+ ion_csp-2.2.3.dist-info/RECORD,,