Skip to content

Commit

Permalink
cleaned up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vlnistor committed Mar 25, 2024
1 parent cbcaa9c commit cc5d52d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/kbmod/batch_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ def __enter__(self):
This method is called when entering the context managed by the `with` statement.
It prepares the batch search by calling `prepare_batch_search` on the StackSearch instance.
"""
# Initialize or prepare memory for the batch search.
# Prepare memory for the batch search.
self.stack_search.prepare_batch_search(self.search_list, self.min_observations)
# Return the object that should be used within the `with` block. Here, it's the StackSearch instance.
return self.stack_search

def __exit__(self, exc_type, exc_value, traceback):
Expand All @@ -33,8 +32,6 @@ def __exit__(self, exc_type, exc_value, traceback):
- exc_value: The exception value if an exception was raised.
- traceback: The traceback object if an exception was raised.
"""
# Clean up resources or delete initialized memory.
# Clean up
self.stack_search.finish_search()
# Returning False means any exception raised within the `with` block will be propagated.
# To suppress exceptions, return True.
return False

0 comments on commit cc5d52d

Please sign in to comment.