summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-ahfhalotools.spec222
-rw-r--r--sources1
3 files changed, 224 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..cc2ba1a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
+![Velocity Distribution of Enclosed Halo as a Function of Redshift](https://raw.githubusercontent.com/BenDavisonPetch/ahfhalotools/main/gallery/enclosedHalovDist.png)
+![Velocity Distribution of Enclosed Halo as a Function of Redshift with Skew Plots](https://raw.githubusercontent.com/BenDavisonPetch/ahfhalotools/main/gallery/enclosedHalovDistwSkewPlots.png)
+![Local Density times Radius Squared as a function of z and r](https://raw.githubusercontent.com/BenDavisonPetch/ahfhalotools/main/gallery/localDensityZR.png)
+![Local Density times Radius Squared as a function of z and r for select redshifts](https://raw.githubusercontent.com/BenDavisonPetch/ahfhalotools/main/gallery/selectzs.png)
+![Local Gas Density as a function of Radius, with quartiles of dynamical state highlighted](https://raw.githubusercontent.com/BenDavisonPetch/ahfhalotools/main/clusterCompDensvR/quartile%20selection/gasDensMBP.png)
+
+
+
+
+%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
+![Velocity Distribution of Enclosed Halo as a Function of Redshift](https://raw.githubusercontent.com/BenDavisonPetch/ahfhalotools/main/gallery/enclosedHalovDist.png)
+![Velocity Distribution of Enclosed Halo as a Function of Redshift with Skew Plots](https://raw.githubusercontent.com/BenDavisonPetch/ahfhalotools/main/gallery/enclosedHalovDistwSkewPlots.png)
+![Local Density times Radius Squared as a function of z and r](https://raw.githubusercontent.com/BenDavisonPetch/ahfhalotools/main/gallery/localDensityZR.png)
+![Local Density times Radius Squared as a function of z and r for select redshifts](https://raw.githubusercontent.com/BenDavisonPetch/ahfhalotools/main/gallery/selectzs.png)
+![Local Gas Density as a function of Radius, with quartiles of dynamical state highlighted](https://raw.githubusercontent.com/BenDavisonPetch/ahfhalotools/main/clusterCompDensvR/quartile%20selection/gasDensMBP.png)
+
+
+
+
+%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
+![Velocity Distribution of Enclosed Halo as a Function of Redshift](https://raw.githubusercontent.com/BenDavisonPetch/ahfhalotools/main/gallery/enclosedHalovDist.png)
+![Velocity Distribution of Enclosed Halo as a Function of Redshift with Skew Plots](https://raw.githubusercontent.com/BenDavisonPetch/ahfhalotools/main/gallery/enclosedHalovDistwSkewPlots.png)
+![Local Density times Radius Squared as a function of z and r](https://raw.githubusercontent.com/BenDavisonPetch/ahfhalotools/main/gallery/localDensityZR.png)
+![Local Density times Radius Squared as a function of z and r for select redshifts](https://raw.githubusercontent.com/BenDavisonPetch/ahfhalotools/main/gallery/selectzs.png)
+![Local Gas Density as a function of Radius, with quartiles of dynamical state highlighted](https://raw.githubusercontent.com/BenDavisonPetch/ahfhalotools/main/clusterCompDensvR/quartile%20selection/gasDensMBP.png)
+
+
+
+
+%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
diff --git a/sources b/sources
new file mode 100644
index 0000000..092da86
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+a2da1215adcce27b25a3dbc55af23e6b ahfhalotools-1.1.1.tar.gz