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

merge master into psf_xim #367

Merged
merged 43 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
b0224c3
fix path
joezuntz Aug 29, 2023
fc07ba1
add tool to update pipelines for next ceci version
joezuntz Aug 29, 2023
3a853da
remove scripts, moved to ceci
joezuntz Sep 27, 2023
3c987a6
Save magnitudes in both source and lens catalogs
joezuntz Jul 17, 2024
caf97e1
Merge branch 'master' into save-mags-in-tomo-bin-cats
joezuntz Jul 23, 2024
0da2168
Merge branch 'master' into save-mags-in-tomo-bin-cats
joezuntz Aug 6, 2024
ff49161
update external lens selector
joezuntz Aug 6, 2024
907c8f3
RAIL tomography using binned catalogs
joezuntz Aug 8, 2024
4fde136
new rail versions
joezuntz Aug 8, 2024
4686ec7
merge master into branch
joezuntz Aug 8, 2024
6e395aa
Merge rail-tomography
joezuntz Aug 8, 2024
ff4e7b3
update pipeline aliases
joezuntz Aug 8, 2024
904fdbf
fix bands going correctly into cats
joezuntz Aug 9, 2024
1e42587
Add shear_prefix to shear cal config
joezuntz Aug 9, 2024
098f5d7
update summarizer config
joezuntz Aug 9, 2024
f52f08b
fix bands going correctly into cats
joezuntz Aug 9, 2024
8a22f0a
Add shear_prefix to shear cal config
joezuntz Aug 9, 2024
c5594a7
bump required data file version number
joezuntz Aug 9, 2024
0f43bf3
Merge branch 'save-mags-in-tomo-bin-cats' into rail-tomography
joezuntz Aug 9, 2024
182085d
switch to dev image
joezuntz Aug 9, 2024
d2222bc
Merge branch 'rail-tomography' into ceci2
joezuntz Aug 9, 2024
87b620b
another fix attempt
joezuntz Aug 9, 2024
8f6f5d0
Merge branch 'save-mags-in-tomo-bin-cats' into rail-tomography
joezuntz Aug 9, 2024
f0097c3
restore old yaml from ceci v1
joezuntz Aug 9, 2024
6af2422
correct versions of config
joezuntz Aug 9, 2024
3c5d74c
fix extra cols output and print some feedback
joezuntz Aug 9, 2024
4589253
Merge branch 'save-mags-in-tomo-bin-cats' into rail-tomography
joezuntz Aug 9, 2024
98da2ce
config fixes
joezuntz Aug 9, 2024
c82246e
require tables>3.8
joezuntz Aug 9, 2024
3507eb0
correct name to pytables
joezuntz Aug 9, 2024
4d10b22
try to loosen pandas version
joezuntz Aug 9, 2024
cf57f29
remove tables again
joezuntz Aug 9, 2024
5750d47
Merge pull request #362 from LSSTDESC/save-mags-in-tomo-bin-cats
joezuntz Aug 28, 2024
8f5b65c
Merge branch 'master' into rail-tomography
joezuntz Aug 28, 2024
f8706bf
Merge branch 'master' into ceci2
joezuntz Aug 28, 2024
f338b88
update source-only yml
joezuntz Aug 28, 2024
6b0aaf8
add cmake so lephare can build
joezuntz Aug 28, 2024
868daab
Try newest macos
joezuntz Aug 28, 2024
79aa3e5
Merge pull request #366 from LSSTDESC/rail-tomography
joezuntz Aug 29, 2024
78157f0
Merge branch 'master' into ceci2
joezuntz Aug 29, 2024
01552d7
update two rail package versions
joezuntz Aug 29, 2024
2fe79a3
Switch to v1.0 of image in CI
joezuntz Sep 3, 2024
3710fee
Merge pull request #365 from LSSTDESC/ceci2
joezuntz Sep 3, 2024
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
23 changes: 12 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ on:
- cron: '0 12 * * 1'

env:
EXAMPLE_DATA_FILE_VERSION: v2
EXAMPLE_DATA_FILE_VERSION: v3
# Setting this did not appear to work. Instead will need to
# find/replace when changing it.
# CONTAINER_IMAGE: ghcr.io/lsstdesc/txpipe:latest
# CONTAINER_IMAGE: ghcr.io/lsstdesc/txpipe-dev:latest

jobs:
# Run a download step first so that it is in
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: ghcr.io/lsstdesc/txpipe:latest
image: ghcr.io/lsstdesc/txpipe:v1.0

steps:
- name: Checkout repository
Expand All @@ -55,6 +55,7 @@ jobs:

- name: Test with pytest
run: |
ceci --version
pytest txpipe


Expand All @@ -64,7 +65,7 @@ jobs:
needs: Download_Data

container:
image: ghcr.io/lsstdesc/txpipe:latest
image: ghcr.io/lsstdesc/txpipe:v1.0

steps:
- name: Checkout repository
Expand Down Expand Up @@ -101,7 +102,7 @@ jobs:
needs: Download_Data

container:
image: ghcr.io/lsstdesc/txpipe:latest
image: ghcr.io/lsstdesc/txpipe:v1.0

steps:
- name: Checkout repository
Expand Down Expand Up @@ -148,7 +149,7 @@ jobs:
needs: Download_Data

container:
image: ghcr.io/lsstdesc/txpipe:latest
image: ghcr.io/lsstdesc/txpipe:v1.0

steps:
- name: Checkout repository
Expand Down Expand Up @@ -187,7 +188,7 @@ jobs:
needs: Download_Data

container:
image: ghcr.io/lsstdesc/txpipe:latest
image: ghcr.io/lsstdesc/txpipe:v1.0

steps:
- name: Checkout repository
Expand Down Expand Up @@ -226,7 +227,7 @@ jobs:
needs: Download_Data

container:
image: ghcr.io/lsstdesc/txpipe:latest
image: ghcr.io/lsstdesc/txpipe:v1.0

steps:
- name: Checkout repository
Expand Down Expand Up @@ -262,7 +263,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: ghcr.io/lsstdesc/txpipe:latest
image: ghcr.io/lsstdesc/txpipe:v1.0

steps:
- name: Checkout repository
Expand All @@ -283,11 +284,11 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-12]
os: [ubuntu-latest, macos-14]
include:
- os: ubuntu-latest
INSTALL_DEPS: sudo apt-get update && sudo apt-get -y install wget
- os: macos-12
- os: macos-14
INSTALL_DEPS: brew update-reset && brew install wget
steps:
- name: Checkout repository
Expand Down
3 changes: 2 additions & 1 deletion environment-nopip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ dependencies:
- astropy=6.1.*
- camb=1.5.*
- cosmosis=3.7.*
- cmake
- dask=2024.5.2
- dm-tree=0.1.8
- fitsio=1.2.*
Expand All @@ -19,7 +20,7 @@ dependencies:
- mpich>=4.*
- namaster=2.0.*
- numpy=1.26.*
- pandas=2.2.*
- pandas>=2.0
- psutil=5.9.*
- pyccl=3.0.*
- python=3.10.*
Expand Down
18 changes: 16 additions & 2 deletions environment-piponly.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- pip:
- ceci==1.17
- ceci==2.0.1
- git+https://github.com/jlvdb/hyperbolic@b88b107a291fa16c2006cf971ce610248d58e94c
- dask-mpi>=2022.4.0
- git+https://github.com/LSSTDESC/[email protected]
Expand All @@ -10,4 +10,18 @@ dependencies:
- jaxlib==0.4.23
- glass==2023.7
- git+https://github.com/beckermr/hybrideb@a3198ea5bc8175542b058e5c1289d910f05fd99d
- pz-rail[algos] @ git+https://github.com/LSSTDESC/[email protected]
# we must specifically request versions of rail algorithms
# to ensure that we get the ceci v2 versions
- pz-rail[algos] @ git+https://github.com/LSSTDESC/[email protected]
- pz-rail-astro-tools==1.0.4
- pz-rail-base==1.0.4
- pz-rail-bpz==1.0.1
- pz-rail-cmnn==1.0.1
- pz-rail-dsps==0.0.3 # no pypi release for more than 0.3
- pz-rail-flexzboost==1.0.1
- pz-rail-fsps==1.0.1
- pz-rail-gpz-v1==1.0.2
- pz-rail-lephare==0.2 # no release for ceci2 yet - cannot use
- pz-rail-pzflow==1.0.1
- pz-rail-sklearn==1.0.1
- pz-rail-som==1.0.1
63 changes: 22 additions & 41 deletions examples/2.2i/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ TXMetacalGCRInput:
cat_name: dc2_object_run2.2i_dr6c_with_metacal

TXExposureInfo:
dc2_name: '1.2p'
dc2_name: 1.2p

TXIngestStars:
cat_name: dc2_object_run2.2i_dr6c
Expand All @@ -15,12 +15,12 @@ TXCosmoDC2Mock:
cat_name: cosmoDC2_v1.1.4_image
visits_per_band: 16
extra_cols: redshift_true size_true shear_1 shear_2
flip_g2: True # to match metacal
flip_g2: true # to match metacal

FlexZPipe:
has_redshift: False
has_redshift: false
nz: 300
metacal_fluxes: False
metacal_fluxes: false
chunk_rows: 100


Expand All @@ -32,36 +32,17 @@ PZPDFMLZ:

TXPhotozPlotLens:
name: TXPhotozPlotLens
aliases:
photoz_stack: lens_photoz_stack
nz_plot: source_nz

TXPhotozPlotSource:
name: TXPhotozPlotSource
aliases:
photoz_stack: shear_photoz_stack
nz_plot: lens_nz


TXTruePhotozStackSource:
name: TXTruePhotozStackSource
aliases:
tomography_catalog: shear_tomography_catalog
catalog: shear_catalog
weights_catalog: shear_catalog
photoz_stack: shear_photoz_stack
weight_col: metacal/weight
redshift_group: metacal
zmax: 2.0
nz: 201

TXTruePhotozStackLens:
name: TXTruePhotozStackLens
aliases:
tomography_catalog: lens_tomography_catalog
catalog: photometry_catalog
weights_catalog: dummy
photoz_stack: lens_photoz_stack
redshift_group: photometry
zmax: 2.0
nz: 201
Expand All @@ -73,7 +54,7 @@ TXSourceTrueNumberDensity:
chunk_rows: 100000

TXSourceSelector:
input_pz: False
input_pz: false
bands: riz #used for selection
T_cut: 0.5
s2n_cut: 10.0
Expand All @@ -98,36 +79,36 @@ TXRandomCat:
TXTwoPoint:
binslop: 0.1
delta_gamma: 0.02
do_pos_pos: True
do_shear_shear: True
do_shear_pos: True
flip_g2: False # False now seems to be right for metacal
do_pos_pos: true
do_shear_shear: true
do_shear_pos: true
flip_g2: false # False now seems to be right for metacal
min_sep: 2.5
max_sep: 250
nbins: 20
verbose: 0
subtract_mean_shear: True
subtract_mean_shear: true

TXSourceMaps:
pixelization: healpix
nside: 1024
sparse: True
sparse: true

TXLensMaps:
pixelization: healpix
nside: 1024
sparse: True
sparse: true


TXAuxiliarySourceMaps:
chunk_rows: 100000
sparse: True
psf_prefix: psf_
chunk_rows: 100000
sparse: true
psf_prefix: psf_

TXAuxiliaryLensMaps:
chunk_rows: 100000
sparse: True
bright_obj_threshold: 22.0
chunk_rows: 100000
sparse: true
bright_obj_threshold: 22.0

TXSimpleMask:
depth_cut: 23.0
Expand All @@ -140,8 +121,8 @@ TXLensDiagnosticPlots: {}

TXTwoPointFourier:
chunk_rows: 100000
flip_g2: True
flip_g1: True
flip_g2: true
flip_g1: true
bandwidth: 200
apodization_size: 0.0
cache_dir: ./cache
Expand All @@ -156,7 +137,7 @@ TXLensingNoiseMaps:
TXMeanLensSelector:
# Mag cuts
chunk_rows: 100000
lens_zbin_edges: [0.0,0.2,0.4]
lens_zbin_edges: [0.0, 0.2, 0.4]
cperp_cut: 0.2
r_cpar_cut: 13.5
r_lo_cut: 16.0
Expand All @@ -168,7 +149,7 @@ TXMeanLensSelector:
TXTruthLensSelector:
# Mag cuts
chunk_rows: 100000
lens_zbin_edges: [0.0,0.2,0.4]
lens_zbin_edges: [0.0, 0.2, 0.4]
cperp_cut: 0.2
r_cpar_cut: 13.5
r_lo_cut: 16.0
Expand Down
Loading
Loading