Skip to content

Commit

Permalink
Change copy to deepcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliottKasoar committed Jul 17, 2024
1 parent e29b620 commit 3e65d75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions janus_core/calculations/single_point.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Prepare and perform single point calculations."""

from collections.abc import Collection
from copy import copy
from copy import deepcopy
from pathlib import Path
from typing import Any, Optional

Expand Down Expand Up @@ -220,7 +220,7 @@ def set_calculator(

if isinstance(self.struct, list):
for struct in self.struct:
struct.calc = copy(calculator)
struct.calc = deepcopy(calculator)
# Return single Atoms object if only one image in list
if len(self.struct) == 1:
self.struct = self.struct[0]
Expand Down

0 comments on commit 3e65d75

Please sign in to comment.