Skip to content

Commit d3153ce

Browse files
authored
Remove empty check for time and values arrays in plot_intraday_heatmap (#55)
1 parent 48af27c commit d3153ce

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/solarpy/plotting/intraday_heatmap.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,12 @@ def plot_intraday_heatmap(
105105
time = np.asarray(time, dtype="datetime64[ns]")
106106
values = np.asarray(values, dtype=float)
107107

108-
if time.size == 0 or values.size == 0:
109-
raise ValueError("time and values must not be empty.")
110108
if len(time) != len(values):
111109
raise ValueError(
112110
f"time and values must have the same length, "
113111
f"got {len(time)} and {len(values)}."
114112
)
113+
# The smallest resolution currently supported is 1min
115114
if 1440 % resolution != 0:
116115
raise ValueError(f"resolution must evenly divide 1440, got {resolution}.")
117116

0 commit comments

Comments
 (0)