Skip to content

Commit

Permalink
Update Computation.py
Browse files Browse the repository at this point in the history
The operation to clean the model after performing a deepcopy has been canceled. The clean model operation removes all attributes of the model, which leads to the inability to initialize TES.
  • Loading branch information
sicheng-an authored Nov 19, 2024
1 parent e760265 commit 043ad27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygpc/Computation.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def run(self, model, problem, coords, coords_norm=None, i_iter=None, i_subiter=N

# deepcopy model and delete attributes
model_ = copy.deepcopy(model)
model_.__clean__()
# model_.__clean__()

for j, random_var_instances in enumerate(grid_new):

Expand Down

0 comments on commit 043ad27

Please sign in to comment.