Skip to content

Conversation

@mikofski
Copy link
Member

@mikofski mikofski commented Sep 5, 2018

  • from pvlib import singlediode as _singlediode # to differentiate from
    local function pvsystem.singlediode
  • replace pvlib.singlediode with _singlediode everywhere
  • remove extra line and whitespace around FC_MODEL_PARAMS

this should fix LGTM alert in pvsystem.py

Module 'pvlib' is imported with both 'import' and 'import from'

* from pvlib import singlediode as _singlediode # to differentiate from
local function pvsystem.singlediode
* replace pvlib.singlediode with _singlediode everywhere
* remove extra line and whitespace around FC_MODEL_PARAMS
@wholmgren
Copy link
Member

Thanks. I thought about doing exactly this in #559 but decided it should probably be done separately.

@mikofski
Copy link
Member Author

mikofski commented Sep 5, 2018

Actually, you had recommended this change already in this comment on the original PR 😏

Something like from pvlib import singlediode as _singlediode would work too.

@wholmgren wholmgren added this to the 0.6.0 milestone Sep 6, 2018
@wholmgren wholmgren added the bug label Sep 6, 2018
@wholmgren wholmgren merged commit 7195548 into pvlib:master Sep 6, 2018
@mikofski mikofski deleted the fix_pvsystem_imports_pvlib_twice branch September 6, 2018 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants