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

Readthedocs pull request #50

Merged
merged 98 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
13ab81b
Created readthedocs.yaml file
benjamin-saliwanchik Apr 28, 2023
e29595a
Updating docs for Satellite.py
benjamin-saliwanchik May 1, 2023
2dd47f8
Adding documentation for Satellite.py
benjamin-saliwanchik May 2, 2023
9121a2a
Now with updated usage.rst
benjamin-saliwanchik May 2, 2023
5b5be0f
Working on documentation for Simulation.py
benjamin-saliwanchik May 3, 2023
8865d28
Debugging usage.rst
benjamin-saliwanchik May 3, 2023
190f848
Debugging usage.rst
benjamin-saliwanchik May 3, 2023
661a3e2
Debugging usage.rst
benjamin-saliwanchik May 4, 2023
e0d0259
Debugging usage.rst
benjamin-saliwanchik May 4, 2023
8122f27
Debugging usage.rst
benjamin-saliwanchik May 4, 2023
f030719
Revert "Debugging usage.rst"
benjamin-saliwanchik May 4, 2023
4328066
Revert "Debugging usage.rst"
benjamin-saliwanchik May 4, 2023
0657174
Revert "Debugging usage.rst"
benjamin-saliwanchik May 4, 2023
cd49e14
Debugging RTD build failure.
benjamin-saliwanchik May 8, 2023
d3b60ee
Debugging RTD build failure.
benjamin-saliwanchik May 8, 2023
6d5526b
Debugging RTD build failure.
benjamin-saliwanchik May 8, 2023
fc61255
Debugging RTD build failure.
benjamin-saliwanchik May 8, 2023
3149b5a
Debugging RTD build failure.
benjamin-saliwanchik May 8, 2023
2e8ffc5
Reverting changes to conf.py
benjamin-saliwanchik May 26, 2023
7d550a6
Update to compensate for removal of pre-installed packages in readthe…
benjamin-saliwanchik Aug 7, 2023
acd0e04
Update to compensate for removal of pre-installed packages in readthe…
benjamin-saliwanchik Aug 7, 2023
683969c
Adding beam.py classes to usage.rst
benjamin-saliwanchik Aug 7, 2023
d685375
Update usage.rst
benjamin-saliwanchik Aug 7, 2023
a9d5918
Update Beam.py doc strings
benjamin-saliwanchik Aug 7, 2023
6d2d821
Update usage.rst doc strings
benjamin-saliwanchik Aug 7, 2023
7fd18e6
Update usage.rst doc strings
benjamin-saliwanchik Aug 7, 2023
f0c66f8
Update usage.rst
benjamin-saliwanchik Aug 7, 2023
9b9a0a1
Update usage.rst
benjamin-saliwanchik Aug 7, 2023
b6c0324
Update usage.rst
benjamin-saliwanchik Aug 7, 2023
4508e31
Update usage.rst
benjamin-saliwanchik Aug 7, 2023
626b8c9
Update usage.rst
benjamin-saliwanchik Aug 8, 2023
dca7393
Update Beam.py docstrings
benjamin-saliwanchik Aug 8, 2023
070a2be
Update Beam.py docstrings
benjamin-saliwanchik Aug 9, 2023
9a14cc9
Update Beam.py docstrings
benjamin-saliwanchik Aug 11, 2023
4e59664
Update Beam.py docstrings
benjamin-saliwanchik Aug 11, 2023
d839e06
Finish compiling Beam.py docstrings
benjamin-saliwanchik Aug 16, 2023
2723d02
Update api.rst
benjamin-saliwanchik Aug 17, 2023
9dea329
Update Beam.py
benjamin-saliwanchik Aug 17, 2023
cadc1cd
Update usage.rst
benjamin-saliwanchik Aug 17, 2023
eb45684
Update usage.rst
benjamin-saliwanchik Aug 17, 2023
0413dd5
Update readthedocs.yaml to version 2
benjamin-saliwanchik Aug 17, 2023
76f35f0
Update readthedocs.yaml
benjamin-saliwanchik Aug 17, 2023
46ab810
Update readthedocs.yaml
benjamin-saliwanchik Aug 17, 2023
111e196
Update usage.rst
benjamin-saliwanchik Aug 17, 2023
5faf0c0
Testing bug in Beam.py
benjamin-saliwanchik Aug 17, 2023
bc65221
Update usage.rst to test bug in Beam.py
benjamin-saliwanchik Aug 17, 2023
8fc61dc
Update Beam.py
benjamin-saliwanchik Aug 17, 2023
8169996
Update Beam.py
benjamin-saliwanchik Aug 17, 2023
83bddc2
Update usage.rst
benjamin-saliwanchik Aug 17, 2023
e512e2c
Rename Beam.py to Beam_module.py
benjamin-saliwanchik Aug 17, 2023
c918483
Update usage.rst
benjamin-saliwanchik Aug 17, 2023
d67374f
Update readthedocs.yaml
benjamin-saliwanchik Aug 17, 2023
ba03f19
Update __init__.py
benjamin-saliwanchik Aug 17, 2023
44a54c8
Update __init__.py
benjamin-saliwanchik Aug 18, 2023
24cd91c
Update readthedocs.yaml
benjamin-saliwanchik Aug 18, 2023
ec140ca
Update conf.py
benjamin-saliwanchik Aug 18, 2023
ccd1eaf
Rename Beam_module.py to Beam.py
benjamin-saliwanchik Aug 18, 2023
4e402b7
Rename Beam.py to Beam_module.py
benjamin-saliwanchik Aug 18, 2023
1c864f4
Update usage.rst
benjamin-saliwanchik Aug 18, 2023
5436f3e
Update __init__.py
benjamin-saliwanchik Aug 18, 2023
d6cb177
Rename Beam_module.py to Beam.py
benjamin-saliwanchik Aug 18, 2023
405c41a
Update usage.rst, now using automodule
benjamin-saliwanchik Aug 24, 2023
379c718
Update Beam.py docstrings
benjamin-saliwanchik Aug 25, 2023
2e17e67
Update LunarCalendar.py docstrings
benjamin-saliwanchik Aug 25, 2023
55fda7f
Adding LunarCalendar to usage.rst
benjamin-saliwanchik Aug 25, 2023
3de8e1b
Adding LunarCalendar to api.rst
benjamin-saliwanchik Aug 25, 2023
c20331a
Update api.rst
benjamin-saliwanchik Aug 29, 2023
0b6dc2f
Update Observation.py docstrings
benjamin-saliwanchik Aug 29, 2023
daba3da
Update Satellite.py docstrings
benjamin-saliwanchik Aug 29, 2023
0de50c8
Update usage.rst
benjamin-saliwanchik Aug 29, 2023
7d636e8
Update api.rst
benjamin-saliwanchik Aug 29, 2023
b96b094
Update Observation.py docstrings
benjamin-saliwanchik Sep 5, 2023
41ccc84
Merge branch 'readthedocs_debug' into readthedocs
benjamin-saliwanchik Dec 18, 2023
50897c7
Debugging conf.py
benjamin-saliwanchik Dec 18, 2023
e01b636
Debugging .yaml file
benjamin-saliwanchik Dec 18, 2023
d3fc39c
Debugging conf.py
benjamin-saliwanchik Dec 18, 2023
aa83180
Debugging conf.py
benjamin-saliwanchik Dec 21, 2023
b106fe1
Debugging conf.py
benjamin-saliwanchik Dec 21, 2023
2f39808
Update readthedocs.yaml
benjamin-saliwanchik Dec 21, 2023
7a1d443
Update readthedocs.yaml
benjamin-saliwanchik Dec 21, 2023
15b4996
Update readthedocs.yaml
benjamin-saliwanchik Dec 21, 2023
1e18f89
Update readthedocs.yaml
benjamin-saliwanchik Dec 21, 2023
08419fa
Update readthedocs.yaml
benjamin-saliwanchik Dec 21, 2023
918d07a
Update readthedocs.yaml
benjamin-saliwanchik Dec 21, 2023
b3532a1
Update readthedocs.yaml
benjamin-saliwanchik Dec 21, 2023
6a4de47
Update readthedocs.yaml
benjamin-saliwanchik Dec 21, 2023
46d9b77
Update readthedocs.yaml
benjamin-saliwanchik Dec 21, 2023
f91158d
Debugging sphinx_rtd_theme
benjamin-saliwanchik Dec 21, 2023
1d8553e
Update readthedocs.yaml
benjamin-saliwanchik Dec 21, 2023
85c9f3a
Debugging sphinx-rtd-theme
benjamin-saliwanchik Dec 21, 2023
620d7a0
Added readthedocs docstrings to SkyModels.py
benjamin-saliwanchik Mar 19, 2024
fd864a2
Added docstrings to MonoSkyModels.py. Fixed variable types in other d…
benjamin-saliwanchik Mar 20, 2024
ee1ab82
Adding MonoSkyModels to usage.rst and api.rst
benjamin-saliwanchik Mar 20, 2024
300bce9
Working on docstrings in Beam.py and BeamGauss.py
benjamin-saliwanchik Apr 16, 2024
c0c92d3
Merge branch 'main' into readthedocs
benjamin-saliwanchik Apr 16, 2024
128addf
Adding doc strings for BeamCouplings.py, BeamGauss.py, Data.py, PCAan…
benjamin-saliwanchik Apr 18, 2024
0c5e669
Update installation description in usage.rst from luseepy docker readme
benjamin-saliwanchik Apr 18, 2024
788a868
Updating code block formatting in usage.rst
benjamin-saliwanchik Apr 18, 2024
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: 2 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ scipy
fitsio
matplotlib
healpy
pandas
sphinx-rtd-theme
6 changes: 5 additions & 1 deletion docs/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ API for lusee
.. autosummary::
:toctree: generated

lusee.Observation
lusee.Beam
lusee.Simulation
lusee.Satellite
lusee.ObservedSatellite

lusee.MonoSkyModels
lusee.SkyModels
lusee.LunarCalendar
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from unittest import mock

sys.path.insert(0, os.path.abspath('../..'))
sys.path.insert(0, os.path.abspath('../../'))

# -- Project information

Expand Down
89 changes: 69 additions & 20 deletions docs/source/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,52 +6,101 @@ Usage
Installation
------------

To use luseepy, go to the GitHub repo
To use luseepy, install the LuSEE-Night Docker image (For more information, see https://github.com/lusee-night/luseepy/tree/main/docker):

**The "unity" Image**

This is the minimal useable image based on requirements-foundation.txt. The main "Dockerfile" in the "docker" folder uses a build-arg argument, which also has a reasonable default. For example, building the "unity" image is done like this:

.. code-block:: console

(.venv) $ # commands here
$ docker build . -f docker/Dockerfile-unity-luseepy -t lusee/lusee-night-unity-luseepy:1.0 --build-arg reqs=requirements-unity-luseepy.txt

As an alternative, there are Docker images in development (TBD).
**Jupyter**

The Simulator
This image also includes Jupyter Lab software. Jupyter is not started automatically, i.e. by default the user gets bash running and a functional Python/refspec/luseepy environment. To get Jupyter running, one first starts the container like this (or in a similar manner):

.. code-block:: console

$ docker run -p 8888:8888 -e JUPYTER_ENABLE_LAB=yes -e JUPYTER_TOKEN=docker lusee/lusee-night-unity-luseepy:0.1

Once the container is running, this command is invoked to bring up Jupyter:

.. code-block:: console

$ jupyter lab --allow-root --ip 0.0.0.0 --port 8888

The port 8888 can be mapped to any other convenient port on the host machine, and then access through localhost.

The Observation
--------------

The main simulator class
.. automodule:: lusee.Observation
:members:

.. autoclass:: lusee.Simulator
The Beams
--------------

.. automodule:: lusee.Beam
:members:

Beam preparation
The Gaussian Beam
--------------

.. autofunction:: lusee.Simulator.prepare_beams
.. automodule:: lusee.BeamGauss
:members:

The "simulate" method
The Beam Couplings
--------------

.. autofunction:: lusee.Simulator.simulate
.. automodule:: lusee.BeamCouplings
:members:

Writing out data
The Simulator
--------------

.. autofunction:: lusee.Simulator.write
.. automodule:: lusee.Simulation
:members:

The Satellite classes
---------------------

.. autoclass:: lusee.Satellite
.. automodule:: lusee.Satellite
:members:

.. autoclass:: lusee.ObservedSatellite
The Monopole Sky Model classes
----------------------

.. autofunction:: lusee.ObservedSatellite.get_transit_indices
.. automodule:: lusee.MonoSkyModels
:members:

The Sky Models classes
The Sky Model classes
----------------------

.. autoclass:: lusee.GalCenter
.. automodule:: lusee.SkyModels
:members:

.. autoclass:: lusee.FitsSky

The Lunar Calendar
----------------------

'Map alm'
.. automodule:: lusee.LunarCalendar
:members:

.. autofunction:: lusee.FitsSky.get_alm
The Throughput
--------------

.. automodule:: lusee.Throughput
:members:

The Data
--------------

.. automodule:: lusee.Data
:members:

The PCA Analyzer
--------------

.. automodule:: lusee.PCAanalyzer
:members:
Loading
Loading