Skip to content

Commit

Permalink
fix Too many positional arguments for method call in _converters.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kenko911 authored Sep 26, 2024
1 parent e6c7769 commit 9316f9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions m3gnet/graph/_converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def __call__(self, structure: StructureOrMolecule, state_attr=None, *args, **kwa
Returns:
"""
return self.convert(structure, state_attr)
return self.convert(structure, state_attr, *args, **kwargs)


@register
Expand Down Expand Up @@ -147,7 +147,7 @@ def __init__(

super().__init__(**kwargs)

def convert(self, structure: StructureOrMolecule, state_attr=None, **kwargs) -> MaterialGraph:
def convert(self, structure: StructureOrMolecule, state_attr=None, *args, **kwargs) -> MaterialGraph:
"""
Convert the structure into graph
Args:
Expand Down

0 comments on commit 9316f9b

Please sign in to comment.