Skip to content

Commit

Permalink
Merge pull request #9 from Quantum-Accelerators/deepsource-autofix-d3…
Browse files Browse the repository at this point in the history
…40b22d

refactor: change methods not using its bound instance to staticmethods
  • Loading branch information
Andrew-S-Rosen authored Jan 13, 2024
2 parents a195a1c + 12b4d91 commit 3b9bec2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/raspa_ase/calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ def execute(self, directory: Path | str, profile: RaspaProfile) -> None:
"""
profile.run(directory, self.output_file)

@staticmethod
def write_input(
self,
directory: Path | str,
atoms: Atoms,
parameters: dict[str, Any],
Expand Down Expand Up @@ -148,7 +148,8 @@ def write_input(
write_simulation_input(parameters, directory / SIMULATION_INPUT)
write_frameworks(frameworks, directory)

def read_results(self, directory: Path | str) -> Results:
@staticmethod
def read_results(directory: Path | str) -> Results:
"""
Read the results of a RASPA calculation.
Expand Down

0 comments on commit 3b9bec2

Please sign in to comment.