Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update package versions #539

Merged
merged 17 commits into from
Mar 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
2f60e16
updated doc-tests
sfarrens Jan 13, 2022
77cdf39
Merge branch 'develop' of https://github.com/CosmoStat/shapepipe into…
sfarrens Jan 26, 2022
2485070
Merge branch 'develop' of https://github.com/CosmoStat/shapepipe into…
sfarrens Jan 26, 2022
3158394
Merge branch 'develop' of https://github.com/CosmoStat/shapepipe into…
sfarrens Jan 27, 2022
bbb60f6
Merge branch 'develop' of https://github.com/CosmoStat/shapepipe into…
sfarrens Jan 31, 2022
cf1c186
Merge branch 'develop' of https://github.com/CosmoStat/shapepipe into…
sfarrens Jan 31, 2022
f15da14
Merge branch 'develop' of https://github.com/CosmoStat/shapepipe into…
sfarrens Feb 3, 2022
5e56ce3
Merge branch 'develop' of github.com:CosmoStat/shapepipe into develop
sfarrens Feb 11, 2022
0d1d6f5
Merge branch 'develop' of github.com:CosmoStat/shapepipe into develop
sfarrens Mar 1, 2022
ff0f64c
Merge branch 'develop' of github.com:CosmoStat/shapepipe into develop
sfarrens Mar 2, 2022
abd9cb9
Merge branch 'develop' of github.com:CosmoStat/shapepipe into develop
sfarrens Mar 4, 2022
70260f7
Merge branch 'develop' of github.com:CosmoStat/shapepipe into develop
sfarrens Mar 4, 2022
eb7089a
Merge branch 'develop' of github.com:CosmoStat/shapepipe into develop
sfarrens Mar 4, 2022
f976d4a
updated package versions
sfarrens Mar 8, 2022
a635a70
pin documentation packages
sfarrens Mar 9, 2022
08c0fa1
Merge branch 'develop' of github.com:CosmoStat/shapepipe into package…
sfarrens Mar 24, 2022
64cd069
updated ShapePipe version and cleaned up
sfarrens Mar 24, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
ShapePipe
=========

|CI| |CD| |python38|
|CI| |CD| |python39| |release|

.. |CI| image:: https://github.com/CosmoStat/shapepipe/workflows/CI/badge.svg
:target: https://github.com/CosmoStat/shapepipe/actions?query=workflow%3ACI

.. |CD| image:: https://github.com/CosmoStat/shapepipe/actions/workflows/pages/pages-build-deployment/badge.svg
:target: https://github.com/CosmoStat/shapepipe/actions/workflows/pages/pages-build-deployment

.. |python38| image:: https://img.shields.io/badge/python-3.8-green.svg
:target: https://www.python.org/
.. |python39| image:: https://img.shields.io/badge/python-3.9-green.svg
:target: https://www.python.org/

:Version: 0.0.4
.. |release| image:: https://img.shields.io/github/v/release/CosmoStat/shapepipe
:target: https://github.com/CosmoStat/shapepipe/releases/latest

ShapePipe is a galaxy shape measurement pipeline developed within the
CosmoStat lab at CEA Paris-Saclay.
Expand Down
10 changes: 5 additions & 5 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
myst-parser>=0.16.1
numpydoc>=1.1.0
sphinx>=4.3.1
sphinxcontrib-bibtex>=2.4.1
sphinx-book-theme>=0.1.10
myst-parser==0.17.0
numpydoc==1.2
sphinx==4.4.0
sphinxcontrib-bibtex==2.4.1
sphinx-book-theme==0.2.0
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
author = 'CosmoStat'

# The short X.Y version
version = '0.0'
version = '1.0'
# The full version, including alpha/beta/rc tags
release = '0.0.4'
release = '1.0.0'


# -- General configuration ---------------------------------------------------
Expand Down
32 changes: 16 additions & 16 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@ name: shapepipe
channels:
- conda-forge
dependencies:
- python=3.8
- pip>=21
- astropy==4.1
- python=3.9
- pip>=21.2.4
- astropy==5.0
- automake==1.16.2
- autoconf==2.69
- cmake==3.19.6
- galsim==2.2.5
- joblib==1.0.1
- joblib==1.1.0
- libtool==2.4.6
- matplotlib==3.3.4
- matplotlib==3.5.1
- numba==0.54.1
- pandas==1.4.1
- pip:
- mccd==1.2.1
- modopt==1.5.1
- numba==0.53.1
- pandas==1.2.4
- PyQt5==5.15.4
- pyqtgraph==0.11.1
- python-pysap==0.0.5
- reproject==0.7.1
- mccd==1.2.3
- modopt==1.6.0
- PyQt5==5.15.6
- pyqtgraph==0.12.4
- python-pysap==0.0.6
- reproject==0.8
- sip_tpv==1.1
- sf_tools==2.0.4
- sqlitedict==1.7.0
- sqlitedict==2.0.0
- termcolor==1.1.0
- tqdm==4.60.0
- treecorr==4.1.7
- tqdm==4.63.0
- treecorr==4.2.6
- git+https://github.com/aguinot/ngmix@stable_version
- git+https://github.com/tobias-liaudat/Stile@v0.1
31 changes: 19 additions & 12 deletions install_shapepipe
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,21 @@ export LC_CTYPE=en_US.utf8
#
##############################################################################

version="1.5"
version="1.6"
last_update="08/03/22"

##############################################################################
# EXTERNAL PACKAGES AND SCRIPTS
##############################################################################

# External packages

# Conda package versions
fftw_ver="3.3.10"
libpng_ver="1.6.37"
mpi4py_ver="3.1.3"
openblas_ver="0.3.18"

# SExtractor Package
sex_url="https://github.com/astromatic/sextractor/archive/2.25.0.tar.gz"
sex_tar="2.25.0.tar.gz"
Expand Down Expand Up @@ -47,9 +54,9 @@ cdsclient_bin="findgsc2.2"
cdsclient_version=FALSE

# mpi4py Package
mpi_url="https://github.com/mpi4py/mpi4py/archive/3.0.3.tar.gz"
mpi_tar="3.0.3.tar.gz"
mpi_dir="mpi4py-3.0.3"
mpi_url="https://github.com/mpi4py/mpi4py/archive/${mpi4py_ver}.tar.gz"
mpi_tar="${mpi4py_ver}.tar.gz"
mpi_dir="mpi4py-${mpi4py_ver}"
mpi_bin="mpiexec"
mpi_version=TRUE

Expand Down Expand Up @@ -251,7 +258,7 @@ check_binary2() {

# Check if a python site-package is installed correctly in the conda environment
check_site_pkg() {
if compgen -G "$CONDA_PREFIX/lib/python3.8/site-packages/$1*" > /dev/null
if compgen -G "$CONDA_PREFIX/lib/python3.*/site-packages/$1*" > /dev/null
then
echo -ne " - $1:\t \xe2\x9c\x85\n"
else
Expand All @@ -276,7 +283,7 @@ start() {
echo ''
echo 'Author: Samuel Farrens'
echo 'Version:' $version
echo 'Last Update: 26/01/2022'
echo 'Last Update:' $last_update
echo $line
echo ''
}
Expand Down Expand Up @@ -698,7 +705,7 @@ then
report_progress 'MPI'
if [ -z "$MPI_ROOT" ]
then
conda install -n $ENV_NAME -c conda-forge "mpi4py>=3.0.1" -y
conda install -n $ENV_NAME -c conda-forge "mpi4py==${mpi4py_ver}" -y
else
download_package $mpi_url $mpi_tar
build_mpi $mpi_dir
Expand All @@ -713,13 +720,13 @@ fi
if [ "$INSTALL_SEX" == TRUE ] && check_binary $sex_bin
then
report_progress 'SExtractor'
conda install -n $ENV_NAME -c conda-forge fftw -y
conda install -n $ENV_NAME -c conda-forge "fftw==${fftw_ver}" -y
download_package $sex_url $sex_tar
if [ "$use_atlas" == TRUE ]
then
build_sex_atlas $sex_dir
else
conda install -n $ENV_NAME -c conda-forge openblas -y
conda install -n $ENV_NAME -c conda-forge "openblas==${openblas_ver}" -y
build_sex_blas $sex_dir
fi
fi
Expand All @@ -728,14 +735,14 @@ fi
if [ "$INSTALL_PSFEX" == TRUE ] && check_binary $psfex_bin
then
report_progress 'PSFEx'
conda install libpng -y
conda install -n $ENV_NAME -c conda-forge fftw -y
conda install "libpng==${libpng_ver}" -y
conda install -n $ENV_NAME -c conda-forge "fftw==${fftw_ver}" -y
download_package $psfex_url $psfex_tar
if [ "$use_atlas" == TRUE ]
then
build_psfex_atlas $psfex_dir
else
conda install -n $ENV_NAME -c conda-forge openblas -y
conda install -n $ENV_NAME -c conda-forge "openblas==${openblas_ver}" -y
build_psfex_blas $psfex_dir
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion shapepipe/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


# Package Info
version_info = (0, 0, 4)
version_info = (1, 0, 0)
__version__ = '.'.join(str(c) for c in version_info)
__name__ = 'shapepipe'
__author__ = 'Samuel Farrens'
Expand Down
4 changes: 2 additions & 2 deletions shapepipe/utilities/galaxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ def sigma_to_fwhm(sigma, pixel_scale=1.0):
-----
To compute the FWHMh for a 1D Gaussian N(x), solve the equation

..math::
.. math::

N(x) = (\sigma \sqrt{2\pi})^{-1} \exp[x^2/2\sigma^2] = \frac 1 2 N(x)


for :math:`x`. The FWHM is :math:`x + (-x) = 2x`. The solution is

..math::
.. math::

\textrm{FWHM} = 2 \sqrt(2 \ln 2) \sigma \approx 2.355 \sigma

Expand Down