Skip to content

Commit

Permalink
First public version
Browse files Browse the repository at this point in the history
  • Loading branch information
javicarron committed Sep 14, 2022
1 parent 5d8c546 commit 92c1095
Show file tree
Hide file tree
Showing 11 changed files with 150 additions and 32 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

.ipynb_checkpoints/*

pynkowski/__pycache__/
pynkowski/data/__pycache__/
pynkowski/theory/__pycache__/
pynkowski/data/__pycache__/__init__.cpython-39.pyc
pynkowski/pynkowski.egg-info/
sphinx/
dist/
.ipynb_checkpoints/
Pynkowski_test.ipynb

*.kate-swp
*.pyc
80 changes: 51 additions & 29 deletions docs/pynkowski.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ <h2>Contents</h2>
<li><a href="#welcome-to-pynkowskis-documentation">Welcome to Pynkowski's documentation!</a>
<ul>
<li><a href="#installation">Installation</a></li>
<li><a href="#documentation">Documentation</a></li>
<li><a href="#example-notebooks">Example notebooks</a></li>
<li><a href="#authors">Authors</a></li>
</ul></li>
</ul>

Expand Down Expand Up @@ -90,6 +92,8 @@ <h1 class="modulename">

<p>...and more to come, feel free to contact us (by <a href="mailto:javier.carron@roma2.infn.it">email</a> or opening an issue) to implement more theoretical expectations.</p>

<p>The repository can be found on <a href="https://github.com/javicarron/pynkowski">https://github.com/javicarron/pynkowski</a>.</p>

<h2 id="installation">Installation</h2>

<p>This package can be installed with: </p>
Expand All @@ -106,12 +110,20 @@ <h2 id="installation">Installation</h2>
<li><a href="https://github.com/tqdm/tqdm">tqdm</a> (optional, notebook only)</li>
</ul>

<h2 id="documentation">Documentation</h2>

<p>The documentation can be found on <a href="https://javicarron.github.io/pynkowski&quot;&gt;https://javicarron.github.io/pynkowski](https://javicarron.github.io/pynkowski&lt;/a&gt;"><a href="https://javicarron.github.io/pynkowski</a></p>
<h2 id="example-notebooks">Example notebooks</h2>

<ul>
<li>Get the Minkowski Functionals of a CMB temperature $T$ map and compare with theory.</li>
<li>Get the Minkowski Functionals of a CMB polarization $P^2=Q^2+U^2$ map and compare with theory.</li>
</ul>

<h2 id="authors">Authors</h2>

<p>This package has been developed by <a href="https:&lt;a href=&quot;www.javiercarron.com&quot;&gt;www.javiercarron.com&lt;/a&gt;">Javier Carrón Duque</a> and Alessandro Carones.</p>
</div>

<input id="pynkowski-view-source" class="view-source-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
Expand All @@ -134,38 +146,48 @@ <h2 id="example-notebooks">Example notebooks</h2>
</span><span id="L-14"><a href="#L-14"><span class="linenos">14</span></a>
</span><span id="L-15"><a href="#L-15"><span class="linenos">15</span></a><span class="sd">...and more to come, feel free to contact us (by [email](mailto:javier.carron@roma2.infn.it) or opening an issue) to implement more theoretical expectations.</span>
</span><span id="L-16"><a href="#L-16"><span class="linenos">16</span></a>
</span><span id="L-17"><a href="#L-17"><span class="linenos">17</span></a><span class="sd">## Installation</span>
</span><span id="L-17"><a href="#L-17"><span class="linenos">17</span></a><span class="sd">The repository can be found on [https://github.com/javicarron/pynkowski](https://github.com/javicarron/pynkowski).</span>
</span><span id="L-18"><a href="#L-18"><span class="linenos">18</span></a>
</span><span id="L-19"><a href="#L-19"><span class="linenos">19</span></a><span class="sd">This package can be installed with: </span>
</span><span id="L-20"><a href="#L-20"><span class="linenos">20</span></a><span class="sd">```</span>
</span><span id="L-21"><a href="#L-21"><span class="linenos">21</span></a><span class="sd">pip install pynkowski</span>
</span><span id="L-19"><a href="#L-19"><span class="linenos">19</span></a><span class="sd">## Installation</span>
</span><span id="L-20"><a href="#L-20"><span class="linenos">20</span></a>
</span><span id="L-21"><a href="#L-21"><span class="linenos">21</span></a><span class="sd">This package can be installed with: </span>
</span><span id="L-22"><a href="#L-22"><span class="linenos">22</span></a><span class="sd">```</span>
</span><span id="L-23"><a href="#L-23"><span class="linenos">23</span></a>
</span><span id="L-24"><a href="#L-24"><span class="linenos">24</span></a><span class="sd">The dependencies are:</span>
</span><span id="L-25"><a href="#L-25"><span class="linenos">25</span></a><span class="sd">- [numpy](https://numpy.org/)</span>
</span><span id="L-26"><a href="#L-26"><span class="linenos">26</span></a><span class="sd">- [scipy](https://scipy.org/)</span>
</span><span id="L-27"><a href="#L-27"><span class="linenos">27</span></a><span class="sd">- [healpy](https://healpy.readthedocs.io/)</span>
</span><span id="L-28"><a href="#L-28"><span class="linenos">28</span></a><span class="sd">- [tqdm](https://github.com/tqdm/tqdm) (optional, notebook only)</span>
</span><span id="L-29"><a href="#L-29"><span class="linenos">29</span></a>
</span><span id="L-30"><a href="#L-30"><span class="linenos">30</span></a>
</span><span id="L-31"><a href="#L-31"><span class="linenos">31</span></a><span class="sd">## Example notebooks</span>
</span><span id="L-32"><a href="#L-32"><span class="linenos">32</span></a>
</span><span id="L-33"><a href="#L-33"><span class="linenos">33</span></a><span class="sd">- Get the Minkowski Functionals of a CMB temperature $T$ map and compare with theory.</span>
</span><span id="L-34"><a href="#L-34"><span class="linenos">34</span></a><span class="sd">- Get the Minkowski Functionals of a CMB polarization $P^2=Q^2+U^2$ map and compare with theory.</span>
</span><span id="L-35"><a href="#L-35"><span class="linenos">35</span></a><span class="sd">&#39;&#39;&#39;</span>
</span><span id="L-36"><a href="#L-36"><span class="linenos">36</span></a>
</span><span id="L-37"><a href="#L-37"><span class="linenos">37</span></a><span class="kn">from</span> <span class="nn">.data</span> <span class="kn">import</span> <span class="n">Scalar</span>
</span><span id="L-38"><a href="#L-38"><span class="linenos">38</span></a>
</span><span id="L-39"><a href="#L-39"><span class="linenos">39</span></a><span class="kn">from</span> <span class="nn">.theory</span> <span class="kn">import</span> <span class="p">(</span><span class="n">get_μ</span><span class="p">,</span>
</span><span id="L-40"><a href="#L-40"><span class="linenos">40</span></a> <span class="n">TheoryTemperature</span><span class="p">,</span>
</span><span id="L-41"><a href="#L-41"><span class="linenos">41</span></a> <span class="n">TheoryP2</span><span class="p">)</span>
</span><span id="L-42"><a href="#L-42"><span class="linenos">42</span></a>
</span><span id="L-43"><a href="#L-43"><span class="linenos">43</span></a><span class="kn">from</span> <span class="nn">.__version</span> <span class="kn">import</span> <span class="n">__version__</span>
</span><span id="L-44"><a href="#L-44"><span class="linenos">44</span></a>
</span><span id="L-45"><a href="#L-45"><span class="linenos">45</span></a>
</span><span id="L-23"><a href="#L-23"><span class="linenos">23</span></a><span class="sd">pip install pynkowski</span>
</span><span id="L-24"><a href="#L-24"><span class="linenos">24</span></a><span class="sd">```</span>
</span><span id="L-25"><a href="#L-25"><span class="linenos">25</span></a>
</span><span id="L-26"><a href="#L-26"><span class="linenos">26</span></a><span class="sd">The dependencies are:</span>
</span><span id="L-27"><a href="#L-27"><span class="linenos">27</span></a><span class="sd">- [numpy](https://numpy.org/)</span>
</span><span id="L-28"><a href="#L-28"><span class="linenos">28</span></a><span class="sd">- [scipy](https://scipy.org/)</span>
</span><span id="L-29"><a href="#L-29"><span class="linenos">29</span></a><span class="sd">- [healpy](https://healpy.readthedocs.io/)</span>
</span><span id="L-30"><a href="#L-30"><span class="linenos">30</span></a><span class="sd">- [tqdm](https://github.com/tqdm/tqdm) (optional, notebook only)</span>
</span><span id="L-31"><a href="#L-31"><span class="linenos">31</span></a>
</span><span id="L-32"><a href="#L-32"><span class="linenos">32</span></a><span class="sd">## Documentation</span>
</span><span id="L-33"><a href="#L-33"><span class="linenos">33</span></a>
</span><span id="L-34"><a href="#L-34"><span class="linenos">34</span></a><span class="sd">The documentation can be found on [https://javicarron.github.io/pynkowski](https://javicarron.github.io/pynkowski)</span>
</span><span id="L-35"><a href="#L-35"><span class="linenos">35</span></a>
</span><span id="L-36"><a href="#L-36"><span class="linenos">36</span></a><span class="sd">## Example notebooks</span>
</span><span id="L-37"><a href="#L-37"><span class="linenos">37</span></a>
</span><span id="L-38"><a href="#L-38"><span class="linenos">38</span></a><span class="sd">- Get the Minkowski Functionals of a CMB temperature $T$ map and compare with theory.</span>
</span><span id="L-39"><a href="#L-39"><span class="linenos">39</span></a><span class="sd">- Get the Minkowski Functionals of a CMB polarization $P^2=Q^2+U^2$ map and compare with theory.</span>
</span><span id="L-40"><a href="#L-40"><span class="linenos">40</span></a>
</span><span id="L-41"><a href="#L-41"><span class="linenos">41</span></a>
</span><span id="L-42"><a href="#L-42"><span class="linenos">42</span></a><span class="sd">## Authors</span>
</span><span id="L-43"><a href="#L-43"><span class="linenos">43</span></a>
</span><span id="L-44"><a href="#L-44"><span class="linenos">44</span></a><span class="sd">This package has been developed by [Javier Carrón Duque](https:www.javiercarron.com) and Alessandro Carones.</span>
</span><span id="L-45"><a href="#L-45"><span class="linenos">45</span></a><span class="sd">&#39;&#39;&#39;</span>
</span><span id="L-46"><a href="#L-46"><span class="linenos">46</span></a>
</span><span id="L-47"><a href="#L-47"><span class="linenos">47</span></a>
</span><span id="L-48"><a href="#L-48"><span class="linenos">48</span></a><span class="n">__docformat__</span> <span class="o">=</span> <span class="s2">&quot;numpy&quot;</span>
</span><span id="L-47"><a href="#L-47"><span class="linenos">47</span></a><span class="kn">from</span> <span class="nn">.data</span> <span class="kn">import</span> <span class="n">Scalar</span>
</span><span id="L-48"><a href="#L-48"><span class="linenos">48</span></a>
</span><span id="L-49"><a href="#L-49"><span class="linenos">49</span></a><span class="kn">from</span> <span class="nn">.theory</span> <span class="kn">import</span> <span class="p">(</span><span class="n">get_μ</span><span class="p">,</span>
</span><span id="L-50"><a href="#L-50"><span class="linenos">50</span></a> <span class="n">TheoryTemperature</span><span class="p">,</span>
</span><span id="L-51"><a href="#L-51"><span class="linenos">51</span></a> <span class="n">TheoryP2</span><span class="p">)</span>
</span><span id="L-52"><a href="#L-52"><span class="linenos">52</span></a>
</span><span id="L-53"><a href="#L-53"><span class="linenos">53</span></a><span class="kn">from</span> <span class="nn">.__version</span> <span class="kn">import</span> <span class="n">__version__</span>
</span><span id="L-54"><a href="#L-54"><span class="linenos">54</span></a>
</span><span id="L-55"><a href="#L-55"><span class="linenos">55</span></a>
</span><span id="L-56"><a href="#L-56"><span class="linenos">56</span></a>
</span><span id="L-57"><a href="#L-57"><span class="linenos">57</span></a>
</span><span id="L-58"><a href="#L-58"><span class="linenos">58</span></a><span class="n">__docformat__</span> <span class="o">=</span> <span class="s2">&quot;numpy&quot;</span>
</span></pre></div>


Expand Down
2 changes: 1 addition & 1 deletion docs/pynkowski/__version.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h1 class="modulename">

<label class="view-source-button" for="__version-view-source"><span>View Source</span></label>

<div class="pdoc-code codehilite"><pre><span></span><span id="L-1"><a href="#L-1"><span class="linenos">1</span></a><span class="n">__version__</span><span class="o">=</span><span class="s1">&#39;0.2.0&#39;</span>
<div class="pdoc-code codehilite"><pre><span></span><span id="L-1"><a href="#L-1"><span class="linenos">1</span></a><span class="n">__version__</span><span class="o">=</span><span class="s1">&#39;0.2.1&#39;</span>
</span><span id="L-2"><a href="#L-2"><span class="linenos">2</span></a>
</span></pre></div>

Expand Down
2 changes: 1 addition & 1 deletion docs/search.js

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions pynkowski.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Metadata-Version: 2.1
Name: pynkowski
Version: 0.2.1
Summary: A Python package to compute Minkowski Functionals of input fields, as well as their expected values in the case of Gaussian isotropic fields.
Home-page: https://github.com/javicarron/pynkowski
Author: Carrón Duque, Javier and Carones, Alessando
Author-email: javier.carron@roma2.infn.it
License: GNU General Public License v3.0
Keywords: minkowski-functionals,non-gaussian,spherical,anisotropy,healpy,polarization,minkowski,cmb,healpix,curvature,cosmology,gaussian,maps,topology
Platform: UNKNOWN
License-File: LICENSE

UNKNOWN

38 changes: 38 additions & 0 deletions pynkowski.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
LICENSE
README.md
logo.png
setup.py
docs/index.html
docs/pynkowski.html
docs/search.js
docs/pynkowski/__version.html
docs/pynkowski/data.html
docs/pynkowski/theory.html
docs/pynkowski/data/bak_data.html
docs/pynkowski/data/scalar.html
docs/pynkowski/data/utils.html
docs/pynkowski/theory/bak_theory.html
docs/pynkowski/theory/p2.html
docs/pynkowski/theory/temperature.html
docs/pynkowski/theory/utils.html
pynkowski/__init__.py
pynkowski/__version.py
pynkowski.egg-info/PKG-INFO
pynkowski.egg-info/SOURCES.txt
pynkowski.egg-info/dependency_links.txt
pynkowski.egg-info/requires.txt
pynkowski.egg-info/top_level.txt
pynkowski/data/__init__.py
pynkowski/data/scalar.py
pynkowski/data/utils.py
pynkowski/data/__pycache__/__init__.cpython-39.pyc
pynkowski/data/__pycache__/scalar.cpython-39.pyc
pynkowski/data/__pycache__/utils.cpython-39.pyc
pynkowski/theory/__init__.py
pynkowski/theory/p2.py
pynkowski/theory/temperature.py
pynkowski/theory/utils.py
pynkowski/theory/__pycache__/__init__.cpython-39.pyc
pynkowski/theory/__pycache__/p2.cpython-39.pyc
pynkowski/theory/__pycache__/temperature.cpython-39.pyc
pynkowski/theory/__pycache__/utils.cpython-39.pyc
1 change: 1 addition & 0 deletions pynkowski.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

3 changes: 3 additions & 0 deletions pynkowski.egg-info/requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
numpy
scipy
healpy
1 change: 1 addition & 0 deletions pynkowski.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pynkowski
2 changes: 1 addition & 1 deletion pynkowski/__version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__='0.2.0'
__version__='0.2.1'

24 changes: 24 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

from setuptools import setup, find_namespace_packages
from pynkowski.__version import __version__


setup(
name='pynkowski',
version=__version__,
description='A Python package to compute Minkowski Functionals of input fields, as well as their expected values in the case of Gaussian isotropic fields.',
license='GNU General Public License v3.0',
license_files=['LICENSE'],
author="Carrón Duque, Javier and Carones, Alessando",
author_email='javier.carron@roma2.infn.it',
packages=['pynkowski','pynkowski.data','pynkowski.theory'],
package_dir={"pynkowski": "pynkowski"},
url='https://github.com/javicarron/pynkowski',
keywords='minkowski-functionals,non-gaussian,spherical,anisotropy,healpy,polarization,minkowski,cmb,healpix,curvature,cosmology,gaussian,maps,topology',
install_requires=[
'numpy',
'scipy',
'healpy'
],

)

0 comments on commit 92c1095

Please sign in to comment.