-
Notifications
You must be signed in to change notification settings - Fork 0
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 #240 from deepskies/dev
final pre-JOSS merge including docs
- Loading branch information
Showing
12 changed files
with
298 additions
and
41 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
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 |
---|---|---|
@@ -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 = source | ||
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) |
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,35 @@ | ||
@ECHO OFF | ||
|
||
pushd %~dp0 | ||
|
||
REM Command file for Sphinx documentation | ||
|
||
if "%SPHINXBUILD%" == "" ( | ||
set SPHINXBUILD=sphinx-build | ||
) | ||
set SOURCEDIR=source | ||
set BUILDDIR=build | ||
|
||
if "%1" == "" goto help | ||
|
||
%SPHINXBUILD% >NUL 2>NUL | ||
if errorlevel 9009 ( | ||
echo. | ||
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx | ||
echo.installed, then set the SPHINXBUILD environment variable to point | ||
echo.to the full path of the 'sphinx-build' executable. Alternatively you | ||
echo.may add the Sphinx directory to PATH. | ||
echo. | ||
echo.If you don't have Sphinx installed, grab it from | ||
echo.http://sphinx-doc.org/ | ||
exit /b 1 | ||
) | ||
|
||
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
goto end | ||
|
||
:help | ||
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
|
||
:end | ||
popd |
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,11 @@ | ||
sphinx==7.1.2 | ||
sphinx-rtd-theme==1.3.0rc1 | ||
numpy | ||
camb | ||
h5py | ||
astropy | ||
colossus | ||
tqdm | ||
pixell | ||
pandas | ||
scipy |
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 @@ | ||
API | ||
=== | ||
|
||
.. autosummary:: | ||
:toctree:: | ||
:maxdepth: 2 | ||
|
||
deepszsim |
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,39 @@ | ||
# Configuration file for the Sphinx documentation builder. | ||
import os | ||
import sys | ||
sys.path.insert(0, os.path.abspath('../../')) | ||
|
||
# -- Project information | ||
|
||
project = 'DeepSZSim' | ||
copyright = '2024, DeepSkies' | ||
author = 'DeepSkies' | ||
|
||
release = '0.1' | ||
version = '0.1.0' | ||
|
||
# -- General configuration | ||
|
||
extensions = [ | ||
'sphinx.ext.duration', | ||
'sphinx.ext.doctest', | ||
'sphinx.ext.autodoc', | ||
'sphinx.ext.autosummary', | ||
'sphinx.ext.intersphinx', | ||
# 'autoapi.extension', | ||
] | ||
|
||
intersphinx_mapping = { | ||
'python': ('https://docs.python.org/3/', None), | ||
'sphinx': ('https://www.sphinx-doc.org/en/master/', None), | ||
} | ||
intersphinx_disabled_domains = ['std'] | ||
|
||
templates_path = ['_templates'] | ||
|
||
# -- Options for HTML output | ||
|
||
html_theme = 'sphinx_rtd_theme' | ||
|
||
# -- Options for EPUB output | ||
epub_show_urls = 'footnote' |
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,106 @@ | ||
deepszsim package | ||
================= | ||
|
||
Documentation for `DeepSZSim <https://www.github.com/DeepSkies/DeepSZSim/>`_. | ||
|
||
To create a simulation of two SZ clusters as quickly as possible, run | ||
``tc = deepszsim.simulate_clusters(num_halos=2).get_T_maps()``, which will return a dictionary with two entries, accessed by ``tc.clusters``. Each of these entries includes a ``params`` subdirectory and a ``maps`` subdirectory. | ||
|
||
Submodules | ||
---------- | ||
|
||
deepszsim.dm\_halo\_dist module | ||
------------------------------- | ||
|
||
.. automodule:: deepszsim.dm_halo_dist | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
deepszsim.filters module | ||
------------------------ | ||
|
||
.. automodule:: deepszsim.filters | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
deepszsim.io\_params module | ||
--------------------------- | ||
|
||
.. automodule:: deepszsim.io_params | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
deepszsim.load\_vars module | ||
--------------------------- | ||
|
||
.. automodule:: deepszsim.load_vars | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
deepszsim.make\_sz\_cluster module | ||
---------------------------------- | ||
|
||
.. automodule:: deepszsim.make_sz_cluster | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
deepszsim.noise module | ||
---------------------- | ||
|
||
.. automodule:: deepszsim.noise | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
deepszsim.read\_yaml module | ||
--------------------------- | ||
|
||
.. automodule:: deepszsim.read_yaml | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
deepszsim.simclusters module | ||
---------------------------- | ||
|
||
.. automodule:: deepszsim.simclusters | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
deepszsim.simtools module | ||
------------------------- | ||
|
||
.. automodule:: deepszsim.simtools | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
deepszsim.utils module | ||
---------------------- | ||
|
||
.. automodule:: deepszsim.utils | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
deepszsim.visualization module | ||
------------------------------ | ||
|
||
.. automodule:: deepszsim.visualization | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: deepszsim | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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,12 @@ | ||
Welcome to DeepSZSim's documentation! | ||
===================================== | ||
|
||
**DeepSZSim** offers fast simulation of clusters observed via the Sunyaev-Zel'dovich effect in the CMB. | ||
|
||
Check out the `github <https://www.github.com/DeepSkies/DeepSZSim/>`_ for installation and usage examples. | ||
|
||
.. toctree:: | ||
:maxdepth: 3 | ||
:caption: Contents: | ||
|
||
deepszsim |
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 @@ | ||
deepszsim | ||
========= | ||
|
||
.. toctree:: | ||
:maxdepth: 3 | ||
|
||
deepszsim |
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 |
---|---|---|
|
@@ -4,15 +4,15 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "deepszsim" | ||
version = "0.1.0" | ||
version = "0.1.1" | ||
description = "code for fast simulations of galaxy clusters" | ||
authors = [{name = "Eve Vavagiakis", email = "[email protected]"}] | ||
license = {text="LICENSE.txt"} | ||
requires-python = ">= 3.9, <3.12" | ||
dependencies = [ | ||
"camb >= 1.4.0", | ||
"h5py >= 3.8.0", | ||
"numpy >= 1.24.3", | ||
"numpy >= 1.24.3, <2", | ||
"astropy >= 6.0", | ||
"colossus >= 1.3.0", | ||
"tqdm >= 4.66.0", | ||
|
@@ -23,5 +23,9 @@ dependencies = [ | |
pytest = "^7.3.1" | ||
pytest-cov = "^4.0.0" | ||
|
||
[tool.setuptools.packages.find] | ||
namespaces = false | ||
[tool.setuptools] | ||
packages = ["deepszsim"] | ||
include-package-data = true | ||
|
||
[tool.setuptools.package-data] | ||
"deepszsim" = ["Settings/*.yaml"] |
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,13 @@ | ||
version: "2" | ||
|
||
build: | ||
os: "ubuntu-22.04" | ||
tools: | ||
python: "3.11" | ||
|
||
python: | ||
install: | ||
- requirements: docs/requirements.txt | ||
|
||
sphinx: | ||
configuration: docs/source/conf.py |