Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
9991956
testing/simulate: added Pujol denoising estimator of shear bias
May 17, 2026
bb41df9
Merge remote-tracking branch 'origin/ngmix_v2.0' into ngmix_v2.0
Jun 1, 2026
9485042
Merge remote-tracking branch 'upstream/develop' into ngmix_v2.0
Jun 1, 2026
46243db
Running SP v2.0 on image simulations, up to -j 8
Jun 1, 2026
b8dca73
SP v2.0 running on image simulations including ngmix
Jun 2, 2026
f7fffdc
Running on im sims incl final cat
Jun 5, 2026
374ab51
ÃÃÂadded datetime to Mh run
Jun 9, 2026
0731062
Âinit v2.0: cd in new subdirÂ
Jun 9, 2026
7567970
ÂÂimage sims run updates
Jun 9, 2026
ec8047e
Âsmall changes
Jun 9, 2026
1ae8a75
output mean e to ngmix log
Jun 9, 2026
aa25cc2
doc
Jun 10, 2026
1224a7f
ÂÂrun script : added --retry
Jun 10, 2026
c872104
im_sims docker deployment
Jun 10, 2026
dfb99a4
added .py to executables
Jun 10, 2026
76f81b6
fixe pyproject bug
Jun 10, 2026
797eeff
pyproject moved back to exe scripts without extension
Jun 10, 2026
d7af0c9
running create_final_cat.py on image_sims
Jun 16, 2026
c777efa
Pipeline running on image sims
Jun 24, 2026
c4b3897
config files: change batch size to 1 (default)
Jun 26, 2026
995eb6a
snakemake setup for image simulations
Jun 26, 2026
d9aa115
Merge remote-tracking branch 'upstream/develop' into im_sims
Jun 26, 2026
2a6bb94
fixed snakefile
Jun 27, 2026
4f7635d
test for zero size FITS output files
Jun 28, 2026
16cb304
zero-size output fixes
Jun 28, 2026
1f7f968
Merge remote-tracking branch 'origin/ngmix_v2.0' into im_sims-rebase-…
cailmdaley Jul 3, 2026
28084ca
retarget(im_sims): revert incidental stale-base edits to shared modules
cailmdaley Jul 3, 2026
b0804ce
retarget(im_sims): slim to ShapePipe module enablement; orchestration…
cailmdaley Jul 3, 2026
6fbc14b
Merge remote-tracking branch 'origin/ngmix_v2.0' into im_sims-rebase-…
cailmdaley Jul 3, 2026
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
90 changes: 90 additions & 0 deletions example/cfis_image_sims/config_exp_Gie_symlink.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# ShapePipe configuration file for: get images


## Default ShapePipe options
[DEFAULT]

# verbose mode (optional), default: True, print messages on terminal
VERBOSE = False

# Name of run (optional) default: shapepipe_run
RUN_NAME = run_sp_exp_Gie

# Add date and time to RUN_NAME, optional, default: False
RUN_DATETIME = True


## ShapePipe execution options
[EXECUTION]

# Module name, single string or comma-separated list of valid module runner names
MODULE = get_images_runner

# Parallel processing mode, SMP or MPI
MODE = SMP


## ShapePipe file handling options
[FILE]

# Log file master name, optional, default: shapepipe
LOG_NAME = log_sp

# Runner log file name, optional, default: shapepipe_runs
RUN_LOG_NAME = log_run_sp

# Input directory, containing input files, single string or list of names
INPUT_DIR = $SP_RUN

# Output directory
OUTPUT_DIR = $SP_RUN/output


## ShapePipe job handling options
[JOB]

# Batch size of parallel processing (optional), default is 1, i.e. run all jobs in serial
SMP_BATCH_SIZE = 1

# Timeout value (optional), default is None, i.e. no timeout limit applied
TIMEOUT = 96:00:00


## Module options

# Get exposures
[GET_IMAGES_RUNNER]

INPUT_MODULE = last:find_exposures_runner

FILE_PATTERN = exp_numbers

FILE_EXT = .txt

# NUMBERING_SCHEME (optional) string with numbering pattern for input files
NUMBERING_SCHEME = -000-000


# Paths

# Output path (optional, default is [FILE]:OUTPUT_DIR
# OUTPUT_PATH = input_images

# Input path where original images are stored. Can be local path or vos url.
# Single string or list of strings
INPUT_PATH = $SP_DIR/input_exp/,$SP_DIR/input_exp/,$SP_DIR/input_exp/

# Input file pattern including tile number as dummy template
INPUT_FILE_PATTERN = simu_image-0000000,simu_weight-0000000,simu_flag-0000000

# Input file extensions
INPUT_FILE_EXT = .fits, .fits,.fits

# Input numbering scheme, python regexp
INPUT_NUMBERING = \d{7}

# Output file pattern without number
OUTPUT_FILE_PATTERN = image-,weight-,flag-

# Method to retrieve images, one in 'vos', 'symlink'
RETRIEVE = symlink
76 changes: 76 additions & 0 deletions example/cfis_image_sims/config_exp_Ma_onthefly.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# ShapePipe configuration file for masking of exposures


## Default ShapePipe options
[DEFAULT]

# verbose mode (optional), default: True, print messages on terminal
VERBOSE = True

# Name of run (optional) default: shapepipe_run
RUN_NAME = run_sp_exp_Ma

# Add date and time to RUN_NAME, optional, default: False
; RUN_DATETIME = False


## ShapePipe execution options
[EXECUTION]

# Module name, single string or comma-separated list of valid module runner names
MODULE = mask_runner

# Parallel processing mode, SMP or MPI
MODE = SMP


## ShapePipe file handling options
[FILE]

# Log file master name, optional, default: shapepipe
LOG_NAME = log_sp

# Runner log file name, optional, default: shapepipe_runs
RUN_LOG_NAME = log_run_sp

# Input directory, containing input files, single string or list of names
INPUT_DIR = .

# Output directory
OUTPUT_DIR = $SP_RUN/output


## ShapePipe job handling options
[JOB]

# Batch size of parallel processing (optional), default is 1, i.e. run all jobs in serial
SMP_BATCH_SIZE = 1

# Timeout value (optional), default is None, i.e. no timeout limit applied
TIMEOUT = 96:00:00


## Module options

### Mask exposures
[MASK_RUNNER]

# Parent module
INPUT_DIR = last:split_exp_runner

# Update numbering convention, accounting for HDU number of
# single-exposure single-HDU files
NUMBERING_SCHEME = -0000000-0

# Path of mask config file
MASK_CONFIG_PATH = $SP_CONFIG/config_onthefly.mask_simu

# External mask file flag, use if True, otherwise ignore
USE_EXT_FLAG = True

# External star catalogue flag, use external cat if True,
# obtain from online catalogue if False
USE_EXT_STAR = False

# File name suffix for the output flag files (optional)
PREFIX = pipeline
74 changes: 74 additions & 0 deletions example/cfis_image_sims/config_exp_Sp.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# ShapePipe configuration file for single-exposures,
# split images


## Default ShapePipe options
[DEFAULT]

# verbose mode (optional), default: True, print messages on terminal
VERBOSE = True

# Name of run (optional) default: shapepipe_run
RUN_NAME = run_sp_exp_Sp

# Add date and time to RUN_NAME, optional, default: True
RUN_DATETIME = True


## ShapePipe execution options
[EXECUTION]

# Module name, single string or comma-separated list of valid module runner names
MODULE = split_exp_runner

# Run mode, SMP or MPI
MODE = SMP


## ShapePipe file handling options
[FILE]

# Log file master name, optional, default: shapepipe
LOG_NAME = log_sp

# Runner log file name, optional, default: shapepipe_runs
RUN_LOG_NAME = log_run_sp

# Input directory, containing input files, single string or list of names with length matching FILE_PATTERN
INPUT_DIR = .

# Output directory
OUTPUT_DIR = $SP_RUN/output


## ShapePipe job handling options
[JOB]

# Batch size of parallel processing (optional), default is 1, i.e. run all jobs in serial
SMP_BATCH_SIZE = 1

# Timeout value (optional), default is None, i.e. no timeout limit applied
TIMEOUT = 96:00:00


## Module options

[SPLIT_EXP_RUNNER]

INPUT_DIR = last:get_images_runner

FILE_PATTERN = image, weight, flag

# Matches compressed single-exposure files
FILE_EXT = .fits, .fits, .fits

NUMBERING_SCHEME = -0000000

# OUTPUT_SUFFIX, actually file name prefixes.
# Expected keyword "flag" will lead to a behavior where the data are saved as int.
# The code also expects the image data to use the "image" suffix
# (default value in the pipeline).
OUTPUT_SUFFIX = image, weight, flag

# Number of HDUs/CCDs of mosaic
N_HDU = 40
54 changes: 54 additions & 0 deletions example/cfis_image_sims/config_exp_psfex.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# ShapePipe configuration file for fake PSF postage stamps (image simulations)


## Default ShapePipe options
[DEFAULT]

VERBOSE = True

RUN_NAME = run_sp_tile_fpsf

RUN_DATETIME = True


## ShapePipe execution options
[EXECUTION]

MODULE = fake_psf_runner

MODE = SMP


## ShapePipe file handling options
[FILE]

LOG_NAME = log_sp

RUN_LOG_NAME = log_run_sp

INPUT_DIR = $SP_RUN/output

OUTPUT_DIR = $SP_RUN/output


## ShapePipe job handling options
[JOB]

SMP_BATCH_SIZE = 1

TIMEOUT = 96:00:00


## Module options
[FAKE_PSF_RUNNER]

INPUT_MODULE = sextractor_runner

FILE_PATTERN = sexcat

FILE_EXT = .fits

NUMBERING_SCHEME = -000-000

# Path to the pickled PSF dictionary
PSF_DICT_PATH = /home/hervas/fhervas/workdir_skills/input/psf_files/Full_psf_dict.pickle
86 changes: 86 additions & 0 deletions example/cfis_image_sims/config_onthefly.mask_simu
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Mask module configuration file for single-exposure images

## Paths to executables
[PROGRAM_PATH]

WW_PATH = weightwatcher
WW_CONFIG_FILE = $SP_CONFIG/mask_default/default.ww

# Indicate cds client executable if no external star catalogue is available
# (e.g. no internet access on run nodes)
CDSCLIENT_PATH = findgsc2.2


## Border mask
[BORDER_PARAMETERS]

BORDER_MAKE = True

BORDER_WIDTH = 50
BORDER_FLAG_VALUE = 4


## Halo mask
[HALO_PARAMETERS]

HALO_MAKE = False

HALO_MASKMODEL_PATH = $SP_CONFIG/mask_default/halo_mask.reg
HALO_MAG_LIM = 13.
HALO_SCALE_FACTOR = 0.05
HALO_MAG_PIVOT = 13.8
HALO_FLAG_VALUE = 2
HALO_REG_FILE = halo.reg


## Diffraction spike mask
[SPIKE_PARAMETERS]

SPIKE_MAKE = False

SPIKE_MASKMODEL_PATH = $SP_CONFIG/mask_default/MEGAPRIME_star_i_13.8.reg
SPIKE_MAG_LIM = 18.
SPIKE_SCALE_FACTOR = 0.3
SPIKE_MAG_PIVOT = 13.8
SPIKE_FLAG_VALUE = 128
SPIKE_REG_FILE = spike.reg


## Messier mask
[MESSIER_PARAMETERS]

MESSIER_MAKE = False

MESSIER_CAT_PATH = $SP_CONFIG/mask_default/Messier_catalog_updated.fits
MESSIER_SIZE_PLUS = 0.
MESSIER_FLAG_VALUE = 16


## NGC mask
[NGC_PARAMETERS]

NGC_MAKE = False

NGC_CAT_PATH = $SP_CONFIG/mask_default/ngc_cat.fits
NGC_SIZE_PLUS = 0.
NGC_FLAG_VALUE = 32



## Missing data parameters
[MD_PARAMETERS]

MD_MAKE = False

MD_THRESH_FLAG = 0.3
MD_THRESH_REMOVE = 0.75
MD_REMOVE = False


## Other parameters
[OTHER]

TEMP_DIRECTORY = .temp

KEEP_REG_FILE = False
KEEP_INDIVIDUAL_MASK = False
Loading