Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "astrodb-template-db"]
path = astrodb-template-db
url = https://github.com/astrodbtoolkit/astrodb-template-db.git
1 change: 1 addition & 0 deletions astrodb-template-db
Submodule astrodb-template-db added at f37dfa
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"sphinx.ext.mathjax",
"nbsphinx",
"pydata_sphinx_theme",
'sphinx_mdinclude',
]


Expand Down
3 changes: 2 additions & 1 deletion docs/doc_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ markupsafe==2.0.1
nbsphinx
pydata-sphinx-theme
mock
sphinx-pyproject
sphinx-pyproject
sphinx_mdinclude
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ User Guide
pages/querying_existing_db/index
pages/ingesting/getting_started_ingesting
pages/make_new_db/getting_started_new_database
pages/template_schema/template_schema
pages/making_private_version
pages/converting_spectra/converting_spectra
pages/getting_help/index
Expand Down
10 changes: 8 additions & 2 deletions docs/pages/dev_docs/developer_installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,19 @@ All contributions should include tests. To run the tests, use the command
Linting and Formatting
---------------------

Use `ruff <https://docs.astral.sh/ruff/>`_ for linting and `black <https://black.readthedocs.io/en/stable/>`_ for formatting.
(At some point, we will add a pre-commit hook to enforce this.)
Use `ruff <https://docs.astral.sh/ruff/>`_ for linting and formatting.
A pre-commit hook is provided for automatic linting and formatting with ruff. To use it, run `pip install pre-commit` and then `pre-commit install --allow-missing-config`.

VSCode setup instructions: `Formatting Python in VSCode <https://code.visualstudio.com/docs/python/formatting>`_

Build the Docs
---------------------
The documentation is build using files in the `astrodb-template-db` submodule.
Be sure to update the submodule before building the docs.
.. code-block:: bash

git submodule update --init --recursive


To build the docs, use `sphinx-autobuild <https://pypi.org/project/sphinx-autobuild/>`_.

Expand Down
14 changes: 10 additions & 4 deletions docs/pages/ingesting/ingesting_publications.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _ingesting_publications:

Ingesting publications
=======================
Ingesting a publication is a process of creating a new publication in the database.
Expand Down Expand Up @@ -28,7 +30,11 @@ Ingesting publications
Fill this in...


API documentation
-----------------
:py:mod:`astrodb_utils.find_publication`
:py:mod:`astrodb_utils.ingest_publication`
.. seealso::

:doc:`../template_schema/lookup_tables/publications`
Documentation on the Publications table

:py:mod:`find publication <astrodb_utils.publications.find_publication>` function

:py:mod:`ingest_publication <astrodb_utils.publications.ingest_publication>` function
13 changes: 13 additions & 0 deletions docs/pages/template_schema/data_tables/associations.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Association
###########

.. seealso::
:doc:`../lookup_tables/associationlist`
Documentation on the Association List table

Table Documentation
===================

.. mdinclude:: ../../../../astrodb-template-db/docs/schema/Associations.md


26 changes: 26 additions & 0 deletions docs/pages/template_schema/data_tables/companion_relationships.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
CompanionRelationships
#######################


Notes
=====
Relationship types are not currently constrained but should be one of the following:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This suggests we make a RelationshipTypeList table at some point...


* *parent*: The source is higher mass/brighter than the companion
* *sibling*: The source is similar to the companion in the system heirarchy
* *child*: The source is lower mass/fainter than the companion
* *unresolved parent*: The source is the unresolved, combined light source of an unresolved multiple system which includes the companion

.. seealso::
:doc:`../lookup_tables/companionlist`
Documentation on the Companion List table


Table documentation
===================
.. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/CompanionRelationships.md

The below table is built directly from the schema and is
included here from the `astrodb-template-db` documentation: `source`_.

.. mdinclude:: ../../../../astrodb-template-db/docs/schema/CompanionRelationships.md
20 changes: 20 additions & 0 deletions docs/pages/template_schema/data_tables/companionparameters.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
CompanionParameters
###################

.. seealso::

:doc:`../lookup_tables/paramaterlist`
Documentation for the ParamaterList table

:doc:`companion_relationships`
Documentation for the CompanionRelationships table


Table Documentation
====================
.. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/CompanionParameters.md

The below table is built directly from the schema and is
included here from the `astrodb-template-db` documentation: `source`_.

.. mdinclude:: ../../../../astrodb-template-db/docs/schema/CompanionParameters.md
14 changes: 14 additions & 0 deletions docs/pages/template_schema/data_tables/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
*************
Data tables
*************
These tables are examples and can be removed as needed.
Helper functions in the `astrodb_utils` package are
designed to help with adding data to these tables.
Additional tables can be added using these as templates.

.. toctree::
:glob:
:titlesonly:
:maxdepth: 1

*
16 changes: 16 additions & 0 deletions docs/pages/template_schema/data_tables/modeledparameters.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ModeledParameters
#######################

.. seealso::

:doc:`../lookup_tables/parameterlist`
Documentation for the ParameterList table

Table Documentation
===================
.. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/ModeledParameters.md

The below table is built directly from the schema and is
included here from the `astrodb-template-db` documentation: `source`_.

.. mdinclude:: ../../../../astrodb-template-db/docs/schema/ModeledParameters.md
11 changes: 11 additions & 0 deletions docs/pages/template_schema/data_tables/parallaxes.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Parallaxes
##########

Table Documentation
===================
.. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/Parallaxes.md

The below table is built directly from the schema and is
included here from the `astrodb-template-db` documentation: `source`_.

.. mdinclude:: ../../../../astrodb-template-db/docs/schema/Parallaxes.md
29 changes: 29 additions & 0 deletions docs/pages/template_schema/data_tables/photometry.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Photometry
##########


Notes
=====
* Band names refer to entries in the :doc:`../lookup_tables/photometryfilters` table and are
listed at the `SVO filter profile service <http://svo2.cab.inta-csic.es/svo/theory/fps3/index.php?mode=browse&gname=Spitzer&asttype=>`_

.. seealso::

:doc:`../lookup_tables/photometryfilters`
Documentation for the PhotometryFilters table

:doc:`../lookup_tables/regimelist`
Documentation for the RegimeList table`

:doc:`../lookup_tables/telescopes`
Documentation for the Telescopes table


Table documentation
===================
.. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/Photometry.md

The below table is built directly from the schema and is
included here from the `astrodb-template-db` documentation: `source`_.

.. mdinclude:: ../../../../astrodb-template-db/docs/schema/Photometry.md
11 changes: 11 additions & 0 deletions docs/pages/template_schema/data_tables/propermotions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ProperMotions
#############

Table Documentation
===================
.. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/ProperMotions.md

The below table is built directly from the schema and is
included here from the `astrodb-template-db` documentation: `source`_.

.. mdinclude:: ../../../../astrodb-template-db/docs/schema/ProperMotions.md
11 changes: 11 additions & 0 deletions docs/pages/template_schema/data_tables/radialvelocities.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
RadialVelocities
################

Table Documentation
===================
.. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/RadialVelocities.md

The below table is built directly from the schema and is
included here from the `astrodb-template-db` documentation: `source`_.

.. mdinclude:: ../../../../astrodb-template-db/docs/schema/RadialVelocities.md
12 changes: 12 additions & 0 deletions docs/pages/template_schema/data_tables/rotationalparameters.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
RotationalParameters
#######################


Table Documentation
===================
.. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/RotationalParameters.md

The below table is built directly from the schema and is
included here from the `astrodb-template-db` documentation: `source`_.

.. mdinclude:: ../../../../astrodb-template-db/docs/schema/RotationalParameters.md
17 changes: 17 additions & 0 deletions docs/pages/template_schema/data_tables/sourcetypes.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
SourceTypes
###########

.. seealso::

:doc:`../lookup_tables/sourcetypelist`
Documentation for the SourceTypeList table


Table documentation
===================
.. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/SourceTypes.md

The below table is built directly from the schema and is
included here from the `astrodb-template-db` documentation: `source`_.

.. mdinclude:: ../../../../astrodb-template-db/docs/schema/SourceTypes.md
29 changes: 29 additions & 0 deletions docs/pages/template_schema/data_tables/spectra.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Spectra
#######

.. seealso::

:doc:`../lookup_tables/telescopes`
Documentation for the Telescopes table

:doc:`../lookup_tables/regimelist`
Documentation for the RegimeList table`


Relevant functions: `spectra.ingest_spectrum`, `spectra.spectrum_plottable`, `spectra.find_spectra`

If the spectrum provided has been modified from the author-provided one,
a link to the original spectrum can be provided in the `original_spectrum` column.

The local_spectrum is meant to store the path to a local copy of the spectrum with an
environment variable to define part of the path (so it can be shared among other users).
For example: `$ASTRODB_SPECTRA/infrared/filename.fits`

Notes
=====
* An accurate observation date is required for a spectrum to be ingested.

* Data based on data from multiple observation dates has 'Multiple observation dates'
indicated in the *comments* field. One of the dates should be used for the *observation_date*.

* Spectra for companions should be associated with individual sources and not grouped with the primary source.
17 changes: 17 additions & 0 deletions docs/pages/template_schema/lookup_tables/associationlist.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
AssociationList
###############

.. seealso::
:doc:`../data_tables/associations`
Documentation on the Association table


Table Documentation
===================
.. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/AssociationList.md

The below table is built directly from the schema and is
included here from the `astrodb-template-db` documentation: `source`_.

.. mdinclude:: ../../../../astrodb-template-db/docs/schema/AssociationList.md

16 changes: 16 additions & 0 deletions docs/pages/template_schema/lookup_tables/companionlist.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CompanionList
###############

.. seealso::
:doc:`../data_tables/companion_relationships`
Documentation on the Companion Relationships table


Table Documentation
===================
.. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/CompanionList.md

The below table is built directly from the schema and is
included here from the `astrodb-template-db` documentation: `source`_.

.. mdinclude:: ../../../../astrodb-template-db/docs/schema/CompanionList.md
11 changes: 11 additions & 0 deletions docs/pages/template_schema/lookup_tables/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
*************
Lookup tables
*************

These tables are expected and used by other tables

.. toctree::
:glob:
:maxdepth: 1

*
17 changes: 17 additions & 0 deletions docs/pages/template_schema/lookup_tables/instruments.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Instruments
###########

.. seealso::

:doc:`../lookup_tables/telescopes`
Documentation for the Telescopes table


Table Documentation
===================
.. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/Instruments.md

The below table is built directly from the schema and is
included here from the `astrodb-template-db` documentation: `source`_.

.. mdinclude:: ../../../../astrodb-template-db/docs/schema/Instruments.md
19 changes: 19 additions & 0 deletions docs/pages/template_schema/lookup_tables/parameterlist.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
ParameterList
###############

.. seealso::
:doc:`../data_tables/companionparameters`
Documentation for the CompanionParameters table

:doc:`../data_tables/modeledparameters`
Documentation for the ModeledParameters table


Table Documentation
===================
.. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/ParameterList.md

The below table is built directly from the schema and is
included here from the `astrodb-template-db` documentation: `source`_.

.. mdinclude:: ../../../../astrodb-template-db/docs/schema/ParameterList.md
Loading