Skip to content

Commit 2eb3d6e

Browse files
committed
Minor tidying up in the second pass example config.
1 parent a9f8b96 commit 2eb3d6e

1 file changed

Lines changed: 9 additions & 17 deletions

File tree

examples/imsim-user-instcat-ffp-pass2.yaml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ template: imsim-config-instcat
1010
# Make your changes below.
1111
################################################################
1212

13-
# Put your own commands that override the defaults below here. For example
14-
# input.instance_catalog.file_name: ./imsim_cat_197356.txt
15-
# input.instance_catalog.sort_mag: False
16-
# input.tree_rings.only_dets: [R22_S11]
17-
# image.nobjects: 5
18-
1913
input.checkpoint: ""
2014
# input.instance_catalog: ""
2115
input.instance_catalog.file_name: $os.environ.get('IMSIM_HOME')+'/imSim/examples/example_instance_catalog_ffp.txt'
@@ -25,6 +19,8 @@ input.instance_catalog.sort_mag: False
2519
input.tree_rings: ""
2620
input.atm_psf: ""
2721

22+
# In the second pass, we add off-detector photons to the image generated in the
23+
# first pass from the the on-detector photons. Give the image here.
2824
input.initial_image:
2925
dir: output
3026
file_name:
@@ -37,17 +33,13 @@ input.initial_image:
3733
- $det_name
3834
- "@output.det_num"
3935

40-
# Simple off detector photon input reading one file.
41-
# input.off_detector_photons:
42-
# file_name: "output/off_det_00398414-0-r-R22_S11-det094.fits"
43-
# camera: $camera
44-
# det_name: $det_name
45-
46-
# If we're doing the preprocessing step then we've already reorganised the
47-
# photons so they live in one file per destination detector, so we only need to
48-
# read that one. But, we might feasibly also wish to directly specify a list of
49-
# off-detector photon files, which presumably haven't been preprocessed, so I
50-
# might want to add the capability to work from a file list too.
36+
# Two methods can be used to read files containing off-detector photons. If a
37+
# single file only is to be read, then give the file_name. Alternatively, we can
38+
# give a file_pattern containing the fields DETNAME and DETNUM, which are
39+
# wildcards for the detector name and number in an expected set of files
40+
# matching the pattern. The loader will then attempt to read from all files it
41+
# finds matching this patter, excluding the file with the same name/num as the
42+
# current detector.
5143
input.off_detector_photons:
5244
dir: output
5345
# file_name:

0 commit comments

Comments
 (0)