Skip to content

Commit 35f5dbc

Browse files
fixed bug to remove previous runs in init_run
1 parent 52b9836 commit 35f5dbc

File tree

3 files changed

+75
-5
lines changed

3 files changed

+75
-5
lines changed

docs/source/pipeline_canfar.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ patchnum=`tr $patch P ''`
121121
create_final_cat.py -m final_cat_$patch.hdf5 -i . -p $patch/cfis/final_cat.param -P $patchnum -o $patch/n_tiles_final.txt -v
122122

123123
# Star catalogue
124-
combine_runs.bash -p $psf -c psf
124+
combine_runs.bash -p $psf -c psf
125125

126126
## The following are not necessary, only to get merged catalogue with non-converted quantities
127127
shapepipe_run -c $SP_CONFIG/config_Ms_$psf.ini
@@ -144,7 +144,7 @@ cd ../star_cat
144144
convert_psf_pix2world.py -i .. -P $patchnum -v
145145

146146
# Combine previously created files as links within one SP run dir
147-
# (for the v1.4 setup only one link
147+
# (for the v1.4 setup only one link)
148148
cd P$patch
149149
combine_runs.bash -p psfex -c psf_conv
150150

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# ShapePipe configuration file for post-processing.
2+
# merge star cat.
3+
4+
5+
## Default ShapePipe options
6+
[DEFAULT]
7+
8+
# verbose mode (optional), default: True, print messages on terminal
9+
VERBOSE = True
10+
11+
# Name of run (optional) default: shapepipe_run
12+
RUN_NAME = run_sp_Msval
13+
14+
# Add date and time to RUN_NAME, optional, default: False
15+
RUN_DATETIME = False
16+
17+
18+
## ShapePipe execution options
19+
[EXECUTION]
20+
21+
# Module name, single string or comma-separated list of valid module runner names
22+
MODULE = merge_starcat_runner
23+
24+
# Parallel processing mode, SMP or MPI
25+
MODE = SMP
26+
27+
28+
## ShapePipe file handling options
29+
[FILE]
30+
31+
# Log file master name, optional, default: shapepipe
32+
LOG_NAME = log_sp
33+
34+
# Runner log file name, optional, default: shapepipe_runs
35+
RUN_LOG_NAME = log_run_sp
36+
37+
# Input directory, containing input files, single string or list of names
38+
INPUT_DIR = $SP_RUN/output
39+
40+
# Output directory
41+
OUTPUT_DIR = $SP_RUN/output
42+
43+
44+
## ShapePipe job handling options
45+
[JOB]
46+
47+
# Batch size of parallel processing (optional), default is 1, i.e. run all jobs in serial
48+
SMP_BATCH_SIZE = 4
49+
50+
# Timeout value (optional), default is None, i.e. no timeout limit applied
51+
TIMEOUT = 96:00:00
52+
53+
54+
## Module options
55+
[MERGE_STARCAT_RUNNER]
56+
57+
INPUT_DIR = last:psfex_interp_runner
58+
59+
PSF_MODEL = psfex
60+
61+
NUMBERING_SCHEME = -0000000-0
62+
63+
# Input file pattern(s), list of strings with length matching number of expected input file types
64+
# Cannot contain wild cards
65+
FILE_PATTERN = validation_psf
66+
67+
# FILE_EXT (optional) list of string extensions to identify input files
68+
FILE_EXT = .fits
69+
70+
HDU = 2

scripts/sh/init_run_exclusive_canfar.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -536,15 +536,15 @@ fi
536536
if [[ $do_job != 0 ]]; then
537537

538538
# Remove previous runs of this job
539-
rm -rf run_sp_Ms_20??_*
539+
rm -rf run_sp_Ms_20??-*
540540

541541
fi
542542

543543
(( do_job = $job & 512 ))
544544
if [[ $do_job != 0 ]]; then
545545

546546
# Remove previous runs of this job
547-
rm -rf run_sp_Mc_20??_*
547+
rm -rf run_sp_Mc_20??-*
548548

549549
fi
550550

@@ -561,7 +561,7 @@ if [[ $do_job != 0 ]]; then
561561

562562
# Remove previous runs of this job
563563
echo "Remove previous Pv jobs"
564-
rm -rf run_sp_exp_Pv_20??_*
564+
rm -rf `pwd`/run_sp_exp_Pv_20??-*
565565
fi
566566

567567

0 commit comments

Comments
 (0)