-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix issue with `CalcMPP_IscVocFFeff()` was trying to use dP/dV = 0 to get better estimate of Vmp, but this is at most as accurate as simply using the index found from max(Psys), and probably less accurate, also it was using all Vsys, so it would jump to local extrema * finally add setup.py and create distribution so users can install Signed-off-by: Mark Mikofski <mark.mikofski@sunpowercorp.com>
- Loading branch information
Showing
6 changed files
with
150 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
*.pyc | ||
# ide | ||
.spyderproject | ||
.project | ||
.pydevproject | ||
.settings/ | ||
testPV/ | ||
.idea/ | ||
pvmismatch.sublime-project | ||
pvmismatch.sublime-workspace | ||
benchmark_*/ | ||
|
||
# files | ||
*.pyc | ||
*.orig | ||
|
||
# folders | ||
_*/ | ||
!docs/_templates/ | ||
|
||
|
||
testPV/ | ||
benchmark_*/ | ||
dist/ | ||
pvmismatch.egg-info | ||
venv/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
CHANGES | ||
======= | ||
|
||
v1.6 German Goulash | ||
------------------- | ||
|
||
|
||
v1.5 French Falafel | ||
------------------- | ||
* bug fixes | ||
* corrects pt spacing for module current | ||
* simplifies Istring calc | ||
* multithreading of some pvsys and pvstring calcs | ||
* TODO multithread calcMod if possible | ||
* benchmarked vs older code | ||
* pretty up & optimize code | ||
|
||
v1.4.1 European Eclair | ||
---------------------- | ||
* bug fix PVconstants use self.npts, not NPTS! | ||
* remove commented legacy code | ||
|
||
v1.4 European Eggplant | ||
---------------------- | ||
* Isc0 is also temp dependent but rename Isc0 to Isc0_T0 | ||
and Isat1 to Isat1_T0 | ||
* add alpha_Isc input arg to PVconstants | ||
* cast all pvconst inputs to float to avoid integer errors | ||
* fix advCnf to use Isc0_T0 and Isat1_T0 | ||
* in PVconstants.update() check for Isat1, Isc0, Eg, | ||
alpha_Isc and Tcell | ||
* add calc_Isat1 and calc_Isc0 functions | ||
|
||
v1.3.1 Danish Delicatessen | ||
-------------------------- | ||
* Isat1 temperature dependence | ||
* add Eg, band gap energy | ||
* set default npts to 101, let user specify to constructor | ||
* change pts to be logspace | ||
|
||
v1.3 Danish Donuts | ||
------------------ | ||
* pvmismatch_tk has advanced configuration button to set nearly all | ||
diode model parameters | ||
* pvmodules, pvstring and pvsystem all use deepcopy to make cheap copies | ||
of modules, instead of looping over and constructing every module | ||
individually - huge time savings | ||
* bug fixes: be 163/123 increase range of Imod & Istr for Ee > 1 sun, be | ||
163/9e9 temp dep, be 163/069 hook up all widgets on main screen | ||
* move validation const & messages to json files | ||
* add pvexceptions | ||
* add waitbox during long actions and startup | ||
* numerous improvements | ||
|
||
v1.2 Canadian Cheese | ||
-------------------- | ||
* main app page completely refactored | ||
* matplotlib graph of system IV curve on main page | ||
* only set strings, modules/string & cells/module | ||
* all validation limits to integers and max value | ||
* string button | ||
* scale connected to I, V & P entry output | ||
* TODO: entry widegt should be 2 way with scale | ||
* TODO: scale and entry widgets should move cursor on plot | ||
* see cursor example on matplotlib | ||
* TODO: use asynchronous thread to show progress bar during calculations | ||
* TODO: still need to hook up other buttons | ||
* TODO: other screens | ||
* TODO: advanced settings button | ||
* TODO: temp dependent Isat's and R's | ||
|
||
v1.1 Belgian Banana | ||
------------------- | ||
* Tkinter front end | ||
* input all variables, some validation | ||
* reset, load, save, quit | ||
* separate buttons to view results | ||
* TODO: make results buttons work | ||
* TODO: connect to pvmismatch | ||
* TODO: validaton actually limits to correct ranges | ||
* TODO: validation allows deletions and insertions | ||
|
||
v1.0 Appalachian Apple | ||
---------------------- | ||
* 2-diode model | ||
* avalanche reverse bias and breakdown characteristics | ||
* composed of pvmodule, pvstring and pvsystem | ||
* testscript creates output in testPV folder | ||
* bypass diodes simply represented by trigger voltage | ||
* extrapolation used out of range, could pose problems | ||
* noJac temperature, ie assumed explicit | ||
* TODO: add max power function, return I,V,P | ||
* TODO: create user interface | ||
* TODO: register event so update is automatic | ||
* TODO: test bypass diodes, extrapolation and other corner cases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
include pvmismatch_json/*.json | ||
include res/*.png | ||
include CHANGES | ||
recursive-include docs *.rst | ||
include docs/conf.py | ||
include docs/make.bat | ||
include docs/Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
__author__ = 'mmikofski' | ||
|
||
try: | ||
from setuptools import setup | ||
except ImportError: | ||
from distutils.core import setup | ||
from pvmismatch import __version__ as VERSION, __name__ as NAME | ||
|
||
|
||
setup(name=NAME, | ||
version=VERSION, | ||
description='PV Mismatch Calculator', | ||
author=__author__, | ||
author_email='mark.mikofski@sunpower.com', | ||
url='https://github.com/SunPower/PVMismatch', | ||
packages=['pvmismatch', 'pvmismatch_tk'], | ||
requires=['numpy (>=1.8)', 'matplotlib (>=1.3)', 'scipy (>=0.12.0)'], | ||
scripts=['pv_tk.py'], | ||
package_data={'pvmismatch_tk': | ||
['pvmismatch_json/messagetext.English.json', | ||
'pvmismatch_json/validationConstants.json', | ||
'res/logo.png', 'res/logo_bg.png', 'docs/conf.py', | ||
'docs/*.rst', 'docs/Makefile', 'docs/make.bat']}) |