Skip to content

Commit

Permalink
Remove __del__ from DataModel as it can be quite unreliable.
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson committed Nov 16, 2023
1 parent 14beded commit 728014f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/roman_datamodels/datamodels/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,6 @@ def __enter__(self):
def __exit__(self, exc_type, exc_val, exc_tb):
self.close()

def __del__(self):
"""Ensure closure of resources when deleted."""
self.close()

def copy(self, deepcopy=True, memo=None):
result = self.__class__(init=None)
self.clone(result, self, deepcopy=deepcopy, memo=memo)
Expand Down

0 comments on commit 728014f

Please sign in to comment.