Skip to content

Commit

Permalink
Deploying to gh-pages from @ b9946d9 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
darioizzo committed Nov 1, 2023
1 parent 354be88 commit 27a6337
Show file tree
Hide file tree
Showing 45 changed files with 467 additions and 416 deletions.
50 changes: 29 additions & 21 deletions _sources/utilities/cubes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"from copy import deepcopy\n",
"import time\n",
"from collections import defaultdict\n",
"import itertools\n",
"\n",
"# sgp4 imports\n",
"import sgp4\n",
Expand Down Expand Up @@ -167,7 +168,8 @@
" a list containing lists of satelites idx occupying the same cube\n",
" \"\"\"\n",
" # init\n",
" retval = []\n",
" in_same_cube = []\n",
" pairs = []\n",
" cubes = defaultdict(list)\n",
"\n",
" # We compute the floored Cartesian coordinates identifying the bins.\n",
Expand All @@ -180,8 +182,11 @@
" # We find bins with more than one object\n",
" for key in cubes:\n",
" if len(cubes[key]) > 1:\n",
" retval.append(cubes[key])\n",
" return retval"
" in_same_cube.append(cubes[key])\n",
" # We compute all the combinations between the pairs\n",
" for group in in_same_cube:\n",
" pairs.extend(((list(itertools.combinations(group, 2)))))\n",
" return pairs"
]
},
{
Expand All @@ -205,7 +210,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"33.1 ms ± 178 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
"28.1 ms ± 4.92 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
]
}
],
Expand Down Expand Up @@ -277,7 +282,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Time to perform all numerical integrations: 19.566089153289795\n"
"Time to perform all numerical integrations: 7.937011003494263\n"
]
}
],
Expand Down Expand Up @@ -309,19 +314,22 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Collision! pair: [14084, 14352], years: 0.6844626967830253\n",
"Collision! pair: [8170, 13942], years: 1.7659137577002053\n",
"Collision! pair: [12625, 18100], years: 1.943874058863792\n",
"Collision! pair: [13644, 15509], years: 2.6694045174537986\n",
"Collision! pair: [13059, 15181], years: 6.1738535249828885\n",
"Collision! pair: [13322, 14410], years: 9.267624914442163\n",
"Collision! pair: [1012, 11892], years: 10.581793292265571\n",
"Collision! pair: [4762, 4984], years: 16.632443531827516\n",
"Collision! pair: [1671, 5447], years: 16.79671457905544\n",
"Time elasped: 67.86483788490295\n",
"Decayed objects: 4990\n",
"Number of collisions: 9\n",
"Expected number of collisions: 11.538803066221181\n"
"Collision! pair: (15977, 16424), years: 0.8213552361396304\n",
"Collision! pair: (15935, 16388), years: 1.273100616016427\n",
"Collision! pair: (1041, 6320), years: 1.4921286789869952\n",
"Collision! pair: (13484, 13591), years: 3.1074606433949348\n",
"Collision! pair: (13689, 13950), years: 6.365503080082136\n",
"Collision! pair: (14107, 15279), years: 10.704996577686517\n",
"Collision! pair: (3897, 15176), years: 11.567419575633128\n",
"Collision! pair: (10109, 11757), years: 12.320328542094456\n",
"Collision! pair: (12350, 13019), years: 13.566050650239562\n",
"Collision! pair: (4910, 12250), years: 14.099931553730322\n",
"Collision! pair: (13633, 14012), years: 15.824777549623546\n",
"Collision! pair: (2869, 3364), years: 16.892539356605067\n",
"Time elasped: 51.43294858932495\n",
"Decayed objects: 4992\n",
"Number of collisions: 12\n",
"Expected number of collisions: 13.336892648579166\n"
]
}
],
Expand All @@ -338,11 +346,11 @@
" undecayed = undecayed - decayed\n",
" undecayed_l = np.array([j for j in undecayed])\n",
" # We detect all satellites couples in the same cube of Lcube km size\n",
" collision = cubes(r_sgp4[undecayed_l,i,:], cube_dimension = Lcube)\n",
" pairs = cubes(r_sgp4[undecayed_l,i,:], cube_dimension = Lcube)\n",
" #kdt = KDTree(r[undecayed_l,i,:])\n",
" #collision = list(kdt.query_pairs(Lcube))\n",
" #print(collision)\n",
" for pair in collision:\n",
" for pair in pairs:\n",
" # we get the indexes in r,v\n",
" idx1 = undecayed_l[pair[0]]\n",
" idx2 = undecayed_l[pair[1]]\n",
Expand Down Expand Up @@ -404,7 +412,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.8 | packaged by conda-forge | (main, Nov 22 2022, 08:26:04) [GCC 10.4.0]"
"version": "3.11.6"
},
"vscode": {
"interpreter": {
Expand Down
2 changes: 1 addition & 1 deletion _static/documentation_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var DOCUMENTATION_OPTIONS = {
LINK_SUFFIX: '.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '',
NAVIGATION_WITH_KEYS: true,
NAVIGATION_WITH_KEYS: false,
SHOW_SEARCH_SUMMARY: true,
ENABLE_SEARCH_SHORTCUTS: true,
};
2 changes: 1 addition & 1 deletion _static/scripts/bootstrap.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions _static/scripts/bootstrap.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Bootstrap v5.2.3 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Bootstrap v5.3.2 (https://getbootstrap.com/)
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
2 changes: 1 addition & 1 deletion _static/scripts/bootstrap.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _static/scripts/pydata-sphinx-theme.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _static/scripts/pydata-sphinx-theme.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions _static/styles/bootstrap.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions _static/styles/bootstrap.css.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion _static/styles/pydata-sphinx-theme.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions _static/styles/pydata-sphinx-theme.css.map

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions _static/webpack-macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@
-->
{# Load FontAwesome icons #}
{% macro head_pre_icons() %}
<link href="{{ pathto('_static/vendor/fontawesome/6.1.2/css/all.min.css', 1) }}?digest=ac02cc09edc035673794" rel="stylesheet" />
<link href="{{ pathto('_static/vendor/fontawesome/6.1.2/css/all.min.css', 1) }}?digest=365ca57ee442770a23c6" rel="stylesheet" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="{{ pathto('_static/vendor/fontawesome/6.1.2/webfonts/fa-solid-900.woff2', 1) }}" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="{{ pathto('_static/vendor/fontawesome/6.1.2/webfonts/fa-brands-400.woff2', 1) }}" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="{{ pathto('_static/vendor/fontawesome/6.1.2/webfonts/fa-regular-400.woff2', 1) }}" />
{% endmacro %}

{% macro head_pre_assets() %}
<!-- Loaded before other Sphinx assets -->
<link href="{{ pathto('_static/styles/theme.css', 1) }}?digest=ac02cc09edc035673794" rel="stylesheet" />
<link href="{{ pathto('_static/styles/bootstrap.css', 1) }}?digest=ac02cc09edc035673794" rel="stylesheet" />
<link href="{{ pathto('_static/styles/pydata-sphinx-theme.css', 1) }}?digest=ac02cc09edc035673794" rel="stylesheet" />
<link href="{{ pathto('_static/styles/theme.css', 1) }}?digest=365ca57ee442770a23c6" rel="stylesheet" />
<link href="{{ pathto('_static/styles/bootstrap.css', 1) }}?digest=365ca57ee442770a23c6" rel="stylesheet" />
<link href="{{ pathto('_static/styles/pydata-sphinx-theme.css', 1) }}?digest=365ca57ee442770a23c6" rel="stylesheet" />
{% endmacro %}

{% macro head_js_preload() %}
<!-- Pre-loaded scripts that we'll load fully later -->
<link rel="preload" as="script" href="{{ pathto('_static/scripts/bootstrap.js', 1) }}?digest=ac02cc09edc035673794" />
<link rel="preload" as="script" href="{{ pathto('_static/scripts/pydata-sphinx-theme.js', 1) }}?digest=ac02cc09edc035673794" />
<script src="{{ pathto('_static/vendor/fontawesome/6.1.2/js/all.min.js', 1) }}?digest=ac02cc09edc035673794"></script>
<link rel="preload" as="script" href="{{ pathto('_static/scripts/bootstrap.js', 1) }}?digest=365ca57ee442770a23c6" />
<link rel="preload" as="script" href="{{ pathto('_static/scripts/pydata-sphinx-theme.js', 1) }}?digest=365ca57ee442770a23c6" />
<script src="{{ pathto('_static/vendor/fontawesome/6.1.2/js/all.min.js', 1) }}?digest=365ca57ee442770a23c6"></script>
{% endmacro %}

{% macro body_post() %}
<!-- Scripts loaded after <body> so the DOM is not blocked -->
<script src="{{ pathto('_static/scripts/bootstrap.js', 1) }}?digest=ac02cc09edc035673794"></script>
<script src="{{ pathto('_static/scripts/pydata-sphinx-theme.js', 1) }}?digest=ac02cc09edc035673794"></script>
<script src="{{ pathto('_static/scripts/bootstrap.js', 1) }}?digest=365ca57ee442770a23c6"></script>
<script src="{{ pathto('_static/scripts/pydata-sphinx-theme.js', 1) }}?digest=365ca57ee442770a23c6"></script>
{% endmacro %}
25 changes: 13 additions & 12 deletions api_reference.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
</script>

<!-- Loaded before other Sphinx assets -->
<link href="_static/styles/theme.css?digest=ac02cc09edc035673794" rel="stylesheet" />
<link href="_static/styles/bootstrap.css?digest=ac02cc09edc035673794" rel="stylesheet" />
<link href="_static/styles/pydata-sphinx-theme.css?digest=ac02cc09edc035673794" rel="stylesheet" />
<link href="_static/styles/theme.css?digest=365ca57ee442770a23c6" rel="stylesheet" />
<link href="_static/styles/bootstrap.css?digest=365ca57ee442770a23c6" rel="stylesheet" />
<link href="_static/styles/pydata-sphinx-theme.css?digest=365ca57ee442770a23c6" rel="stylesheet" />


<link href="_static/vendor/fontawesome/6.1.2/css/all.min.css?digest=ac02cc09edc035673794" rel="stylesheet" />
<link href="_static/vendor/fontawesome/6.1.2/css/all.min.css?digest=365ca57ee442770a23c6" rel="stylesheet" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.1.2/webfonts/fa-solid-900.woff2" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.1.2/webfonts/fa-brands-400.woff2" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.1.2/webfonts/fa-regular-400.woff2" />
Expand All @@ -35,9 +35,9 @@
<link rel="stylesheet" type="text/css" href="_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css" />

<!-- Pre-loaded scripts that we'll load fully later -->
<link rel="preload" as="script" href="_static/scripts/bootstrap.js?digest=ac02cc09edc035673794" />
<link rel="preload" as="script" href="_static/scripts/pydata-sphinx-theme.js?digest=ac02cc09edc035673794" />
<script src="_static/vendor/fontawesome/6.1.2/js/all.min.js?digest=ac02cc09edc035673794"></script>
<link rel="preload" as="script" href="_static/scripts/bootstrap.js?digest=365ca57ee442770a23c6" />
<link rel="preload" as="script" href="_static/scripts/pydata-sphinx-theme.js?digest=365ca57ee442770a23c6" />
<script src="_static/vendor/fontawesome/6.1.2/js/all.min.js?digest=365ca57ee442770a23c6"></script>

<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
<script src="_static/jquery.js"></script>
Expand Down Expand Up @@ -131,13 +131,14 @@









<img src="_static/logo.png" class="logo__image only-light" alt="Logo image"/>
<script>document.write(`<img src="_static/logo.png" class="logo__image only-dark" alt="Logo image"/>`);</script>
<img src="_static/logo.png" class="logo__image only-light" alt="cascade 0.1.7 documentation - Home"/>
<script>document.write(`<img src="_static/logo.png" class="logo__image only-dark" alt="cascade 0.1.7 documentation - Home"/>`);</script>


</a></div>
Expand Down Expand Up @@ -401,7 +402,7 @@ <h1>API reference</h1>
<dd class="field-odd"><p>0.1.7</p>
</dd>
<dt class="field-even">Date<span class="colon">:</span></dt>
<dd class="field-even"><p>Oct 07, 2023</p>
<dd class="field-even"><p>Nov 01, 2023</p>
</dd>
</dl>
<div class="toctree-wrapper compound">
Expand Down Expand Up @@ -490,8 +491,8 @@ <h1>API reference</h1>
</div>

<!-- Scripts loaded after <body> so the DOM is not blocked -->
<script src="_static/scripts/bootstrap.js?digest=ac02cc09edc035673794"></script>
<script src="_static/scripts/pydata-sphinx-theme.js?digest=ac02cc09edc035673794"></script>
<script src="_static/scripts/bootstrap.js?digest=365ca57ee442770a23c6"></script>
<script src="_static/scripts/pydata-sphinx-theme.js?digest=365ca57ee442770a23c6"></script>

<footer class="bd-footer">
</footer>
Expand Down
23 changes: 12 additions & 11 deletions collision_algorithm.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
</script>

<!-- Loaded before other Sphinx assets -->
<link href="_static/styles/theme.css?digest=ac02cc09edc035673794" rel="stylesheet" />
<link href="_static/styles/bootstrap.css?digest=ac02cc09edc035673794" rel="stylesheet" />
<link href="_static/styles/pydata-sphinx-theme.css?digest=ac02cc09edc035673794" rel="stylesheet" />
<link href="_static/styles/theme.css?digest=365ca57ee442770a23c6" rel="stylesheet" />
<link href="_static/styles/bootstrap.css?digest=365ca57ee442770a23c6" rel="stylesheet" />
<link href="_static/styles/pydata-sphinx-theme.css?digest=365ca57ee442770a23c6" rel="stylesheet" />


<link href="_static/vendor/fontawesome/6.1.2/css/all.min.css?digest=ac02cc09edc035673794" rel="stylesheet" />
<link href="_static/vendor/fontawesome/6.1.2/css/all.min.css?digest=365ca57ee442770a23c6" rel="stylesheet" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.1.2/webfonts/fa-solid-900.woff2" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.1.2/webfonts/fa-brands-400.woff2" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.1.2/webfonts/fa-regular-400.woff2" />
Expand All @@ -35,9 +35,9 @@
<link rel="stylesheet" type="text/css" href="_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css" />

<!-- Pre-loaded scripts that we'll load fully later -->
<link rel="preload" as="script" href="_static/scripts/bootstrap.js?digest=ac02cc09edc035673794" />
<link rel="preload" as="script" href="_static/scripts/pydata-sphinx-theme.js?digest=ac02cc09edc035673794" />
<script src="_static/vendor/fontawesome/6.1.2/js/all.min.js?digest=ac02cc09edc035673794"></script>
<link rel="preload" as="script" href="_static/scripts/bootstrap.js?digest=365ca57ee442770a23c6" />
<link rel="preload" as="script" href="_static/scripts/pydata-sphinx-theme.js?digest=365ca57ee442770a23c6" />
<script src="_static/vendor/fontawesome/6.1.2/js/all.min.js?digest=365ca57ee442770a23c6"></script>

<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
<script src="_static/jquery.js"></script>
Expand Down Expand Up @@ -133,13 +133,14 @@









<img src="_static/logo.png" class="logo__image only-light" alt="Logo image"/>
<script>document.write(`<img src="_static/logo.png" class="logo__image only-dark" alt="Logo image"/>`);</script>
<img src="_static/logo.png" class="logo__image only-light" alt="cascade 0.1.7 documentation - Home"/>
<script>document.write(`<img src="_static/logo.png" class="logo__image only-dark" alt="cascade 0.1.7 documentation - Home"/>`);</script>


</a></div>
Expand Down Expand Up @@ -580,8 +581,8 @@ <h1>Parallelism<a class="headerlink" href="#parallelism" title="Permalink to thi
</div>

<!-- Scripts loaded after <body> so the DOM is not blocked -->
<script src="_static/scripts/bootstrap.js?digest=ac02cc09edc035673794"></script>
<script src="_static/scripts/pydata-sphinx-theme.js?digest=ac02cc09edc035673794"></script>
<script src="_static/scripts/bootstrap.js?digest=365ca57ee442770a23c6"></script>
<script src="_static/scripts/pydata-sphinx-theme.js?digest=365ca57ee442770a23c6"></script>

<footer class="bd-footer">
</footer>
Expand Down
23 changes: 12 additions & 11 deletions examples/20yearsofLEO_coll.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
</script>

<!-- Loaded before other Sphinx assets -->
<link href="../_static/styles/theme.css?digest=ac02cc09edc035673794" rel="stylesheet" />
<link href="../_static/styles/bootstrap.css?digest=ac02cc09edc035673794" rel="stylesheet" />
<link href="../_static/styles/pydata-sphinx-theme.css?digest=ac02cc09edc035673794" rel="stylesheet" />
<link href="../_static/styles/theme.css?digest=365ca57ee442770a23c6" rel="stylesheet" />
<link href="../_static/styles/bootstrap.css?digest=365ca57ee442770a23c6" rel="stylesheet" />
<link href="../_static/styles/pydata-sphinx-theme.css?digest=365ca57ee442770a23c6" rel="stylesheet" />


<link href="../_static/vendor/fontawesome/6.1.2/css/all.min.css?digest=ac02cc09edc035673794" rel="stylesheet" />
<link href="../_static/vendor/fontawesome/6.1.2/css/all.min.css?digest=365ca57ee442770a23c6" rel="stylesheet" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="../_static/vendor/fontawesome/6.1.2/webfonts/fa-solid-900.woff2" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="../_static/vendor/fontawesome/6.1.2/webfonts/fa-brands-400.woff2" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="../_static/vendor/fontawesome/6.1.2/webfonts/fa-regular-400.woff2" />
Expand All @@ -35,9 +35,9 @@
<link rel="stylesheet" type="text/css" href="../_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css" />

<!-- Pre-loaded scripts that we'll load fully later -->
<link rel="preload" as="script" href="../_static/scripts/bootstrap.js?digest=ac02cc09edc035673794" />
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=ac02cc09edc035673794" />
<script src="../_static/vendor/fontawesome/6.1.2/js/all.min.js?digest=ac02cc09edc035673794"></script>
<link rel="preload" as="script" href="../_static/scripts/bootstrap.js?digest=365ca57ee442770a23c6" />
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=365ca57ee442770a23c6" />
<script src="../_static/vendor/fontawesome/6.1.2/js/all.min.js?digest=365ca57ee442770a23c6"></script>

<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
<script src="../_static/jquery.js"></script>
Expand Down Expand Up @@ -133,13 +133,14 @@









<img src="../_static/logo.png" class="logo__image only-light" alt="Logo image"/>
<script>document.write(`<img src="../_static/logo.png" class="logo__image only-dark" alt="Logo image"/>`);</script>
<img src="../_static/logo.png" class="logo__image only-light" alt="cascade 0.1.7 documentation - Home"/>
<script>document.write(`<img src="../_static/logo.png" class="logo__image only-dark" alt="cascade 0.1.7 documentation - Home"/>`);</script>


</a></div>
Expand Down Expand Up @@ -888,8 +889,8 @@ <h2>Running the simulation<a class="headerlink" href="#running-the-simulation" t
</div>

<!-- Scripts loaded after <body> so the DOM is not blocked -->
<script src="../_static/scripts/bootstrap.js?digest=ac02cc09edc035673794"></script>
<script src="../_static/scripts/pydata-sphinx-theme.js?digest=ac02cc09edc035673794"></script>
<script src="../_static/scripts/bootstrap.js?digest=365ca57ee442770a23c6"></script>
<script src="../_static/scripts/pydata-sphinx-theme.js?digest=365ca57ee442770a23c6"></script>

<footer class="bd-footer">
</footer>
Expand Down
Loading

0 comments on commit 27a6337

Please sign in to comment.