Skip to content

Commit

Permalink
image_handler.py renamed to MEMORY_WARN_LIMIT the number of arrays fo…
Browse files Browse the repository at this point in the history
…r warning.

Signed-off-by: SCA075 <[email protected]>
  • Loading branch information
sca075 committed Feb 9, 2024
1 parent e96562e commit 5fe2769
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ def calculate_memory_usage(self, array: np.ndarray, margin: int) -> float:
return total_memory_mb

# Function to check if there is enough available memory with a margin
def check_memory_with_margin(self, array, margin=DRAWING_STEPS):
def check_memory_with_margin(self, array, margin=MEMORY_WARN_LIMIT):
"""Check if there is enough available memory with a margin.
:raises MemoryShortageError: If there is not enough memory available."""
array_memory_mb = self.calculate_memory_usage(array, margin)
Expand Down

0 comments on commit 5fe2769

Please sign in to comment.