• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pvlib / pvlib-python / 916
96%

Build:
DEFAULT BRANCH: master
Ran 29 May 2017 03:05PM UTC
Jobs 5
Files 30
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
916

push

travis-ci

wholmgren
Safely calculate dni from dhi and ghi (#250)

* creating basic function to calculate DNI from GHI and DHI

* replace equation with new function for test purposes

* change types to satisfy type checks

* remove warning if new function is used

* adapt input and output of dni method

* adapt docstring to new inputs

* add clearsky method to correct calculated dni

* add cutoff method to correct calculated dni

* add logging warning and debug messages

* increase code quality

* remove non-ascii characters

* Remove user warning

* Replace input variable location by zenith and clearsky_dni

* Correct docstring

* Remove unnecessary calculation

* Correct negative DNI

Negative values of the calculated DNI will be set to zero or if the new
input value 'set_to_nan' is 'True' will be set to 'NaN'.

* Implement clearsky method

* Include tolerance factor for clearsky method and adapt function call in modelchain

* Enable set_to_nan in cutoff method

* Raise value error if chosen method does not exist

* Debugging info how many values needed correction

* Correct parameter types in docstring

* Correct test_complete_irradiance

* Remove debugging info

* Remove method and introduce new parameters for cutoff zenith angles

* Adapt docstring to new parameters

* Remove commented lines

* Adapt complete_irradiance definition of modelchain to new parameters in DNI calculation

* Add test function for DNI calculation

* Merge upstream changes on master

The only conflict was that both me and the upstream master added a test
at the end of a test file so the solution was easy: just take both.

* Add accidentally un-added files

I had a mishap which removed these files from being version controlled.
This should fix it.

* Remove kwargs from dni function

* Remove unnecessary dni_tmp

* Remove blank line at end of docstring

* Add max_dni to do calculation only once

* Correct comment

* Correct docstring for lower_cutoff_zenith

* Remove kwargs from complete_irradiance

* Correct docstrings

* Use same default value for clearsky_tolerance as in ModelChain

* Change names of lower_ and upper_cutoff_zenith and adapt docstring and comments

lower_cutoff_zenith is renamed to zenith_threshold_for_clearsky_limit
upper_cutoff_zenith is renamed to zenith_threshold_for_zero_dni

* add safely calculate dni from dhi and ghi (#250)

4923 of 5342 relevant lines covered (92.16%)

4.3 hits per line

Jobs
ID Job ID Ran Files Coverage
1 916.1 (CONDA_ENV=py27-min) 29 May 2017 03:07PM UTC 0
71.08
Travis Job 916.1
2 916.2 (CONDA_ENV=py27) 29 May 2017 03:06PM UTC 0
91.78
Travis Job 916.2
3 916.3 (CONDA_ENV=py34) 29 May 2017 03:09PM UTC 0
91.76
Travis Job 916.3
4 916.4 (CONDA_ENV=py35) 29 May 2017 03:06PM UTC 0
91.76
Travis Job 916.4
5 916.5 (CONDA_ENV=py36) 29 May 2017 03:05PM UTC 0
83.98
Travis Job 916.5
Source Files on build 916
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #916
  • f8423c94 on github
  • Prev Build on master (#914)
  • Next Build on master (#918)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc