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

Commit 931da61

Browse files
committed
sat validation -1 #29
1 parent db36595 commit 931da61

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

nowcasting_dataset/data_sources/satellite/satellite_model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ class Satellite(DataSourceOutput):
2828
def model_validation(cls, v):
2929
""" Check that all values are non negative """
3030
assert (~np.isnan(v.data)).all(), f"Some satellite data values are NaNs"
31+
assert (v.data != -1).all(), f"Some satellite data values are -1's"
3132
return v

tests/data_sources/sun/test_sun_data_source.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
from nowcasting_dataset.data_sources.sun.sun_data_source import SunDataSource
2-
from datetime import datetime
3-
4-
# from nowcasting_dataset.dataset.example import Example
5-
from nowcasting_dataset.consts import SUN_ELEVATION_ANGLE, SUN_AZIMUTH_ANGLE
62
import pandas as pd
73

84

0 commit comments

Comments
 (0)