diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-17 04:59:56 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-17 04:59:56 +0000 |
commit | 9852fb594553035db90d26088e45cb112a6a9043 (patch) | |
tree | 1668820c6f08bdd7a5ca5941319808422d9b19b6 | |
parent | c2887ac53968939c200dcbf45abc26e94a8355de (diff) |
automatic import of python-ahfhalotools
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-ahfhalotools.spec | 222 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 224 insertions, 0 deletions
@@ -0,0 +1 @@ +/ahfhalotools-1.1.1.tar.gz diff --git a/python-ahfhalotools.spec b/python-ahfhalotools.spec new file mode 100644 index 0000000..988b93c --- /dev/null +++ b/python-ahfhalotools.spec @@ -0,0 +1,222 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ahfhalotools +Version: 1.1.1 +Release: 1 +Summary: A Python 3 library for the analysis of data produced by AMIGA's Halo Finder (AHF). +License: MIT License +URL: https://github.com/BenDavisonPetch/ahfhalotools +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/2a/7a/192bc5d20b23f54a6e8af2a5a86b36beca57548f2212c48d2bd09e935897/ahfhalotools-1.1.1.tar.gz +BuildArch: noarch + + +%description +# AHFHaloTools + +AHFHaloTools is a Python 3 library for the analysis of data produced by AMIGA's Halo Finder (AHF). + +## Features +* File parsing for `.AHF_halos`, `.AHF_profiles`, `.AHF_mtree(_idx)` +* File truncation +* Analysis of radial profile data +* Analysis of integral properties (halo data) +* Proper tracking of halos through time +* Merger detection +* Analysis of enclosed halos as indicator of host halo kinematics + +## Dependencies +* [NumPy](https://numpy.org/) +* [matplotlib](https://matplotlib.org/) +* [AstroPy](https://www.astropy.org/) + +## Installation +`pip install ahfhalotools` + +## Documentation +View HTML documentation __[here](https://htmlpreview.github.io/?https://raw.githubusercontent.com/BenDavisonPetch/ahfhalotools/main/docs/ahfhalotools/index.html)__ + +Documentation is also available in docstrings within the +code, which can be viewed using the built-in ``help`` function: + +```python + >>> from ahfhalotools.objects import Cluster + >>> help(Cluster) + Help on class Cluster in module ahfhalotools.objects: ... +``` + +The majority of analysis is enabled by the `ahfhalotools.objects.Cluster` object. + +## Examples +Example scripts are available in `/examples`. These scripts are provided without data, as the data files are large and can't go on GitHub. To run them on a local machine, data must be downloaded and truncated, and the paths to the data in the scripts should be updated to reflect the location of the files. +Alternatively the scripts could be deployed to popia/castor and run there, after updating the directory paths in the code. Data should still be truncated before running, otherwise the scripts will execute very slowly. + +## AHF documentation +For information on AMIGA's Halo Finder, including documentation and output file formats, you can visit their website [here](http://popia.ft.uam.es/AHF/Download.html). + +## Gallery + + + + + + + + + +%package -n python3-ahfhalotools +Summary: A Python 3 library for the analysis of data produced by AMIGA's Halo Finder (AHF). +Provides: python-ahfhalotools +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-ahfhalotools +# AHFHaloTools + +AHFHaloTools is a Python 3 library for the analysis of data produced by AMIGA's Halo Finder (AHF). + +## Features +* File parsing for `.AHF_halos`, `.AHF_profiles`, `.AHF_mtree(_idx)` +* File truncation +* Analysis of radial profile data +* Analysis of integral properties (halo data) +* Proper tracking of halos through time +* Merger detection +* Analysis of enclosed halos as indicator of host halo kinematics + +## Dependencies +* [NumPy](https://numpy.org/) +* [matplotlib](https://matplotlib.org/) +* [AstroPy](https://www.astropy.org/) + +## Installation +`pip install ahfhalotools` + +## Documentation +View HTML documentation __[here](https://htmlpreview.github.io/?https://raw.githubusercontent.com/BenDavisonPetch/ahfhalotools/main/docs/ahfhalotools/index.html)__ + +Documentation is also available in docstrings within the +code, which can be viewed using the built-in ``help`` function: + +```python + >>> from ahfhalotools.objects import Cluster + >>> help(Cluster) + Help on class Cluster in module ahfhalotools.objects: ... +``` + +The majority of analysis is enabled by the `ahfhalotools.objects.Cluster` object. + +## Examples +Example scripts are available in `/examples`. These scripts are provided without data, as the data files are large and can't go on GitHub. To run them on a local machine, data must be downloaded and truncated, and the paths to the data in the scripts should be updated to reflect the location of the files. +Alternatively the scripts could be deployed to popia/castor and run there, after updating the directory paths in the code. Data should still be truncated before running, otherwise the scripts will execute very slowly. + +## AHF documentation +For information on AMIGA's Halo Finder, including documentation and output file formats, you can visit their website [here](http://popia.ft.uam.es/AHF/Download.html). + +## Gallery + + + + + + + + + +%package help +Summary: Development documents and examples for ahfhalotools +Provides: python3-ahfhalotools-doc +%description help +# AHFHaloTools + +AHFHaloTools is a Python 3 library for the analysis of data produced by AMIGA's Halo Finder (AHF). + +## Features +* File parsing for `.AHF_halos`, `.AHF_profiles`, `.AHF_mtree(_idx)` +* File truncation +* Analysis of radial profile data +* Analysis of integral properties (halo data) +* Proper tracking of halos through time +* Merger detection +* Analysis of enclosed halos as indicator of host halo kinematics + +## Dependencies +* [NumPy](https://numpy.org/) +* [matplotlib](https://matplotlib.org/) +* [AstroPy](https://www.astropy.org/) + +## Installation +`pip install ahfhalotools` + +## Documentation +View HTML documentation __[here](https://htmlpreview.github.io/?https://raw.githubusercontent.com/BenDavisonPetch/ahfhalotools/main/docs/ahfhalotools/index.html)__ + +Documentation is also available in docstrings within the +code, which can be viewed using the built-in ``help`` function: + +```python + >>> from ahfhalotools.objects import Cluster + >>> help(Cluster) + Help on class Cluster in module ahfhalotools.objects: ... +``` + +The majority of analysis is enabled by the `ahfhalotools.objects.Cluster` object. + +## Examples +Example scripts are available in `/examples`. These scripts are provided without data, as the data files are large and can't go on GitHub. To run them on a local machine, data must be downloaded and truncated, and the paths to the data in the scripts should be updated to reflect the location of the files. +Alternatively the scripts could be deployed to popia/castor and run there, after updating the directory paths in the code. Data should still be truncated before running, otherwise the scripts will execute very slowly. + +## AHF documentation +For information on AMIGA's Halo Finder, including documentation and output file formats, you can visit their website [here](http://popia.ft.uam.es/AHF/Download.html). + +## Gallery + + + + + + + + + +%prep +%autosetup -n ahfhalotools-1.1.1 + +%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-ahfhalotools -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.1-1 +- Package Spec generated @@ -0,0 +1 @@ +a2da1215adcce27b25a3dbc55af23e6b ahfhalotools-1.1.1.tar.gz |