Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
add issue #631
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Apr 4, 2022
1 parent bf7f1d9 commit d23e64b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions nowcasting_dataset/data_sources/pv/pv_data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@ class PVDataSource(ImageDataSource):
defined by image_size_pixels and meters_per_pixel.
"""

# filenames: Union[str, Path, List]
# metadata_filenames: Union[str, Path, List]
# This are just keep in for the moment, but don't do anything.
# THey are needed for manager.py to work
# TODO: #631
filename: Union[str, Path, List]
metadata_filename: Union[str, Path, List]

files_groups: List[Union[PVFiles, dict]]
# TODO: Issue #425: Use config to set start_dt and end_dt.
start_datetime: Optional[datetime.datetime] = None
Expand All @@ -50,6 +54,9 @@ class PVDataSource(ImageDataSource):
def __post_init__(self, image_size_pixels: int, meters_per_pixel: int):
"""Post Init"""

assert self.filename is None
assert self.metadata_filename is None

if type(self.files_groups[0]) == dict:
self.files_groups = [PVFiles(**files) for files in self.files_groups]

Expand Down

0 comments on commit d23e64b

Please sign in to comment.