Skip to content

Commit

Permalink
feat: expose parameters of VoronoiInterstitialGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
ZLI-afk committed Jan 11, 2024
1 parent 313f90b commit 1c1339e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion apex/core/property/Interstitial.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def __init__(self, parameter, inter_param=None):
self.insert_ele = parameter["insert_ele"]
parameter["lattice_type"] = parameter.get("lattice_type", None)
self.lattice_type = parameter["lattice_type"]
parameter["voronoi_param"] = parameter.get("voronoi_param", {})
self.voronoi_param = parameter["voronoi_param"]
parameter["cal_type"] = parameter.get("cal_type", "relaxation")
self.cal_type = parameter["cal_type"]
default_cal_setting = {
Expand Down Expand Up @@ -221,7 +223,7 @@ def make_confs(self, path_to_work, path_to_equi, refine=False):
os.remove(self.insert_element_task)

for ii in self.insert_ele:
pre_vds = VoronoiInterstitialGenerator()
pre_vds = VoronoiInterstitialGenerator(**self.voronoi_param)
vds = pre_vds.generate(ss, [ii])
if self.structure_type in PREDEFINED_LIST:
pre_vds = InterstitialGenerator()
Expand Down
4 changes: 2 additions & 2 deletions apex/reporter/property_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@ def plotly_graph(res_data: dict, name: str, **kwargs) -> [list[go], go.layout]:
name='Band %02d' % (ii + 1),
legendgroup=name,
legendgrouptitle_text=name,
mode='lines+markers',
line=dict(color=kwargs["color"])
mode='lines',
line=dict(color=kwargs["color"], width=1.5)
)
traces.append(trace)

Expand Down

0 comments on commit 1c1339e

Please sign in to comment.