8000 Updated method of modelchain.ModelChain.prepare_inputs in modelchain.py by Ahanmr · Pull Request #893 · pvlib/pvlib-python · GitHub
[go: up one dir, main page]

Skip to content

Updated method of modelchain.ModelChain.prepare_inputs in modelchain.py #893

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updated modelchain.py
Added weather inputs to get_solarpostion method in modelchain.ModelChain.prepare_inputs
  • Loading branch information
Ahanmr authored Feb 17, 2020
commit 5e6de6ab31c30b0355f81824e0fb17bb07b57797
7 changes: 3 additions & 4 deletions pvlib/modelchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -861,10 +861,9 @@ def prepare_inputs(self, weather, times=None):
self.times = self.weather.index

self.solar_position = self.location.get_solarposition(
self.weather.index,
method=self.solar_position_method,
pressure=self.weather.pressure,
temperature=self.weather.temp_air)
self.weather.index,method=self.solar_position_method,
pressure=self.weather.pressure,
temperature=self.weather.temp_air)

self.airmass = self.location.get_airmass(
solar_position=self.solar_position, model=self.airmass_model)
Expand Down
0