diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-citlalicue.spec | 207 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 209 insertions, 0 deletions
@@ -0,0 +1 @@ +/citlalicue-0.7.0.tar.gz diff --git a/python-citlalicue.spec b/python-citlalicue.spec new file mode 100644 index 0000000..98ae159 --- /dev/null +++ b/python-citlalicue.spec @@ -0,0 +1,207 @@ +%global _empty_manifest_terminate_build 0 +Name: python-citlalicue +Version: 0.7.0 +Release: 1 +Summary: Create stellar light curves! +License: GNU General Public License v3 (GPLv3) +URL: https://github.com/oscaribv/citlalicue +Source0: https://mirrors.aliyun.com/pypi/web/packages/95/0e/95ffba4cef4480be651adbd5d0720d307c38736dbfd530a3249dfad44cac/citlalicue-0.7.0.tar.gz +BuildArch: noarch + +Requires: python3-numpy +Requires: python3-matplotlib +Requires: python3-scipy +Requires: python3-pytransit +Requires: python3-george +Requires: python3-emcee + +%description +# Citlalicue + +### Oscar Barragán (Sept 2020) + +*_Citlalicue_* is the name of the Aztec Goddess who created the stars. +This code allows you to mimic Citlalicue powers to create and manipulate stellar light curves. + +The actual version of the code allows you to create synthetic stellar light curves (transits, stellar variability and white noise) +and detrend light curves using Gaussian Processes (GPs). + +##### Dependencies: + +* Numpy +* Matplotlib +* Scipy +* [PyTransit](https://github.com/hpparvi/PyTransit) +* [george](https://github.com/dfm/george) + + +##### Try it now! + +Install it by typing + +``` +pip install citlalicue +``` + +### Simulate light curves + +Transits are implemented using [PyTransit](https://github.com/hpparvi/PyTransit), +while the stellar variability is added from samples of a Quasi-Periodic Kernel with covariance given by + +<a href="https://www.codecogs.com/eqnedit.php?latex=\gamma(t_i,t_j)&space;=&space;A&space;\exp&space;\left[&space;-&space;\frac{\sin^2[\pi(t_i&space;-&space;t_j)/P_{\rm&space;GP}]}{2&space;\lambda_{\rm&space;P}^2}&space;-&space;\frac{(t_i&space;-&space;t_j)^2}{2\lambda_{\rm&space;e}^2}&space;\right]" target="_blank"><img src="https://latex.codecogs.com/gif.latex?\gamma(t_i,t_j)&space;=&space;A&space;\exp&space;\left[&space;-&space;\frac{\sin^2[\pi(t_i&space;-&space;t_j)/P_{\rm&space;GP}]}{2&space;\lambda_{\rm&space;P}^2}&space;-&space;\frac{(t_i&space;-&space;t_j)^2}{2\lambda_{\rm&space;e}^2}&space;\right]" title="\gamma(t_i,t_j) = A \exp \left[ - \frac{\sin^2[\pi(t_i - t_j)/P_{\rm GP}]}{2 \lambda_{\rm P}^2} - \frac{(t_i - t_j)^2}{2\lambda_{\rm e}^2} \right]" /></a> + +Check the example of how to use Citlalicue to create light curves in the link +[example_light_curves.ipynb](https://github.com/oscaribv/citlalicue/blob/master/example_light_curves.ipynb). + +### Detrend light curves + +Check the example of how to use Citlalicue to detrend light curves in the link +[example_detrending.ipynb](https://github.com/oscaribv/citlalicue/blob/master/example_detrending.ipynb). + + + + +%package -n python3-citlalicue +Summary: Create stellar light curves! +Provides: python-citlalicue +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-citlalicue +# Citlalicue + +### Oscar Barragán (Sept 2020) + +*_Citlalicue_* is the name of the Aztec Goddess who created the stars. +This code allows you to mimic Citlalicue powers to create and manipulate stellar light curves. + +The actual version of the code allows you to create synthetic stellar light curves (transits, stellar variability and white noise) +and detrend light curves using Gaussian Processes (GPs). + +##### Dependencies: + +* Numpy +* Matplotlib +* Scipy +* [PyTransit](https://github.com/hpparvi/PyTransit) +* [george](https://github.com/dfm/george) + + +##### Try it now! + +Install it by typing + +``` +pip install citlalicue +``` + +### Simulate light curves + +Transits are implemented using [PyTransit](https://github.com/hpparvi/PyTransit), +while the stellar variability is added from samples of a Quasi-Periodic Kernel with covariance given by + +<a href="https://www.codecogs.com/eqnedit.php?latex=\gamma(t_i,t_j)&space;=&space;A&space;\exp&space;\left[&space;-&space;\frac{\sin^2[\pi(t_i&space;-&space;t_j)/P_{\rm&space;GP}]}{2&space;\lambda_{\rm&space;P}^2}&space;-&space;\frac{(t_i&space;-&space;t_j)^2}{2\lambda_{\rm&space;e}^2}&space;\right]" target="_blank"><img src="https://latex.codecogs.com/gif.latex?\gamma(t_i,t_j)&space;=&space;A&space;\exp&space;\left[&space;-&space;\frac{\sin^2[\pi(t_i&space;-&space;t_j)/P_{\rm&space;GP}]}{2&space;\lambda_{\rm&space;P}^2}&space;-&space;\frac{(t_i&space;-&space;t_j)^2}{2\lambda_{\rm&space;e}^2}&space;\right]" title="\gamma(t_i,t_j) = A \exp \left[ - \frac{\sin^2[\pi(t_i - t_j)/P_{\rm GP}]}{2 \lambda_{\rm P}^2} - \frac{(t_i - t_j)^2}{2\lambda_{\rm e}^2} \right]" /></a> + +Check the example of how to use Citlalicue to create light curves in the link +[example_light_curves.ipynb](https://github.com/oscaribv/citlalicue/blob/master/example_light_curves.ipynb). + +### Detrend light curves + +Check the example of how to use Citlalicue to detrend light curves in the link +[example_detrending.ipynb](https://github.com/oscaribv/citlalicue/blob/master/example_detrending.ipynb). + + + + +%package help +Summary: Development documents and examples for citlalicue +Provides: python3-citlalicue-doc +%description help +# Citlalicue + +### Oscar Barragán (Sept 2020) + +*_Citlalicue_* is the name of the Aztec Goddess who created the stars. +This code allows you to mimic Citlalicue powers to create and manipulate stellar light curves. + +The actual version of the code allows you to create synthetic stellar light curves (transits, stellar variability and white noise) +and detrend light curves using Gaussian Processes (GPs). + +##### Dependencies: + +* Numpy +* Matplotlib +* Scipy +* [PyTransit](https://github.com/hpparvi/PyTransit) +* [george](https://github.com/dfm/george) + + +##### Try it now! + +Install it by typing + +``` +pip install citlalicue +``` + +### Simulate light curves + +Transits are implemented using [PyTransit](https://github.com/hpparvi/PyTransit), +while the stellar variability is added from samples of a Quasi-Periodic Kernel with covariance given by + +<a href="https://www.codecogs.com/eqnedit.php?latex=\gamma(t_i,t_j)&space;=&space;A&space;\exp&space;\left[&space;-&space;\frac{\sin^2[\pi(t_i&space;-&space;t_j)/P_{\rm&space;GP}]}{2&space;\lambda_{\rm&space;P}^2}&space;-&space;\frac{(t_i&space;-&space;t_j)^2}{2\lambda_{\rm&space;e}^2}&space;\right]" target="_blank"><img src="https://latex.codecogs.com/gif.latex?\gamma(t_i,t_j)&space;=&space;A&space;\exp&space;\left[&space;-&space;\frac{\sin^2[\pi(t_i&space;-&space;t_j)/P_{\rm&space;GP}]}{2&space;\lambda_{\rm&space;P}^2}&space;-&space;\frac{(t_i&space;-&space;t_j)^2}{2\lambda_{\rm&space;e}^2}&space;\right]" title="\gamma(t_i,t_j) = A \exp \left[ - \frac{\sin^2[\pi(t_i - t_j)/P_{\rm GP}]}{2 \lambda_{\rm P}^2} - \frac{(t_i - t_j)^2}{2\lambda_{\rm e}^2} \right]" /></a> + +Check the example of how to use Citlalicue to create light curves in the link +[example_light_curves.ipynb](https://github.com/oscaribv/citlalicue/blob/master/example_light_curves.ipynb). + +### Detrend light curves + +Check the example of how to use Citlalicue to detrend light curves in the link +[example_detrending.ipynb](https://github.com/oscaribv/citlalicue/blob/master/example_detrending.ipynb). + + + + +%prep +%autosetup -n citlalicue-0.7.0 + +%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-citlalicue -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.7.0-1 +- Package Spec generated @@ -0,0 +1 @@ +0625df41524baf99f0e07395f71faafa citlalicue-0.7.0.tar.gz |