surface-construct 0.12.7__tar.gz → 0.12.8__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.
- {surface_construct-0.12.7/surface_construct.egg-info → surface_construct-0.12.8}/PKG-INFO +1 -1
- {surface_construct-0.12.7 → surface_construct-0.12.8}/setup.py +1 -1
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/tasks/sitesampling.py +2 -2
- {surface_construct-0.12.7 → surface_construct-0.12.8/surface_construct.egg-info}/PKG-INFO +1 -1
- {surface_construct-0.12.7 → surface_construct-0.12.8}/LICENSE +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/README.md +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/setup.cfg +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/__init__.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/db.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/default_parameter.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/sg_sampler.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/structures/__init__.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/structures/adsorbate.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/structures/combiner.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/structures/pymsym_test.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/structures/surface.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/structures/surface_grid.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/tasks/__init__.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/tasks/afm.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/tasks/taskbase.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/tasks/terminations.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/tasks/vipsitetask.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/utils/__init__.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/utils/atoms.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/utils/geometry.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/utils/pymsym_wrapper.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/utils/spglib_wrapper.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/utils/weight_functions.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct.egg-info/SOURCES.txt +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct.egg-info/dependency_links.txt +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct.egg-info/requires.txt +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct.egg-info/top_level.txt +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/tests/test_adsorbate.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/tests/test_combiner.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/tests/test_sampling1.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/tests/test_sampling2.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/tests/test_simple_surface.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/tests/test_surface_grid.py +0 -0
- {surface_construct-0.12.7 → surface_construct-0.12.8}/tests/test_task.py +0 -0
{surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/tasks/sitesampling.py
RENAMED
|
@@ -36,7 +36,7 @@ class SurfaceSiteSampleTask(TaskBase):
|
|
|
36
36
|
:param combiner:
|
|
37
37
|
:param optimizer: ase.optimizer, 默认 None 即不优化, fmax=0.1, steps=100
|
|
38
38
|
:param sampler:
|
|
39
|
-
:param kwargs: {'
|
|
39
|
+
:param kwargs: {'opt_kwargs':None, other kwargs} 需要把 optimizer的参数单独出来,因为它的参数比较固定
|
|
40
40
|
"""
|
|
41
41
|
# 初始化
|
|
42
42
|
super().__init__(**kwargs)
|
|
@@ -116,7 +116,7 @@ class SurfaceSiteSampleTask(TaskBase):
|
|
|
116
116
|
# 设置 constraint
|
|
117
117
|
fixed_idx = list(range(len(self.sg_obj.atoms), len(atoms)))
|
|
118
118
|
atoms.set_constraint([FixAtomsComXY(fixed_idx)] + atoms.constraints)
|
|
119
|
-
opt_kwargs = self.kwargs.get('
|
|
119
|
+
opt_kwargs = self.kwargs.get('opt_kwargs',dict())
|
|
120
120
|
output_name = f"opt_{grid_idx}-{cidx or 0}-{ridx or 0}-{dp_idx or 0}"
|
|
121
121
|
if 'logfile' not in opt_kwargs:
|
|
122
122
|
opt_kwargs['logfile'] = f"{output_name}.log"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/default_parameter.py
RENAMED
|
File without changes
|
|
File without changes
|
{surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/structures/__init__.py
RENAMED
|
File without changes
|
{surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/structures/adsorbate.py
RENAMED
|
File without changes
|
{surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/structures/combiner.py
RENAMED
|
File without changes
|
{surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/structures/pymsym_test.py
RENAMED
|
File without changes
|
{surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/structures/surface.py
RENAMED
|
File without changes
|
{surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/structures/surface_grid.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/tasks/terminations.py
RENAMED
|
File without changes
|
{surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/tasks/vipsitetask.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/utils/pymsym_wrapper.py
RENAMED
|
File without changes
|
{surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/utils/spglib_wrapper.py
RENAMED
|
File without changes
|
{surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct/utils/weight_functions.py
RENAMED
|
File without changes
|
{surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct.egg-info/requires.txt
RENAMED
|
File without changes
|
{surface_construct-0.12.7 → surface_construct-0.12.8}/surface_construct.egg-info/top_level.txt
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
|