-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #126 from cositools/docs
Sphinx documentation
- Loading branch information
Showing
17 changed files
with
313 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: docs | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Install dependencies | ||
run: | | ||
sudo apt install pandoc | ||
pip install sphinx sphinx_rtd_theme nbsphinx mock | ||
- name: Sphinx build | ||
run: | | ||
make -C docs html | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/docs' }} | ||
with: | ||
publish_branch: gh-pages | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/_build/html | ||
force_orphan: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,10 @@ | ||
# cosipy | ||
The COSI high-level data analysis tools | ||
|
||
## Installation from source | ||
The cosipy library is [COSI](https://cosi.ssl.berkeley.edu)'s high-level analysis software. | ||
|
||
Meant for developers. Currently the only option. | ||
The main repository is hosted in https://github.com/cositools/cosipy | ||
|
||
1. Clone the repository into your local machine | ||
For the cosipy installation and usage instructions please refer to the main [cosipy documentation](https://cositools.github.io/cosipy/). | ||
|
||
``` | ||
git clone [email protected]:cositools/cosipy.git | ||
``` | ||
|
||
2. Move to the cosipy folder | ||
|
||
``` | ||
cd cosipy | ||
``` | ||
|
||
3. Create a new conda environment. Optional but highly encouranged. | ||
|
||
4. Install it: | ||
|
||
``` | ||
pip install -e . | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Data IO | ||
======= | ||
|
||
.. automodule:: cosipy.data_io | ||
:imported-members: | ||
:members: | ||
:undoc-members: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Image deconvolution | ||
=================== | ||
|
||
.. automodule:: cosipy.image_deconvolution | ||
:imported-members: | ||
:members: | ||
:undoc-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,23 @@ | ||
API | ||
=== | ||
|
||
This is cosipy's Application Programming Interface (API). It is an exhaustive list of all available classes and their properties, as well as the inputs and outputs of each method. | ||
|
||
If you are instead interested in an overview on how to use cosipy, see out `tutorial series instead <../tutorials/index.html>`_. | ||
|
||
.. warning:: | ||
Under construction. The description of some methods is still missing. If you need the description of a particular class, please open an `issue <https://github.com/cositools/cosipy/issues>`_ so we can prioritize it. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Contents: | ||
|
||
response | ||
coordinates | ||
data_io | ||
spacecraftfile | ||
threeml | ||
ts_map | ||
image_deconvolution | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Spacecraft File | ||
=============== | ||
|
||
.. automodule:: cosipy.spacecraftfile | ||
:imported-members: | ||
:members: | ||
:undoc-members: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
COSILike (3ML plugin) | ||
===================== | ||
|
||
ThreeML plugin | ||
|
||
.. automodule:: cosipy.threeml | ||
:imported-members: | ||
:members: | ||
:undoc-members: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
TS Map | ||
====== | ||
|
||
.. automodule:: cosipy.ts_map | ||
:imported-members: | ||
:members: | ||
:undoc-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,34 @@ | ||
Welcome to cosipy's documentation! | ||
================================== | ||
|
||
The cosipy library is `COSI <https://cosi.ssl.berkeley.edu/>`_'s high-level analysis software. It allows you to extract imaging and spectral information from the data, as well as to perform statistical model comparisons. The cosipy products are meant to be ready for interpretation. | ||
|
||
The main repository is hosted at https://github.com/cositools/cosipy | ||
|
||
In the following sections you will find: | ||
|
||
- Installation instructions | ||
- A tutorial series explaining the basics of various components of cosipy | ||
- Further usage examples | ||
- The Application Programming Interface (API), describes the various available classes, their properties, and usage. | ||
|
||
.. warning:: | ||
While many features are already available, cosipy is still actively under development. COSI is scheduled to launch in 2027. In preparation, the cosipy team will be releasing alpha versions with approximately an annual cadence. Your feedback will be greatly appreciated! Note, however, that these are not stable releases and various components can be modified or deprecated shortly. | ||
|
||
|
||
Contributing | ||
------------ | ||
|
||
Cosipy is open-source and anyone can contribute. It doesn't matter if you are part of the COSI team or an external contributor. | ||
|
||
The preferred communication channel is the GitHub repository:: if you find a problem, please report it by opening an issue; if you have a question or an idea on how to collaborate, please open a discussion; if you have code to contribute, please fork the repository and open a pull request. | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Contents: | ||
|
||
install | ||
tutorials/Intro.ipynb | ||
tutorials/index | ||
tutorials/other_examples | ||
api/index |
Oops, something went wrong.