diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-11 22:06:05 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 22:06:05 +0000 |
commit | ef84dcc3538ccb9c726dfe5b3f22301cab83cc1d (patch) | |
tree | 5d3acc26a65ba0bacb43e35f9b750a14f8656cec | |
parent | 30d15201ca52f7222d5307c2aabe0364e0d454df (diff) |
automatic import of python-ladybug-comfort
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-ladybug-comfort.spec | 202 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 204 insertions, 0 deletions
@@ -0,0 +1 @@ +/ladybug-comfort-0.16.29.tar.gz diff --git a/python-ladybug-comfort.spec b/python-ladybug-comfort.spec new file mode 100644 index 0000000..3dba2db --- /dev/null +++ b/python-ladybug-comfort.spec @@ -0,0 +1,202 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ladybug-comfort +Version: 0.16.29 +Release: 1 +Summary: Ladybug comfort is a Python library that adds thermal comfort functionalities to Ladybug. +License: AGPL-3.0 +URL: https://github.com/ladybug-tools/ladybug-comfort +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a4/3c/85e1dff3b126b1be14013f041ac5fa2f6535972556411ec34bc664490221/ladybug-comfort-0.16.29.tar.gz +BuildArch: noarch + +Requires: python3-ladybug-core + +%description + + + +[](https://travis-ci.com/ladybug-tools/ladybug-comfort) +[](https://coveralls.io/github/ladybug-tools/ladybug-comfort) + +[](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/) + +# ladybug-comfort + +Ladybug-comfort is a Python library that adds thermal comfort functionalities to +[ladybug-core](https://github.com/ladybug-tools/ladybug/). + +## [API Documentation](https://www.ladybug.tools/ladybug-comfort/docs/) + +## Installation + +`pip install ladybug-comfort` + +## Usage + +```python +"""Get the percentage of time outdoor conditions are comfortable with/without sun + wind""" +from ladybug.epw import EPW +from ladybug_comfort.collection.utci import UTCI + +epw_file_path = './tests/epw/chicago.epw' +epw = EPW(epw_file_path) +utci_obj_exposed = UTCI.from_epw(epw, include_wind=True, include_sun=True) +utci_obj_protected = UTCI.from_epw(epw, include_wind=False, include_sun=False) + +print(utci_obj_exposed.percent_neutral) # comfortable percent of time with sun + wind +print(utci_obj_protected.percent_neutral) # comfortable percent of time without sun + wind +``` + +### derivative work + +Ladybug-comfort is a derivative work of the following software projects: + +* [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. + +Applicable copyright notices for these works can be found within the relevant .py files. + + +%package -n python3-ladybug-comfort +Summary: Ladybug comfort is a Python library that adds thermal comfort functionalities to Ladybug. +Provides: python-ladybug-comfort +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-ladybug-comfort + + + +[](https://travis-ci.com/ladybug-tools/ladybug-comfort) +[](https://coveralls.io/github/ladybug-tools/ladybug-comfort) + +[](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/) + +# ladybug-comfort + +Ladybug-comfort is a Python library that adds thermal comfort functionalities to +[ladybug-core](https://github.com/ladybug-tools/ladybug/). + +## [API Documentation](https://www.ladybug.tools/ladybug-comfort/docs/) + +## Installation + +`pip install ladybug-comfort` + +## Usage + +```python +"""Get the percentage of time outdoor conditions are comfortable with/without sun + wind""" +from ladybug.epw import EPW +from ladybug_comfort.collection.utci import UTCI + +epw_file_path = './tests/epw/chicago.epw' +epw = EPW(epw_file_path) +utci_obj_exposed = UTCI.from_epw(epw, include_wind=True, include_sun=True) +utci_obj_protected = UTCI.from_epw(epw, include_wind=False, include_sun=False) + +print(utci_obj_exposed.percent_neutral) # comfortable percent of time with sun + wind +print(utci_obj_protected.percent_neutral) # comfortable percent of time without sun + wind +``` + +### derivative work + +Ladybug-comfort is a derivative work of the following software projects: + +* [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. + +Applicable copyright notices for these works can be found within the relevant .py files. + + +%package help +Summary: Development documents and examples for ladybug-comfort +Provides: python3-ladybug-comfort-doc +%description help + + + +[](https://travis-ci.com/ladybug-tools/ladybug-comfort) +[](https://coveralls.io/github/ladybug-tools/ladybug-comfort) + +[](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/) + +# ladybug-comfort + +Ladybug-comfort is a Python library that adds thermal comfort functionalities to +[ladybug-core](https://github.com/ladybug-tools/ladybug/). + +## [API Documentation](https://www.ladybug.tools/ladybug-comfort/docs/) + +## Installation + +`pip install ladybug-comfort` + +## Usage + +```python +"""Get the percentage of time outdoor conditions are comfortable with/without sun + wind""" +from ladybug.epw import EPW +from ladybug_comfort.collection.utci import UTCI + +epw_file_path = './tests/epw/chicago.epw' +epw = EPW(epw_file_path) +utci_obj_exposed = UTCI.from_epw(epw, include_wind=True, include_sun=True) +utci_obj_protected = UTCI.from_epw(epw, include_wind=False, include_sun=False) + +print(utci_obj_exposed.percent_neutral) # comfortable percent of time with sun + wind +print(utci_obj_protected.percent_neutral) # comfortable percent of time without sun + wind +``` + +### derivative work + +Ladybug-comfort is a derivative work of the following software projects: + +* [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. + +Applicable copyright notices for these works can be found within the relevant .py files. + + +%prep +%autosetup -n ladybug-comfort-0.16.29 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-ladybug-comfort -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.16.29-1 +- Package Spec generated @@ -0,0 +1 @@ +9587ce3b1e6254f69e58a5f367d888cf ladybug-comfort-0.16.29.tar.gz |