Skip to content

Commit

Permalink
replace args by kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
samwaseda committed Aug 8, 2023
1 parent b6b39cc commit 4a446bc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions structuretoolkit/analyse/spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def __init__(
var_ratio=5,
min_samples=None,
neigh_args={},
**args
**kwargs
):
"""
Expand Down Expand Up @@ -214,19 +214,19 @@ def __init__(
self.workflow = [
{
"f": remove_too_close,
"args": {"structure": structure, "min_distance": min_distance},
"kwargs": {"structure": structure, "min_distance": min_distance},
},
{
"f": set_to_high_symmetry_points,
"args": {"structure": structure, "neigh": self.neigh},
"kwargs": {"structure": structure, "neigh": self.neigh},
},
{
"f": lambda **args: get_cluster_positions(structure, **args),
"args": {"eps": x_eps},
"f": lambda **kwargs: get_cluster_positions(structure, **kwargs),
"kwargs": {"eps": x_eps},
},
{
"f": cluster_by_steinhardt,
"args": {
"kwargs": {
"neigh": self.neigh,
"l_values": l_values,
"q_eps": q_eps,
Expand Down Expand Up @@ -333,7 +333,7 @@ def get_interstitials(
var_ratio=5,
min_samples=None,
neigh_args={},
**args
**kwargs
):
return Interstitials(
structure=structure,
Expand All @@ -347,7 +347,7 @@ def get_interstitials(
var_ratio=var_ratio,
min_samples=min_samples,
neigh_args=neigh_args,
**args
**kwargs
)


Expand Down

0 comments on commit 4a446bc

Please sign in to comment.