Skip to content

Commit

Permalink
PPB: rtd added .ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
Palma-Bifani committed Aug 6, 2024
1 parent 3ca7f7f commit dc323e0
Show file tree
Hide file tree
Showing 58 changed files with 2,798 additions and 182 deletions.
2 changes: 1 addition & 1 deletion ForMoSA.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: ForMoSA
Version: 1.1.2
Version: 1.1.3
Summary: ForMoSA: Forward Modeling Tool for Spectral Analysis
Home-page: https://github.com/exoAtmospheres/ForMoSA
Author: P. Palma-Bifani, S. Petrus, M. Ravet, A. Denis, M. Bonnefoy, G. Chauvin
Expand Down
2 changes: 1 addition & 1 deletion ForMoSA/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os

__version__ = "1.1.2"
__version__ = "1.1.3"

__all__ = ['adapt', 'nested_sampling','plotting']
2 changes: 1 addition & 1 deletion build/lib/ForMoSA/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os

__version__ = "1.1.2"
__version__ = "1.1.3"

__all__ = ['adapt', 'nested_sampling','plotting']
131 changes: 56 additions & 75 deletions build/lib/ForMoSA/adapt/adapt_grid.py

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions build/lib/ForMoSA/adapt/adapt_obs_mod.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import xarray as xr
from scipy.interpolate import interp1d

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

from adapt.extraction_functions import extract_observation
from adapt.adapt_grid import adapt_grid
from main_utilities import diag_mat
Expand Down
4 changes: 3 additions & 1 deletion build/lib/ForMoSA/nested_sampling/nested_sampling.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import numpy as np
import os
import os, sys
import glob
import nestle
import time
import xarray as xr
import pickle

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

from nested_sampling.nested_modif_spec import modif_spec
from nested_sampling.nested_prior_function import uniform_prior, gaussian_prior
from nested_sampling.nested_logL_functions import *
Expand Down
4 changes: 3 additions & 1 deletion build/lib/ForMoSA/plotting/plotting_class.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

from __future__ import print_function, division
import os, glob
import os, glob, sys
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
Expand All @@ -10,6 +10,8 @@
import pickle
from tqdm import tqdm

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

# Import ForMoSA
from main_utilities import GlobFile
from nested_sampling.nested_modif_spec import modif_spec
Expand Down
Binary file removed dist/ForMoSA-1.1.2-py3-none-any.whl
Binary file not shown.
Binary file removed dist/ForMoSA-1.1.2.tar.gz
Binary file not shown.
Binary file added dist/ForMoSA-1.1.3-py3-none-any.whl
Binary file not shown.
Binary file added dist/ForMoSA-1.1.3.tar.gz
Binary file not shown.
Binary file modified docs/_build/doctrees/atm_grids.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/demo.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
"pygments_lexer": "ipython3",
"version": "3.7.13"
},
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "9aec1e17db1a1c759b18bf85d14c335cdcfb4080f740d60b236f2747bc3cb68f"
Expand Down
301 changes: 291 additions & 10 deletions docs/_build/doctrees/nbsphinx/tutorials/demoabpic.ipynb

Large diffs are not rendered by default.

140 changes: 140 additions & 0 deletions docs/_build/doctrees/nbsphinx/tutorials/exorem_info.ipynb

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified docs/_build/doctrees/tutorials/demoabpic.doctree
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions docs/_build/html/_modules/ForMoSA/adapt/adapt_grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<script src="../../../_static/documentation_options.js?v=51b770b3"></script>
<script src="../../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
<script src="../../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
Expand All @@ -42,10 +43,10 @@
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<p class="caption" role="heading"><span class="caption-text">Contents</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../installation.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../demo.html">DEMO</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../demo.html">Tutorials</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../api.html">ForMoSA API</a></li>
</ul>

Expand Down Expand Up @@ -78,7 +79,9 @@ <h1>Source code for ForMoSA.adapt.adapt_grid</h1><div class="highlight"><pre>
<span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
<span class="kn">import</span> <span class="nn">xarray</span> <span class="k">as</span> <span class="nn">xr</span>
<span class="kn">import</span> <span class="nn">time</span>
<span class="kn">import</span> <span class="nn">os</span>
<span class="kn">import</span> <span class="nn">os</span><span class="o">,</span> <span class="nn">sys</span>

<span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">insert</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">abspath</span><span class="p">(</span><span class="s1">&#39;../&#39;</span><span class="p">))</span>

<span class="kn">from</span> <span class="nn">adapt.extraction_functions</span> <span class="kn">import</span> <span class="n">adapt_model</span><span class="p">,</span> <span class="n">decoupe</span>

Expand Down
7 changes: 5 additions & 2 deletions docs/_build/html/_modules/ForMoSA/adapt/adapt_obs_mod.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<script src="../../../_static/documentation_options.js?v=51b770b3"></script>
<script src="../../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
<script src="../../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
Expand All @@ -42,10 +43,10 @@
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<p class="caption" role="heading"><span class="caption-text">Contents</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../installation.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../demo.html">DEMO</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../demo.html">Tutorials</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../api.html">ForMoSA API</a></li>
</ul>

Expand Down Expand Up @@ -80,6 +81,8 @@ <h1>Source code for ForMoSA.adapt.adapt_obs_mod</h1><div class="highlight"><pre>
<span class="kn">import</span> <span class="nn">xarray</span> <span class="k">as</span> <span class="nn">xr</span>
<span class="kn">from</span> <span class="nn">scipy.interpolate</span> <span class="kn">import</span> <span class="n">interp1d</span>

<span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">insert</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">abspath</span><span class="p">(</span><span class="s1">&#39;../&#39;</span><span class="p">))</span>

<span class="kn">from</span> <span class="nn">adapt.extraction_functions</span> <span class="kn">import</span> <span class="n">extract_observation</span>
<span class="kn">from</span> <span class="nn">adapt.adapt_grid</span> <span class="kn">import</span> <span class="n">adapt_grid</span>
<span class="kn">from</span> <span class="nn">main_utilities</span> <span class="kn">import</span> <span class="n">diag_mat</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<script src="../../../_static/documentation_options.js?v=51b770b3"></script>
<script src="../../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
<script src="../../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
Expand All @@ -42,10 +43,10 @@
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<p class="caption" role="heading"><span class="caption-text">Contents</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../installation.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../demo.html">DEMO</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../demo.html">Tutorials</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../api.html">ForMoSA API</a></li>
</ul>

Expand Down Expand Up @@ -75,13 +76,15 @@

<h1>Source code for ForMoSA.nested_sampling.nested_sampling</h1><div class="highlight"><pre>
<span></span><span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
<span class="kn">import</span> <span class="nn">os</span>
<span class="kn">import</span> <span class="nn">os</span><span class="o">,</span> <span class="nn">sys</span>
<span class="kn">import</span> <span class="nn">glob</span>
<span class="kn">import</span> <span class="nn">nestle</span>
<span class="kn">import</span> <span class="nn">time</span>
<span class="kn">import</span> <span class="nn">xarray</span> <span class="k">as</span> <span class="nn">xr</span>
<span class="kn">import</span> <span class="nn">pickle</span>

<span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">insert</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">abspath</span><span class="p">(</span><span class="s1">&#39;../&#39;</span><span class="p">))</span>

<span class="kn">from</span> <span class="nn">nested_sampling.nested_modif_spec</span> <span class="kn">import</span> <span class="n">modif_spec</span>
<span class="kn">from</span> <span class="nn">nested_sampling.nested_prior_function</span> <span class="kn">import</span> <span class="n">uniform_prior</span><span class="p">,</span> <span class="n">gaussian_prior</span>
<span class="kn">from</span> <span class="nn">nested_sampling.nested_logL_functions</span> <span class="kn">import</span> <span class="o">*</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<script src="../../../_static/documentation_options.js?v=51b770b3"></script>
<script src="../../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
<script src="../../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
Expand All @@ -42,10 +43,10 @@
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<p class="caption" role="heading"><span class="caption-text">Contents</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../installation.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../demo.html">DEMO</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../demo.html">Tutorials</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../api.html">ForMoSA API</a></li>
</ul>

Expand Down Expand Up @@ -76,7 +77,7 @@
<h1>Source code for ForMoSA.plotting.plotting_class</h1><div class="highlight"><pre>
<span></span>
<span class="kn">from</span> <span class="nn">__future__</span> <span class="kn">import</span> <span class="n">print_function</span><span class="p">,</span> <span class="n">division</span>
<span class="kn">import</span> <span class="nn">os</span><span class="o">,</span> <span class="nn">glob</span>
<span class="kn">import</span> <span class="nn">os</span><span class="o">,</span> <span class="nn">glob</span><span class="o">,</span> <span class="nn">sys</span>
<span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
<span class="kn">import</span> <span class="nn">matplotlib.pyplot</span> <span class="k">as</span> <span class="nn">plt</span>
<span class="kn">from</span> <span class="nn">matplotlib.backends.backend_pdf</span> <span class="kn">import</span> <span class="n">PdfPages</span>
Expand All @@ -86,6 +87,8 @@ <h1>Source code for ForMoSA.plotting.plotting_class</h1><div class="highlight"><
<span class="kn">import</span> <span class="nn">pickle</span>
<span class="kn">from</span> <span class="nn">tqdm</span> <span class="kn">import</span> <span class="n">tqdm</span>

<span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">insert</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">abspath</span><span class="p">(</span><span class="s1">&#39;../&#39;</span><span class="p">))</span>

<span class="c1"># Import ForMoSA</span>
<span class="kn">from</span> <span class="nn">main_utilities</span> <span class="kn">import</span> <span class="n">GlobFile</span>
<span class="kn">from</span> <span class="nn">nested_sampling.nested_modif_spec</span> <span class="kn">import</span> <span class="n">modif_spec</span>
Expand Down
7 changes: 6 additions & 1 deletion docs/_build/html/_sources/atm_grids.rst.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
.. _atm_grids:

Atmospheric grids
=================
=================

.. toctree::
:maxdepth: 1

tutorials/exorem_info.ipynb
4 changes: 2 additions & 2 deletions docs/_build/html/_sources/demo.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ Download the grid you want to use by clicking over it's name. Ideally, save it i
* `ExoREM native <https://drive.google.com/file/d/1k9SQjHLnMCwmGOHtraRnhCgiZ1-4J3Wk/view?usp=share_link>`_ from `B. Charnay et al. 2018 <https://ui.adsabs.harvard.edu/abs/2018ApJ...854..172C/abstract>`_


Learn more at:
Learn more about:

.. toctree::
:maxdepth: 1

atm_grids
tutorials/exorem_info.ipynb



Expand Down
File renamed without changes.
Loading

0 comments on commit dc323e0

Please sign in to comment.