Skip to content

Commit

Permalink
updated based on latest changes
Browse files Browse the repository at this point in the history
updated `__init__.py`  and `README.md` to match the master branch
  • Loading branch information
mostaphaRoudsari committed Mar 1, 2019
1 parent e8bb2ce commit d9925f2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -50,9 +50,9 @@ print('altitude: {}, azimuth: {}'.format(sun.altitude, sun.azimuth))
### derivative work
Ladybug is a derivative work of the following software projects:

[pyeuclid](https://code.google.com/p/pyeuclid/) for vector math calculation. Available under LGPL.
[CBE Comfort Tool](https://github.com/CenterForTheBuiltEnvironment/comfort_tool) for indoor thermal comfort calculations. Available under GPL.
[UTCI Fortran Code](http://www.utci.org/utci_doku.php) for outdoor thermal comfort calculations. Available under MIT.
[pyeuclid](https://code.google.com/p/pyeuclid/) for vector math calculation. Available
under LGPL.

[PVLib-python](https://github.com/pvlib/pvlib-python) for solar irradiance calculations. Available under BSD 3-clause.

Applicable copyright notices for theses works can be found within the relevant .py files.
16 changes: 15 additions & 1 deletion ladybug/__init__.py
@@ -1,6 +1,20 @@
import sys
import importlib
import pkgutil

__version__ = '0.0.12'
__version__ = '0.1.0'

# find and import ladybug plugins
# this is a critical step to add additional functionalities to ladybug core library.
lb_plugins = {
name: importlib.import_module(name)
for finder, name, ispkg
in pkgutil.iter_modules()
if name.startswith('ladybug_')
}

for key in lb_plugins:
print('Successfully imported Ladybug plugin: {}'.format(key))

# This is a variable to check if the library is a [+] library.
setattr(sys.modules[__name__], 'isplus', False)
4 changes: 1 addition & 3 deletions tox.ini
@@ -1,7 +1,5 @@
# tox (https://tox.readthedocs.io/)

[tox]
envlist = py27, py35
envlist = py27, py36

[testenv]
commands = pytest --cov=ladybug tests/
Expand Down

0 comments on commit d9925f2

Please sign in to comment.