Skip to content

Commit 2b83e8a

Browse files
committed
PERF speciify time index in ModelChain.prepare_inputs
1 parent c83cb79 commit 2b83e8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pvlib/modelchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ def prepare_inputs(self, times=None, weather=None):
737737
if weather is not None:
738738
self.weather = weather
739739
if self.weather is None:
740-
self.weather = pd.DataFrame()
740+
self.weather = pd.DataFrame(index=times)
741741

742742
if times is not None:
743743
self.times = times

0 commit comments

Comments
 (0)