Skip to content

Commit

Permalink
feat: ImageDataset name is now optional (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaivardhan-bhola authored Jun 23, 2022
1 parent 5d0c265 commit cb841bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions camtrapml/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from os import walk

from camtrapml.image.utils import is_image

from typing import Union

class ImageDataset:
"""
Expand All @@ -15,7 +15,7 @@ class ImageDataset:
name: str
path: Path

def __init__(self, name: str, path: Path):
def __init__(self,path: Path, name : Union[None, str] = None):
self.name = name
self.path = Path(path).expanduser()
self.image_set = None
Expand Down

0 comments on commit cb841bc

Please sign in to comment.