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

ladybug-tools / ladybug / 784 / 2
92%
master: 91%

Build:
Build:
LAST BUILD BRANCH: dependabot/pip/ladybug-geometry-1.23.9
DEFAULT BRANCH: master
Ran 19 Mar 2020 02:04PM UTC
Files 52
Run time 7s
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

19 Mar 2020 01:59PM UTC coverage: 91.631%. First build
784.2

push

travis-ci

chriswmackey
feat(sunpath): Refactor sunpath to use ladybug_geometry instead of plus

This commit switches the Ladybug sunpath to use ladybug_geometry to generate all of its graphics. This effectively allows the production of highly customized geometry using only Python.

This commit also adds a module for generating compass graphics, which are intended to be used by the sunpath as well as graphics like the wind rose that @saeranv is working on.

Lastly, I found and fixed quite a lot of bugs and made several enhancements to the sun path including:

* Time zones for a lot of EPW locations were being "autocorrected" to solar time. Notably, at least half of Chinese sunpaths did not have the right time zone from the EWP file. Instead of this, I made sure that a user-specified (or epw-specified) time zone always takes precedence but, if a user does not specify a time zone, it will default to the solar time zone based on the longitude.
* Fixed a math domain error that was occurring whenever someone requested solar vectors at precise solar noon.
* Fixed a math domain error that was occurring whenever the north or south pole was used as a location.
* Fixed a syntax bug in the calculation of atmospheric refraction. Essentially, multiple lines of code were not being included in the refraction factor calculation. I am guessing this is leftover because this Sunpath class was one of the first classes Mostapha tried to write with a 79 characters-per-line limit and the correct syntax for multi-line statements wasn't yet ingrained.
* Fixed the is_daylight_saving_hour method to correctly interpret the st_hour and end_hour of the analysis period as the time of the day when daylight saving starts/ends. Before, if a user had messed with these start and end hours, they would have gotten a sunpath jumping in and out of daylight saving every day.
* Fixed the application of daylight savings to move the clocks forward (it was incorrectly moving the clock backwards previously)
* Changed la... (continued)

6350 of 6930 relevant lines covered (91.63%)

0.92 hits per line

Source Files on job 784.2
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 649
  • Travis Job 784.2
  • 7108f63a on github
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