Problem
Rename module name singlediode_methods.py and refactor pvsystem.singlediode
singlediode_methods.py is a long name for a module
- the suffix "methods" is ambiguous, superfluous, and not descriptive
- the other modules have meaningful names that correspond loosely to the modeling steps described at Sandia PVPMC
- there needs to be a discussion regarding possibly refactoring
pvsystem.singlediode
- having a module shadow a method from a different module might be confusing or maybe it's not a problem?
- has there already been discussion on breaking
singlediode up, refactoring, or renaming it?
Proposed Solution
Rename module singlediode_methods.py to just singlediode.py and consider refactoring pvsystem.singlediode
- rename the module from
singlediode_methods.py to just singlediode.py
- change all references in the code where appropriate
- change all references in the comments and documentation where appropriate
- start a discussion on the repercussions to the
singlediode() methods in pvsystem.py
alternatives
- rename the module something else like
dc_energy.py, pvmodules.py, or pvcells.py
- do nothing
- rename the module to
singlediode.py and leave pvsystem.singlediode() alone
- rename the module to
singlediode.py and move pvsystem.singlediode() to singlediode.singlediode() which is a more established pattern, right?
Additional context
Problem
Rename module name
singlediode_methods.pyand refactorpvsystem.singlediodesinglediode_methods.pyis a long name for a modulepvsystem.singlediodesinglediodeup, refactoring, or renaming it?Proposed Solution
Rename module
singlediode_methods.pyto justsinglediode.pyand consider refactoringpvsystem.singlediodesinglediode_methods.pyto justsinglediode.pysinglediode()methods inpvsystem.pyalternatives
dc_energy.py,pvmodules.py, orpvcells.pysinglediode.pyand leavepvsystem.singlediode()alonesinglediode.pyand movepvsystem.singlediode()tosinglediode.singlediode()which is a more established pattern, right?Additional context