-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added support for galsim_hub * Moved galaxy sampling to render_minibatch * Moved generation to whole batch and added possibility to change parameters * refactor to avoid repeating code * Better code for handling the extra images * Added documentation for galsim_hub and new sampling function * Added a test for galsim_hub * Completed documentation * Remove merge comment * Added tutorial notebook * Fixed test and moved import * update lock * added tensorflow and galsim_hub * updates * just updating but still the problem is not resolved * using python 3.7 * added tensorflow and galsim_hub as optional dependencies * try install galsim_hub with pip * small check * eigency dependency? * install eigency first * install galsim first * try conda * try again * some updatest * a new try :) * error in action * weird errro * another try * now i get it * the doc for conda action is misleading * doesn't activate environment * old conda * give up and try source activate * need to specify bash * works???! * lint should work now * misconfiguration * need lint * update docs * Add missing psf convolution * no more requirements.txt * galsim hub no multiprocessing keyword * update poetry Co-authored-by: Thomas Sainrat <[email protected]> Co-authored-by: Ismael Mendoza <[email protected]>
- Loading branch information
1 parent
46d660f
commit ab87076
Showing
14 changed files
with
1,243 additions
and
1,178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
python-version: [3.7] | ||
|
||
steps: | ||
- name: Checkout github repo | ||
|
@@ -23,31 +23,29 @@ jobs: | |
lfs: true | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
- name: Install miniconda and environment | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniconda-version: "latest" | ||
activate-environment: btk_py37 | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Poetry | ||
- name: Install conda dependencies | ||
shell: bash -l {0} # setup and activate conda environment. | ||
run: | | ||
pip install --upgrade pip | ||
pip install poetry | ||
- name: Poetry cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/pypoetry | ||
key: ${{ runner.os }}-${{ hashFiles('./poetry.lock') }} | ||
|
||
# galsim needs this. | ||
- name: Instal FFTW + Eigen | ||
run: | | ||
sudo apt-get install libfftw3-dev libeigen3-dev | ||
conda install fftw | ||
conda install -c conda-forge eigen | ||
conda install -c conda-forge galsim | ||
conda install tensorflow==1.15 | ||
conda install -c conda-forge poetry | ||
- name: Install poetry dependencies | ||
shell: bash -l {0} | ||
run: | | ||
poetry install | ||
poetry install --extras "galsim-hub" | ||
- name: Run pre-commit checks | ||
uses: pre-commit/[email protected] | ||
shell: bash -l {0} | ||
run: | | ||
pre-commit install | ||
pre-commit run --all-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.