We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74e1e54 commit 055a7c3Copy full SHA for 055a7c3
pvlib/clearsky.py
@@ -800,7 +800,7 @@ def _get_sample_intervals(times, win_length):
800
# determine if we can proceed
801
if times.inferred_freq and len(np.unique(deltas)) == 1:
802
sample_interval = times[1] - times[0]
803
- sample_interval = sample_interval.total_seconds() / 60 # in minutes
+ sample_interval = sample_interval.seconds / 60 # in minutes
804
samples_per_window = int(win_length / sample_interval)
805
return sample_interval, samples_per_window
806
else:
0 commit comments