Skip to content

Commit

Permalink
Code fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ppizarror committed Aug 14, 2024
1 parent 72a65e6 commit c279910
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MLStructFP/db/image/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

__all__ = ['BaseImage', 'TYPE_IMAGE']

from MLStructFP._types import TYPE_CHECKING, List, NumberType, Optional, Tuple
from MLStructFP._types import TYPE_CHECKING, List, NumberType, Tuple
from MLStructFP.utils import make_dirs

import math
Expand Down Expand Up @@ -51,7 +51,7 @@ def __init__(self, path: str, save_images: bool, image_size_px: int) -> None:
make_dirs(path)
assert os.path.isdir(path), f'Path <{path}> does not exist'

super(ABC, self).__init__()
super().__init__()
self._image_size = image_size_px
self._images = []
self._names = [] # List of image names
Expand All @@ -66,7 +66,7 @@ def image_shape(self) -> Tuple[int, int]:
return self._image_size, self._image_size

@abstractmethod
def close(self) -> None:
def close(self, *args, **kwargs) -> None:
"""
Close and delete all generated figures.
"""
Expand Down

0 comments on commit c279910

Please sign in to comment.