Skip to content

Commit

Permalink
Implement ImageSolid.__getstate__()
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrah committed Jan 12, 2024
1 parent 22779d1 commit 96bba80
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions opengate/geometry/solids.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,13 @@ def __init__(self, *args, **kwargs):
self.g4_solid_y = None
self.g4_solid_z = None

def __getstate__(self):
return_dict = super().__getstate__()
return_dict["g4_solid_x"] = None
return_dict["g4_solid_y"] = None
return_dict["g4_solid_z"] = None
return return_dict

def close(self):
self.release_g4_references()
super().close()
Expand Down

0 comments on commit 96bba80

Please sign in to comment.