8000 Deprecate/raise error for PVSystem "pass-through" properties by kandersolar · Pull Request #1196 · pvlib/pvlib-python · GitHub
[go: up one dir, main page]

Skip to content

Deprecate/raise error for PVSystem "pass-through" properties #1196

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

Merged
merged 16 commits into from
May 20, 2021
Merged
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
rephrase error message
  • Loading branch information
kandersolar committed May 19, 2021
commit 71b07da40c08aa66a92bbba0c14ebea2de355628
3 changes: 2 additions & 1 deletion pvlib/pvsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ def wrapper(self, *args, **kwargs):
if len(self.arrays) > 1:
raise AttributeError(
f'{class_name}.{pvsystem_attr} not supported for multi-array '
f'systems. Use {alternative} instead.')
f'systems. Set {array_attr} for each Array in '
f'{class_name}.arrays instead.')

wrapped = deprecated('0.9', alternative=alternative, removal='0.10',
name=f"{class_name}.{pvsystem_attr}")(func)
Expand Down
0