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

Sphinx documentation #94

Merged
merged 13 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ instance/
.scrapy

# Sphinx documentation
docs/_build/
#docs/_build/

# PyBuilder
.pybuilder/
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Changes from v0.0.0 to v0.9.0
=========================
Made repo public.
15 changes: 13 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,18 @@ Attribution for software and data used by particular routines in this library is
Installation
==================

Please view the `installation instructions <INSTALL.rst>`_ for details on how to install GalSim-Euclid-Like.
The source code for GalSim-Euclid-Like has not been published to pypi. To install from source code::

git clone [email protected]:GalSim-developers/GalSim-Euclid-Like.git

and install by running::

conda create -n euclidlike python=3.10
cd GalSim-Euclid-Like
conda activate euclidlike
pip install .

Please view the `Installation Instructions` (in INSTALL.rst) for further details on how to install GalSim-Euclid-Like.

Downloading relevant data
==================
Expand All @@ -57,7 +68,7 @@ Feel free to `open a GitHub issue <https://github.com/GalSim-developers/GalSim-E
Attribution
==================

This software is open source and may be used according to the terms of its `license <LICENSE>`_.
This software is open source and may be used according to the terms of its `license <https://github.com/GalSim-developers/GalSim-Euclid-Like/blob/main/LICENSE>`_.

When using this software, please provide the URL to the repository in the resulting paper or note. Once there is a Zenodo DOI or journal article, this README will be updated and we will ask those using the code in their research to cite the relevant journal article.

1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.9.0
41 changes: 0 additions & 41 deletions config/README.md

This file was deleted.

49 changes: 49 additions & 0 deletions config/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Config imsim
----------------

``was.yaml``: *euclidlike_imsim example* config file.
You will want to update the following entries:

- ``input.obseq_data.file_name``: path to the observing sequence. Link to ``euclidlike/data/euclid_obseq.fits``
- ``input.sky_catalog.file_name``: path to the skyCatalog to use
- ``output.dir``: path to the output directory for the simulated images
- ``output.truth.dir``: path to the output directory for the true catalogs

To run the code:

.. code-block:: bash

galsim was.yaml

You might want to specify some config entries on the command line, like:

.. code-block:: bash

galsim was.yaml input.obseq_data.visit=33690 image.CCD=1


Config SLURM
----------------

``slurm_runner.sh`` contains the SLURM configuration to run "large scale" simulations.
You will want to update the following lines:

- ``#!/bin/zsh``: depending on the shell you are using, you might want to change it to: ``#!/bin/bash``
- ``#SBATCH --output=/path/to/slurm-%A-%a.out``: SLURM stdout file
- ``#SBATCH --error=/path/to/slurm-%A-%a.err``: SLURM stderr file
- ``source activate [env_name]``: conda environment to use
- ``file_list='/path/to/run_list.txt'``: file containing the pointings to simulate (see note below)

The ``run_list.txt`` is a 2-column file with the pointing and the ``CCD_ID`` to simulate. It should look like:

.. code-block:: text

33688 0
33688 1
33688 2
[...]
33688 35
33689 0
33689 1
[...]

20 changes: 20 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Binary file added docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file added docs/_build/doctrees/euclidlike.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/euclidlike_imsim.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/examples.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/history.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/index.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/install.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/modules.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/overview.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/scripts.doctree
Binary file not shown.
4 changes: 4 additions & 0 deletions docs/_build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 4eb1993e7d6d79d4c633c84663c8829c
tags: 645f666f9bcd5a90fca523b33c5a78b7
Loading
Loading