Skip to content

Commit

Permalink
v0.1.2 fix
Browse files Browse the repository at this point in the history
Adjust __get_state to ignore timer as class attribute to make it work with dask
  • Loading branch information
Bronzila committed Jul 11, 2024
1 parent bfc457a commit 58f9fb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dehb/optimizers/dehb.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ def __getstate__(self):
d = dict(self.__dict__)
d["client"] = None # hack to allow Dask client to be a class attribute
d["logger"] = None # hack to allow logger object to be a class attribute
d["_runtime_budget_timer"] = None # hack to allow timer object to be a class attribute
return d

def __del__(self):
Expand Down

0 comments on commit 58f9fb9

Please sign in to comment.