ladybug-core 0.39.16__tar.gz → 0.44.30__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ladybug_core-0.44.30/MANIFEST.in +10 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/PKG-INFO +55 -11
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/README.md +34 -4
- ladybug_core-0.44.30/dev-requirements.txt +19 -0
- ladybug_core-0.44.30/ladybug/WMM.COF +93 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/__init__.py +3 -1
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/_datacollectionbase.py +182 -38
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/analysisperiod.py +2 -2
- ladybug_core-0.44.30/ladybug/cli/translate.py +190 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/color.py +107 -22
- ladybug_core-0.44.30/ladybug/commandutil.py +64 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/compass.py +8 -4
- ladybug_core-0.44.30/ladybug/config.py +285 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datacollection.py +121 -38
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/base.py +37 -9
- ladybug_core-0.44.30/ladybug/datatype/conductance.py +39 -0
- ladybug_core-0.44.30/ladybug/datatype/conductivity.py +45 -0
- ladybug_core-0.44.30/ladybug/datatype/density.py +55 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/generic.py +38 -11
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/illuminance.py +2 -2
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/luminance.py +2 -2
- ladybug_core-0.44.30/ladybug/datatype/resistance.py +39 -0
- ladybug_core-0.44.30/ladybug/datatype/resistivity.py +39 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/rvalue.py +22 -11
- ladybug_core-0.44.30/ladybug/datatype/specificheatcapacity.py +60 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/speed.py +8 -2
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/temperature.py +33 -1
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/temperaturedelta.py +1 -1
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/thermalcondition.py +14 -6
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/uvalue.py +2 -2
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/volumeflowrate.py +0 -1
- ladybug_core-0.44.30/ladybug/datatype/volumeheatcapacity.py +66 -0
- ladybug_core-0.44.30/ladybug/datautil.py +235 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/designday.py +49 -23
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/epw.py +337 -151
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/futil.py +20 -11
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/graphic.py +47 -34
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/header.py +35 -2
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/hourlyplot.py +76 -25
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/legend.py +1075 -295
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/location.py +8 -1
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/monthlychart.py +268 -64
- ladybug_core-0.44.30/ladybug/north.py +295 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/psychchart.py +11 -10
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/psychrometrics.py +10 -8
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/rootfinding.py +55 -9
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/skymodel.py +3 -3
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/sql.py +136 -30
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/stat.py +113 -21
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/sunpath.py +145 -51
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/viewsphere.py +265 -7
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/wea.py +24 -11
- ladybug_core-0.44.30/ladybug/windprofile.py +812 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/windrose.py +69 -48
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug_core.egg-info/PKG-INFO +55 -11
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug_core.egg-info/SOURCES.txt +13 -76
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug_core.egg-info/entry_points.txt +0 -1
- ladybug_core-0.44.30/ladybug_core.egg-info/requires.txt +7 -0
- ladybug_core-0.44.30/requirements.txt +3 -0
- ladybug_core-0.44.30/setup.cfg +4 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/setup.py +6 -2
- ladybug-core-0.39.16/.dockerignore +0 -6
- ladybug-core-0.39.16/.github/FUNDING.yml +0 -3
- ladybug-core-0.39.16/.github/ISSUE_TEMPLATE.md +0 -15
- ladybug-core-0.39.16/.github/workflows/ci.yaml +0 -134
- ladybug-core-0.39.16/.github/workflows/dependency-release.yaml +0 -32
- ladybug-core-0.39.16/.gitignore +0 -17
- ladybug-core-0.39.16/.releaserc.json +0 -10
- ladybug-core-0.39.16/Dockerfile +0 -41
- ladybug-core-0.39.16/MANIFEST.in +0 -1
- ladybug-core-0.39.16/deploy.sh +0 -28
- ladybug-core-0.39.16/dev-requirements.txt +0 -20
- ladybug-core-0.39.16/docs/README.md +0 -14
- ladybug-core-0.39.16/docs/_build/.nojekyll +0 -1
- ladybug-core-0.39.16/docs/_build/README.md +0 -1
- ladybug-core-0.39.16/docs/_build/docs/README.md +0 -1
- ladybug-core-0.39.16/docs/_static/custom.css +0 -40
- ladybug-core-0.39.16/docs/_templates/layout.html +0 -107
- ladybug-core-0.39.16/docs/cli/index.rst +0 -7
- ladybug-core-0.39.16/docs/conf.py +0 -606
- ladybug-core-0.39.16/docs/index.rst +0 -41
- ladybug-core-0.39.16/docs/modules.rst +0 -7
- ladybug-core-0.39.16/ladybug/cli/translate.py +0 -112
- ladybug-core-0.39.16/ladybug/config.py +0 -151
- ladybug-core-0.39.16/ladybug_core.egg-info/requires.txt +0 -2
- ladybug-core-0.39.16/requirements.txt +0 -2
- ladybug-core-0.39.16/setup.cfg +0 -10
- ladybug-core-0.39.16/tests/__init__.py +0 -0
- ladybug-core-0.39.16/tests/analysisperiod_test.py +0 -193
- ladybug-core-0.39.16/tests/assets/ddy/chicago.ddy +0 -536
- ladybug-core-0.39.16/tests/assets/ddy/chicago_edited.ddy +0 -535
- ladybug-core-0.39.16/tests/assets/ddy/chicago_monthly.ddy +0 -355
- ladybug-core-0.39.16/tests/assets/ddy/tokyo.ddy +0 -533
- ladybug-core-0.39.16/tests/assets/epw/chicago.epw +0 -8768
- ladybug-core-0.39.16/tests/assets/epw/tokyo.epw +0 -8768
- ladybug-core-0.39.16/tests/assets/geo/faces.json +0 -338
- ladybug-core-0.39.16/tests/assets/geo/mesh.json +0 -2490
- ladybug-core-0.39.16/tests/assets/sql/eplusout_daily.sql +0 -0
- ladybug-core-0.39.16/tests/assets/sql/eplusout_dday_runper.sql +0 -0
- ladybug-core-0.39.16/tests/assets/sql/eplusout_design_days.sql +0 -0
- ladybug-core-0.39.16/tests/assets/sql/eplusout_hourly.sql +0 -0
- ladybug-core-0.39.16/tests/assets/sql/eplusout_monthly.sql +0 -0
- ladybug-core-0.39.16/tests/assets/sql/eplusout_odd_zonesize.sql +0 -0
- ladybug-core-0.39.16/tests/assets/sql/eplusout_openstudio.sql +0 -0
- ladybug-core-0.39.16/tests/assets/sql/eplusout_openstudio_error.sql +0 -0
- ladybug-core-0.39.16/tests/assets/sql/eplusout_timestep.sql +0 -0
- ladybug-core-0.39.16/tests/assets/stat/chicago.stat +0 -554
- ladybug-core-0.39.16/tests/assets/stat/santamonica.stat +0 -492
- ladybug-core-0.39.16/tests/assets/stat/tokyo.stat +0 -545
- ladybug-core-0.39.16/tests/assets/wea/chicago.wea +0 -8766
- ladybug-core-0.39.16/tests/assets/wea/chicago_filtered.wea +0 -4433
- ladybug-core-0.39.16/tests/assets/wea/san_francisco_10min.wea +0 -52566
- ladybug-core-0.39.16/tests/assets/wea/san_francisco_10min_daysim.wea +0 -52566
- ladybug-core-0.39.16/tests/assets/zip/test.zip +0 -0
- ladybug-core-0.39.16/tests/cli_main_test.py +0 -21
- ladybug-core-0.39.16/tests/cli_translate_test.py +0 -55
- ladybug-core-0.39.16/tests/color_test.py +0 -164
- ladybug-core-0.39.16/tests/compass_test.py +0 -109
- ladybug-core-0.39.16/tests/config_test.py +0 -8
- ladybug-core-0.39.16/tests/datacollection_test.py +0 -1516
- ladybug-core-0.39.16/tests/datacollectionimmutable_test.py +0 -249
- ladybug-core-0.39.16/tests/datatype_test.py +0 -609
- ladybug-core-0.39.16/tests/ddy_test.py +0 -188
- ladybug-core-0.39.16/tests/dt_test.py +0 -213
- ladybug-core-0.39.16/tests/epw_test.py +0 -402
- ladybug-core-0.39.16/tests/futil_test.py +0 -37
- ladybug-core-0.39.16/tests/graphic_test.py +0 -164
- ladybug-core-0.39.16/tests/hourlyplot_test.py +0 -230
- ladybug-core-0.39.16/tests/legend_test.py +0 -514
- ladybug-core-0.39.16/tests/location_test.py +0 -143
- ladybug-core-0.39.16/tests/monthlychart_test.py +0 -403
- ladybug-core-0.39.16/tests/psychchart_test.py +0 -145
- ladybug-core-0.39.16/tests/psychrometrics_test.py +0 -196
- ladybug-core-0.39.16/tests/rootfinding_test.py +0 -20
- ladybug-core-0.39.16/tests/skymodel_test.py +0 -83
- ladybug-core-0.39.16/tests/solarenvelope_test.py +0 -35
- ladybug-core-0.39.16/tests/sql_test.py +0 -319
- ladybug-core-0.39.16/tests/stat_test.py +0 -153
- ladybug-core-0.39.16/tests/sunpath_test.py +0 -324
- ladybug-core-0.39.16/tests/viewsphere_test.py +0 -79
- ladybug-core-0.39.16/tests/wea_test.py +0 -431
- ladybug-core-0.39.16/tests/windrose_test.py +0 -725
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/.coveragerc +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/CODE_OF_CONDUCT.md +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/CONTRIBUTING.md +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/LICENSE +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/__main__.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/cli/__init__.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/cli/_helper.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/cli/setconfig.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/climatezone.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/config.json +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datacollectionimmutable.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/__init__.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/angle.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/area.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/current.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/distance.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/energy.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/energyflux.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/energyintensity.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/fraction.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/mass.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/massflowrate.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/power.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/pressure.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/specificenergy.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/temperaturetime.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/time.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/voltage.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/volume.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/datatype/volumeflowrateintensity.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/ddy.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/dt.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/logutil.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug/solarenvelope.py +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug_core.egg-info/dependency_links.txt +0 -0
- {ladybug-core-0.39.16 → ladybug_core-0.44.30}/ladybug_core.egg-info/top_level.txt +0 -0
|
@@ -1,35 +1,50 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: ladybug-core
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.44.30
|
|
4
4
|
Summary: Python library to load, analyze and modify EnergyPlus Weather files (epw).
|
|
5
5
|
Home-page: https://github.com/ladybug-tools/ladybug
|
|
6
6
|
Author: Ladybug Tools
|
|
7
7
|
Author-email: info@ladybug.tools
|
|
8
8
|
License: AGPL-3.0
|
|
9
|
-
Platform: UNKNOWN
|
|
10
9
|
Classifier: Programming Language :: Python :: 2.7
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
12
10
|
Classifier: Programming Language :: Python :: 3.7
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
16
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
14
|
-
Classifier:
|
|
17
|
+
Classifier: Programming Language :: Python :: Implementation :: IronPython
|
|
15
18
|
Classifier: Operating System :: OS Independent
|
|
16
19
|
Description-Content-Type: text/markdown
|
|
17
20
|
License-File: LICENSE
|
|
21
|
+
Requires-Dist: ladybug-geometry==1.34.14
|
|
22
|
+
Requires-Dist: click==7.1.2; python_version < "3.8"
|
|
23
|
+
Requires-Dist: click==8.1.7; python_version >= "3.8"
|
|
24
|
+
Dynamic: author
|
|
25
|
+
Dynamic: author-email
|
|
26
|
+
Dynamic: classifier
|
|
27
|
+
Dynamic: description
|
|
28
|
+
Dynamic: description-content-type
|
|
29
|
+
Dynamic: home-page
|
|
30
|
+
Dynamic: license
|
|
31
|
+
Dynamic: license-file
|
|
32
|
+
Dynamic: requires-dist
|
|
33
|
+
Dynamic: summary
|
|
18
34
|
|
|
19
35
|
|
|
20
36
|

|
|
21
37
|
|
|
22
|
-
|
|
23
|
-
[](https://travis-ci.com/ladybug-tools/ladybug)
|
|
38
|
+
[](https://github.com/ladybug-tools/ladybug/actions)
|
|
24
39
|
[](https://coveralls.io/github/ladybug-tools/ladybug)
|
|
25
40
|
|
|
26
41
|
[](https://www.python.org/downloads/release/python-370/) [](https://www.python.org/downloads/release/python-270/) [](https://github.com/IronLanguages/ironpython2/releases/tag/ipy-2.7.8/)
|
|
27
42
|
|
|
28
43
|
# ladybug
|
|
29
44
|
|
|
30
|
-
Ladybug is a Python library to
|
|
45
|
+
Ladybug is a Python library to analyze, modify, and visualize EnergyPlus Weather files (epw). You can download epw files from [EPWMap](http://www.ladybug.tools/epwmap/).
|
|
31
46
|
|
|
32
|
-
This repository
|
|
47
|
+
This repository is the core library that is the base for the [Ladybug Grasshopper Plugin](https://www.ladybug.tools/#intro). For plugin-specific questions and comments refer to [ladybug-grasshopper](https://github.com/ladybug-tools/ladybug-grasshopper).
|
|
33
48
|
|
|
34
49
|
## Note
|
|
35
50
|
|
|
@@ -39,8 +54,12 @@ For the Legacy Ladybug Grasshopper Plugin see [this repository](https://github.c
|
|
|
39
54
|
|
|
40
55
|
## Installation
|
|
41
56
|
|
|
57
|
+
To install the library use:
|
|
58
|
+
|
|
42
59
|
`pip install ladybug-core`
|
|
43
60
|
|
|
61
|
+
To check if Honeybee command line interface is installed correctly use `ladybug viz` and you
|
|
62
|
+
should get a `viiiiiiiiiiiiizzzzzzzzz!` back in response!
|
|
44
63
|
|
|
45
64
|
## Usage
|
|
46
65
|
|
|
@@ -65,6 +84,33 @@ print('altitude: {}, azimuth: {}'.format(sun.altitude, sun.azimuth))
|
|
|
65
84
|
>>> altitude: 72.26, azimuth: 32.37
|
|
66
85
|
```
|
|
67
86
|
|
|
87
|
+
## Local Development
|
|
88
|
+
1. Clone this repo locally
|
|
89
|
+
```console
|
|
90
|
+
git clone git@github.com:ladybug-tools/ladybug.git
|
|
91
|
+
|
|
92
|
+
# or
|
|
93
|
+
|
|
94
|
+
git clone https://github.com/ladybug-tools/ladybug.git
|
|
95
|
+
```
|
|
96
|
+
2. Install dependencies:
|
|
97
|
+
```console
|
|
98
|
+
cd ladybug
|
|
99
|
+
pip install -r dev-requirements.txt
|
|
100
|
+
pip install -r requirements.txt
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
3. Run Tests:
|
|
104
|
+
```console
|
|
105
|
+
python -m pytest ./tests
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
4. Generate Documentation:
|
|
109
|
+
```console
|
|
110
|
+
sphinx-apidoc -f -e -d 4 -o ./docs ./ladybug
|
|
111
|
+
sphinx-build -b html ./docs ./docs/_build/docs
|
|
112
|
+
```
|
|
113
|
+
|
|
68
114
|
### Derivative Work
|
|
69
115
|
|
|
70
116
|
Ladybug is a derivative work of the following software projects:
|
|
@@ -73,5 +119,3 @@ Ladybug is a derivative work of the following software projects:
|
|
|
73
119
|
* [PsychroLib](https://github.com/psychrometrics/psychrolib) for psychrometric calculations. Available under MIT License.
|
|
74
120
|
|
|
75
121
|
Applicable copyright notices for these works can be found within the relevant .py files.
|
|
76
|
-
|
|
77
|
-
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|

|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
[](https://travis-ci.com/ladybug-tools/ladybug)
|
|
4
|
+
[](https://github.com/ladybug-tools/ladybug/actions)
|
|
6
5
|
[](https://coveralls.io/github/ladybug-tools/ladybug)
|
|
7
6
|
|
|
8
7
|
[](https://www.python.org/downloads/release/python-370/) [](https://www.python.org/downloads/release/python-270/) [](https://github.com/IronLanguages/ironpython2/releases/tag/ipy-2.7.8/)
|
|
9
8
|
|
|
10
9
|
# ladybug
|
|
11
10
|
|
|
12
|
-
Ladybug is a Python library to
|
|
11
|
+
Ladybug is a Python library to analyze, modify, and visualize EnergyPlus Weather files (epw). You can download epw files from [EPWMap](http://www.ladybug.tools/epwmap/).
|
|
13
12
|
|
|
14
|
-
This repository
|
|
13
|
+
This repository is the core library that is the base for the [Ladybug Grasshopper Plugin](https://www.ladybug.tools/#intro). For plugin-specific questions and comments refer to [ladybug-grasshopper](https://github.com/ladybug-tools/ladybug-grasshopper).
|
|
15
14
|
|
|
16
15
|
## Note
|
|
17
16
|
|
|
@@ -21,8 +20,12 @@ For the Legacy Ladybug Grasshopper Plugin see [this repository](https://github.c
|
|
|
21
20
|
|
|
22
21
|
## Installation
|
|
23
22
|
|
|
23
|
+
To install the library use:
|
|
24
|
+
|
|
24
25
|
`pip install ladybug-core`
|
|
25
26
|
|
|
27
|
+
To check if Honeybee command line interface is installed correctly use `ladybug viz` and you
|
|
28
|
+
should get a `viiiiiiiiiiiiizzzzzzzzz!` back in response!
|
|
26
29
|
|
|
27
30
|
## Usage
|
|
28
31
|
|
|
@@ -47,6 +50,33 @@ print('altitude: {}, azimuth: {}'.format(sun.altitude, sun.azimuth))
|
|
|
47
50
|
>>> altitude: 72.26, azimuth: 32.37
|
|
48
51
|
```
|
|
49
52
|
|
|
53
|
+
## Local Development
|
|
54
|
+
1. Clone this repo locally
|
|
55
|
+
```console
|
|
56
|
+
git clone git@github.com:ladybug-tools/ladybug.git
|
|
57
|
+
|
|
58
|
+
# or
|
|
59
|
+
|
|
60
|
+
git clone https://github.com/ladybug-tools/ladybug.git
|
|
61
|
+
```
|
|
62
|
+
2. Install dependencies:
|
|
63
|
+
```console
|
|
64
|
+
cd ladybug
|
|
65
|
+
pip install -r dev-requirements.txt
|
|
66
|
+
pip install -r requirements.txt
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
3. Run Tests:
|
|
70
|
+
```console
|
|
71
|
+
python -m pytest ./tests
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
4. Generate Documentation:
|
|
75
|
+
```console
|
|
76
|
+
sphinx-apidoc -f -e -d 4 -o ./docs ./ladybug
|
|
77
|
+
sphinx-build -b html ./docs ./docs/_build/docs
|
|
78
|
+
```
|
|
79
|
+
|
|
50
80
|
### Derivative Work
|
|
51
81
|
|
|
52
82
|
Ladybug is a derivative work of the following software projects:
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
pytest==8.3.2;python_version>='3.6'
|
|
2
|
+
Sphinx==8.0.2;python_version>='3.6'
|
|
3
|
+
sphinx-bootstrap-theme==0.8.1
|
|
4
|
+
sphinxcontrib-fulltoc==1.2.0
|
|
5
|
+
sphinxcontrib-websupport==2.0.0;python_version>='3.6'
|
|
6
|
+
sphinx-click==6.0.0;python_version>='3.6'
|
|
7
|
+
twine==6.1.0;python_version>='3.6'
|
|
8
|
+
wheel==0.45.1;python_version>='3.6'
|
|
9
|
+
setuptools==80.9.0;python_version>='3.6'
|
|
10
|
+
build==1.3.0;python_version>='3.6'
|
|
11
|
+
pytest==4.6.9;python_version<'3.0'
|
|
12
|
+
Sphinx==1.8.5;python_version<'3.0'
|
|
13
|
+
sphinxcontrib-websupport==1.1.2;python_version<'3.0'
|
|
14
|
+
sphinx-click==4.4.0;python_version<'3.0'
|
|
15
|
+
twine==1.13.0;python_version<'3.0'
|
|
16
|
+
wheel==0.38.1;python_version<'3.0'
|
|
17
|
+
setuptools==44.1.0;python_version<'3.0'
|
|
18
|
+
build==0.1.0;python_version<'3.0'
|
|
19
|
+
importlib-metadata==2.0.0;python_version<'3.0'
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
2020.0 WMM-2020 12/10/2019
|
|
2
|
+
1 0 -29404.5 0.0 6.7 0.0
|
|
3
|
+
1 1 -1450.7 4652.9 7.7 -25.1
|
|
4
|
+
2 0 -2500.0 0.0 -11.5 0.0
|
|
5
|
+
2 1 2982.0 -2991.6 -7.1 -30.2
|
|
6
|
+
2 2 1676.8 -734.8 -2.2 -23.9
|
|
7
|
+
3 0 1363.9 0.0 2.8 0.0
|
|
8
|
+
3 1 -2381.0 -82.2 -6.2 5.7
|
|
9
|
+
3 2 1236.2 241.8 3.4 -1.0
|
|
10
|
+
3 3 525.7 -542.9 -12.2 1.1
|
|
11
|
+
4 0 903.1 0.0 -1.1 0.0
|
|
12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|
+
11 9 -0.6 -3.0 -0.1 -0.1
|
|
77
|
+
11 10 0.2 -2.0 -0.1 0.0
|
|
78
|
+
11 11 3.1 -2.6 -0.1 -0.0
|
|
79
|
+
12 0 -2.0 0.0 0.0 0.0
|
|
80
|
+
12 1 -0.1 -1.2 -0.0 -0.0
|
|
81
|
+
12 2 0.5 0.5 -0.0 0.0
|
|
82
|
+
12 3 1.3 1.3 0.0 -0.1
|
|
83
|
+
12 4 -1.2 -1.8 -0.0 0.1
|
|
84
|
+
12 5 0.7 0.1 -0.0 -0.0
|
|
85
|
+
12 6 0.3 0.7 0.0 0.0
|
|
86
|
+
12 7 0.5 -0.1 -0.0 -0.0
|
|
87
|
+
12 8 -0.2 0.6 0.0 0.1
|
|
88
|
+
12 9 -0.5 0.2 -0.0 -0.0
|
|
89
|
+
12 10 0.1 -0.9 -0.0 -0.0
|
|
90
|
+
12 11 -1.1 -0.0 -0.0 0.0
|
|
91
|
+
12 12 -0.3 0.5 -0.1 -0.1
|
|
92
|
+
999999999999999999999999999999999999999999999999
|
|
93
|
+
999999999999999999999999999999999999999999999999
|
|
@@ -7,6 +7,7 @@ from ladybug.logutil import get_logger
|
|
|
7
7
|
|
|
8
8
|
import importlib
|
|
9
9
|
import pkgutil
|
|
10
|
+
import sys
|
|
10
11
|
|
|
11
12
|
# set up the logger
|
|
12
13
|
logger = get_logger(__name__)
|
|
@@ -20,6 +21,7 @@ for finder, name, ispkg in pkgutil.iter_modules():
|
|
|
20
21
|
try:
|
|
21
22
|
extensions[name] = importlib.import_module(name)
|
|
22
23
|
except Exception:
|
|
23
|
-
|
|
24
|
+
if (sys.version_info >= (3, 0)) and name != 'ladybug_vtk':
|
|
25
|
+
logger.exception('Failed to import {0}!'.format(name))
|
|
24
26
|
else:
|
|
25
27
|
logger.info('Successfully imported Ladybug plugin: {}'.format(name))
|