Skip to content

Commit dc43d76

Browse files
committed
update index.rst
1 parent d39f203 commit dc43d76

1 file changed

Lines changed: 77 additions & 24 deletions

File tree

docs/index.rst

Lines changed: 77 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -75,28 +75,43 @@ nm. As the break crosses into different optical filters with increasing
7575
redshift, the differences in magnitudes between filters carry
7676
information about the redshift;
7777

78-
.. container:: figure*
79-
80-
.. image:: figures/static_balmer.png
81-
:alt: image
82-
:width: 80.0%
83-
78+
.. figure:: figures/static_balmer.png
79+
:alt: image
80+
:width: 80.0%
81+
82+
A passive galaxy at different redshifts and how it will show up in various optical
83+
filters, giving us the ability to estimate its redshift and
84+
therefore distance. For many galaxies, the so-called
85+
'Balmer break' at 400 nm is a reliable feature that causes the
86+
flux to drop severely in bluer filters. Figure and caption
87+
by Jamie McCullough.
88+
8489
This can also be seen when plotting redshifts as a function of derived colors,
8590
i.e., differences in magnitudes between filters;
8691

8792
.. container:: figure*
8893

8994
|image| |image1|
9095

96+
Redshifts plotted as a function of r-i versus g-r colors for a sample of objects
97+
in the cardinal (left) and flagship (right) simulations. These
98+
are plotted for the data for task set 1, i.e., for a sample of
99+
objects with i < 23.
100+
101+
91102
This overly simple picture is complicated somewhat by the fact that
92103
different galaxies have different intrinsic spectra and colors:
93104

94-
.. container:: figure*
95-
96-
.. image:: figures/gr_vs_sz_sidebyside.jpg
97-
:alt: image
98-
:width: 80.0%
105+
.. figure:: figures/gr_vs_sz_sidebyside.jpg
106+
:alt: image
107+
:width: 80.0%
99108

109+
Color (g-r) plotted as a function of
110+
redshift for a sample of objects in the cardinal (top) and
111+
flagship (bottom) simulations. These are plotted for the data
112+
for task set 1, i.e., for a sample of objects with i < 23. The
113+
overlaid lines show the templates for several different types of galaxies.
114+
100115
This is further complicated by the fact that reference redshifts,
101116
typically obtained by spectroscopy, slitless spectroscopy (i.e., GRISM
102117
measurements), or narrowband photometric measurements, are not a
@@ -203,7 +218,8 @@ Challenge Input Data
203218
====================
204219

205220
The preparation of the challenge data is described in the appendices.
206-
The data are available as ``tar`` archives on the data challenge site.
221+
The data are available as a ``tar`` archive that is downloaded and
222+
unpacked as part of the ``pz_data_challenge`` setup procedure.
207223

208224
Each task set in the data challenge has an associated set of files.
209225
Typically these will be a collection of training files that contain
@@ -260,6 +276,21 @@ The columns in the files are:
260276
mag_{band}_roman_err Magnitude uncertainty in Roman {band}
261277
==================== =====================================
262278

279+
We note that we use ``np.nan`` to in the magnitdude columns to signify non-detections.
280+
281+
We note that the ``table-io`` package installed with
282+
``pz_data_challenge`` provides a command line interface
283+
to convert files from ``hdf5`` format to other formats such as
284+
``parquet`` tables or ``pandas`` data frames.
285+
286+
::
287+
288+
# convert a hdf5 file to pandas dataframe in a parquet file
289+
tables-io convert
290+
--input public/pz_challenge_taskset_1_cardinal_test_10yr.hdf5
291+
--output public/pz_challenge_taskset_1_cardinal_test_10yr.pq
292+
293+
263294
.. _challenge_submissions:
264295

265296
Challenge Submissions
@@ -319,7 +350,8 @@ For users unfamiliar with ``qp``, we highly recommend representing the
319350
[0.1,0.3,0.5,0.2,0.05]
320351
]
321352
)
322-
ens = qp.interp.create_ensemble(xvals,yvals)
353+
ensemble = qp.interp.create_ensemble(xvals,yvals)
354+
ensemble.write_to(<output_filename.hdf5>)
323355

324356
::
325357

@@ -336,6 +368,7 @@ For users unfamiliar with ``qp``, we highly recommend representing the
336368
stds = [[0.2, 0.4], [0.1, 0.3], [0.05, 0.3]]
337369
weights = [[0.8, 0.2], [0.7, 0.3], [0.8, 0.2]]
338370
ens = qp.mixmod.create_ensemble(means=means,stds=stds,weights=weights)
371+
ensemble.write_to(<output_filename.hdf5>)
339372

340373
The submission files should use the same file name conventions defined
341374
in Tab. `1 <file_fields>`__. The labels will typically be
@@ -344,6 +377,17 @@ descriptions of the various tasks, e.g.,
344377
``pz_challenge_taskset_1_cardinal_pz_estimate_yr1.hdf5`` or
345378
``pz_challenge_taskset_1_cardinal_pz_model_yr1.pkl``.
346379

380+
All of these files should then be joined into a ``tar`` file, which
381+
should then be placed somewhere it can be download. The URL for the
382+
``tar`` should be specified in ``tests/test_{submission}.py``
383+
384+
::
385+
386+
SUBMISSION_NAME = "example"
387+
SUBMISSION_URL = "https://your.institution.edu/submit_example.tgz"
388+
389+
390+
347391
Format for estimation-only Python functions and trained models
348392
--------------------------------------------------------------
349393

@@ -427,7 +471,8 @@ Submissions will take the form of a pull request on the
427471

428472
#. A file ``.github/workflows/submit_{submission}.yaml`` to run the
429473
submission validation in a GitHub action. This should not need to be
430-
modified.
474+
modified unless the prerequisite installation requires more than just
475+
``pip`` installing packages.
431476

432477
All three of these files are created by the
433478
``scripts/prepare_submission.py`` script.
@@ -436,8 +481,8 @@ You will need modify the ``tests/test_{submission}.py`` to give the
436481
location of the ``tar`` file containing the PZ estimates and trained
437482
models.
438483

439-
An example of a submission is provided at
440-
``https://github.com/LSSTDESC/pz_data_challenge/pull/6``.
484+
See `<https://github.com/LSSTDESC/pz_data_challenge/pull/6>`_ for an
485+
example of a submission.
441486

442487
Submission validation
443488
---------------------
@@ -485,24 +530,32 @@ run them. In short the command are:
485530

486531
::
487532

488-
# Check status of your local git clone by running git status. And Make
489-
# sure that you are on the branch submit/{submission_name}
490-
# and do not have any files added or modified
533+
# Check status of your local git clone by running git status, and make
534+
# sure that you are on the branch submit/{submission_name} and do not
535+
# have any files added or modified
491536
git status
492537

493538
# Add your files to git
494-
git add .github/workflows/submit_example.yaml requirements_example.txt tests/test_example.py
539+
git add .github/workflows/submit_example.yaml
540+
requirements_example.txt
541+
tests/test_example.py
495542

496543
# Commit your files to your branch:
497-
git commit -m "Submitting {submission_name}" .github/workflows/submit_{submission_name}.yaml requirements_{submission_name}.txt tests/test_{submission_name}.py
544+
git commit -m "Submitting {submission_name}"
545+
.github/workflows/submit_{submission_name}.yaml
546+
requirements_{submission_name}.txt
547+
tests/test_{submission_name}.py
498548

499549
# Push your commit
500550
git push --set-upstream origin submit/{submission_name}
501551

502-
# Pushing to git should give you a URL that you can visit to create a pull request, for example
552+
# Pushing to git should give you a URL that you can visit to create a
553+
# pull request, for example:
503554
# https://github.com/LSSTDESC/pz_data_challenge/pull/new/submit/example
504-
# Visit that URL and create a pull request, then add the 'submission' label to the PR
505-
# Finally, make sure that the github action validating your submission succeeds and fix any issues
555+
# Visit that URL and create a pull request, then add the 'submission'
556+
# label to the PR.
557+
# Finally, make sure that the github action validating your submission
558+
# succeeds and fix any issues.
506559

507560
Submission aids
508561
---------------

0 commit comments

Comments
 (0)