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

Commit d23e64b

Browse files
committed
add issue #631
1 parent bf7f1d9 commit d23e64b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

nowcasting_dataset/data_sources/pv/pv_data_source.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,12 @@ class PVDataSource(ImageDataSource):
3333
defined by image_size_pixels and meters_per_pixel.
3434
"""
3535

36-
# filenames: Union[str, Path, List]
37-
# metadata_filenames: Union[str, Path, List]
36+
# This are just keep in for the moment, but don't do anything.
37+
# THey are needed for manager.py to work
38+
# TODO: #631
39+
filename: Union[str, Path, List]
40+
metadata_filename: Union[str, Path, List]
41+
3842
files_groups: List[Union[PVFiles, dict]]
3943
# TODO: Issue #425: Use config to set start_dt and end_dt.
4044
start_datetime: Optional[datetime.datetime] = None
@@ -50,6 +54,9 @@ class PVDataSource(ImageDataSource):
5054
def __post_init__(self, image_size_pixels: int, meters_per_pixel: int):
5155
"""Post Init"""
5256

57+
assert self.filename is None
58+
assert self.metadata_filename is None
59+
5360
if type(self.files_groups[0]) == dict:
5461
self.files_groups = [PVFiles(**files) for files in self.files_groups]
5562

0 commit comments

Comments
 (0)