radarx 0.1.dev2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- radarx-0.1.dev2/AUTHORS.rst +13 -0
- radarx-0.1.dev2/CONTRIBUTING.rst +137 -0
- radarx-0.1.dev2/HISTORY.rst +8 -0
- radarx-0.1.dev2/LICENSE +22 -0
- radarx-0.1.dev2/MANIFEST.in +11 -0
- radarx-0.1.dev2/PKG-INFO +30 -0
- radarx-0.1.dev2/README.md +1 -0
- radarx-0.1.dev2/README.rst +41 -0
- radarx-0.1.dev2/docs/Makefile +20 -0
- radarx-0.1.dev2/docs/authors.rst +1 -0
- radarx-0.1.dev2/docs/conf.py +253 -0
- radarx-0.1.dev2/docs/contributing.rst +1 -0
- radarx-0.1.dev2/docs/history.rst +1 -0
- radarx-0.1.dev2/docs/index.rst +20 -0
- radarx-0.1.dev2/docs/installation.rst +51 -0
- radarx-0.1.dev2/docs/make.bat +36 -0
- radarx-0.1.dev2/docs/readme.rst +1 -0
- radarx-0.1.dev2/docs/usage.rst +7 -0
- radarx-0.1.dev2/pyproject.toml +90 -0
- radarx-0.1.dev2/radarx/__init__.py +5 -0
- radarx-0.1.dev2/radarx/io/__init__.py +15 -0
- radarx-0.1.dev2/radarx/io/imd.py +645 -0
- radarx-0.1.dev2/radarx/radarx.py +1 -0
- radarx-0.1.dev2/radarx/version.py +16 -0
- radarx-0.1.dev2/radarx.egg-info/PKG-INFO +30 -0
- radarx-0.1.dev2/radarx.egg-info/SOURCES.txt +30 -0
- radarx-0.1.dev2/radarx.egg-info/dependency_links.txt +1 -0
- radarx-0.1.dev2/radarx.egg-info/requires.txt +6 -0
- radarx-0.1.dev2/radarx.egg-info/top_level.txt +1 -0
- radarx-0.1.dev2/setup.cfg +4 -0
- radarx-0.1.dev2/tests/__init__.py +1 -0
- radarx-0.1.dev2/tests/test_radarx.py +24 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
.. highlight:: shell
|
|
2
|
+
|
|
3
|
+
============
|
|
4
|
+
Contributing
|
|
5
|
+
============
|
|
6
|
+
|
|
7
|
+
Contributions are welcome, and they are greatly appreciated! Every little bit
|
|
8
|
+
helps, and credit will always be given.
|
|
9
|
+
|
|
10
|
+
You can contribute in many ways:
|
|
11
|
+
|
|
12
|
+
Types of Contributions
|
|
13
|
+
----------------------
|
|
14
|
+
|
|
15
|
+
Report Bugs
|
|
16
|
+
~~~~~~~~~~~
|
|
17
|
+
|
|
18
|
+
Report bugs at https://github.com/syedhamidali/radarx/issues.
|
|
19
|
+
|
|
20
|
+
If you are reporting a bug, please include:
|
|
21
|
+
|
|
22
|
+
* Your operating system name and version.
|
|
23
|
+
* Any details about your local setup that might be helpful in troubleshooting.
|
|
24
|
+
* Detailed steps to reproduce the bug.
|
|
25
|
+
|
|
26
|
+
Fix Bugs
|
|
27
|
+
~~~~~~~~
|
|
28
|
+
|
|
29
|
+
Look through the GitHub issues for bugs. Anything tagged with "bug" and "help
|
|
30
|
+
wanted" is open to whoever wants to implement it.
|
|
31
|
+
|
|
32
|
+
Implement Features
|
|
33
|
+
~~~~~~~~~~~~~~~~~~
|
|
34
|
+
|
|
35
|
+
Look through the GitHub issues for features. Anything tagged with "enhancement"
|
|
36
|
+
and "help wanted" is open to whoever wants to implement it.
|
|
37
|
+
|
|
38
|
+
Write Documentation
|
|
39
|
+
~~~~~~~~~~~~~~~~~~~
|
|
40
|
+
|
|
41
|
+
radarx could always use more documentation, whether as part of the
|
|
42
|
+
official radarx docs, in docstrings, or even on the web in blog posts,
|
|
43
|
+
articles, and such.
|
|
44
|
+
|
|
45
|
+
Submit Feedback
|
|
46
|
+
~~~~~~~~~~~~~~~
|
|
47
|
+
|
|
48
|
+
The best way to send feedback is to file an issue at https://github.com/syedhamidali/radarx/issues.
|
|
49
|
+
|
|
50
|
+
If you are proposing a feature:
|
|
51
|
+
|
|
52
|
+
* Explain in detail how it would work.
|
|
53
|
+
* Keep the scope as narrow as possible, to make it easier to implement.
|
|
54
|
+
* Remember that this is a volunteer-driven project, and that contributions
|
|
55
|
+
are welcome :)
|
|
56
|
+
|
|
57
|
+
Get Started!
|
|
58
|
+
------------
|
|
59
|
+
|
|
60
|
+
Ready to contribute? Here's how to set up `radarx` for local development.
|
|
61
|
+
|
|
62
|
+
1. Fork the `radarx` repo on GitHub.
|
|
63
|
+
2. Clone your fork locally::
|
|
64
|
+
|
|
65
|
+
$ git clone git@github.com:your_name_here/radarx.git
|
|
66
|
+
|
|
67
|
+
3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development::
|
|
68
|
+
|
|
69
|
+
$ mkvirtualenv radarx
|
|
70
|
+
$ cd radarx/
|
|
71
|
+
$ python setup.py develop
|
|
72
|
+
|
|
73
|
+
4. Create a branch for local development::
|
|
74
|
+
|
|
75
|
+
$ git checkout -b name-of-your-bugfix-or-feature
|
|
76
|
+
|
|
77
|
+
Now you can make your changes locally.
|
|
78
|
+
|
|
79
|
+
5. When you're done making changes, check that your changes pass flake8 and the
|
|
80
|
+
tests, including testing other Python versions with tox::
|
|
81
|
+
|
|
82
|
+
$ make lint
|
|
83
|
+
$ make test
|
|
84
|
+
Or
|
|
85
|
+
$ make test-all
|
|
86
|
+
|
|
87
|
+
To get flake8 and tox, just pip install them into your virtualenv.
|
|
88
|
+
|
|
89
|
+
6. Commit your changes and push your branch to GitHub::
|
|
90
|
+
|
|
91
|
+
$ git add .
|
|
92
|
+
$ git commit -m "Your detailed description of your changes."
|
|
93
|
+
$ git push origin name-of-your-bugfix-or-feature
|
|
94
|
+
|
|
95
|
+
7. Submit a pull request through the GitHub website.
|
|
96
|
+
|
|
97
|
+
Pull Request Guidelines
|
|
98
|
+
-----------------------
|
|
99
|
+
|
|
100
|
+
Before you submit a pull request, check that it meets these guidelines:
|
|
101
|
+
|
|
102
|
+
1. The pull request should include tests.
|
|
103
|
+
2. If the pull request adds functionality, the docs should be updated. Put
|
|
104
|
+
your new functionality into a function with a docstring, and add the
|
|
105
|
+
feature to the list in README.rst.
|
|
106
|
+
3. The pull request should work for Python 3.5, 3.6, 3.7 and 3.8, and for PyPy. Check
|
|
107
|
+
https://travis-ci.com/syedhamidali/radarx/pull_requests
|
|
108
|
+
and make sure that the tests pass for all supported Python versions.
|
|
109
|
+
|
|
110
|
+
Tips
|
|
111
|
+
----
|
|
112
|
+
|
|
113
|
+
To run a subset of tests::
|
|
114
|
+
|
|
115
|
+
$ pytest tests.test_radarx
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
Deploying
|
|
119
|
+
---------
|
|
120
|
+
|
|
121
|
+
A reminder for the maintainers on how to deploy.
|
|
122
|
+
Make sure all your changes are committed (including an entry in HISTORY.rst).
|
|
123
|
+
Then run::
|
|
124
|
+
|
|
125
|
+
$ bump2version patch # possible: major / minor / patch
|
|
126
|
+
$ git push
|
|
127
|
+
$ git push --tags
|
|
128
|
+
|
|
129
|
+
Travis will then deploy to PyPI if tests pass.
|
|
130
|
+
|
|
131
|
+
Code of Conduct
|
|
132
|
+
---------------
|
|
133
|
+
|
|
134
|
+
Please note that this project is released with a `Contributor Code of Conduct`_.
|
|
135
|
+
By participating in this project you agree to abide by its terms.
|
|
136
|
+
|
|
137
|
+
.. _`Contributor Code of Conduct`: CODE_OF_CONDUCT.rst
|
radarx-0.1.dev2/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024, Hamid Ali Syed
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
include AUTHORS.rst
|
|
2
|
+
include CONTRIBUTING.rst
|
|
3
|
+
include HISTORY.rst
|
|
4
|
+
include LICENSE
|
|
5
|
+
include README.rst
|
|
6
|
+
|
|
7
|
+
recursive-include tests *
|
|
8
|
+
recursive-exclude * __pycache__
|
|
9
|
+
recursive-exclude * *.py[co]
|
|
10
|
+
|
|
11
|
+
recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif
|
radarx-0.1.dev2/PKG-INFO
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: radarx
|
|
3
|
+
Version: 0.1.dev2
|
|
4
|
+
Summary: Xarray based radar toolkit
|
|
5
|
+
Author-email: Hamid Ali Syed <hamidsyed37@gmail.com>
|
|
6
|
+
Maintainer-email: Hamid Ali Syed <hamidsyed37@gmail.com>
|
|
7
|
+
License: MIT license
|
|
8
|
+
Project-URL: bugs, https://github.com/syedhamidali/radarx/issues
|
|
9
|
+
Project-URL: changelog, https://github.com/syedhamidali/radarx/blob/master/changelog.md
|
|
10
|
+
Project-URL: homepage, https://github.com/syedhamidali/radarx
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Intended Audience :: Education
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Natural Language :: English
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Topic :: Scientific/Engineering
|
|
23
|
+
Classifier: Topic :: Scientific/Engineering :: Atmospheric Science
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
License-File: AUTHORS.rst
|
|
26
|
+
Provides-Extra: dev
|
|
27
|
+
Requires-Dist: coverage; extra == "dev"
|
|
28
|
+
Requires-Dist: mypy; extra == "dev"
|
|
29
|
+
Requires-Dist: pytest; extra == "dev"
|
|
30
|
+
Requires-Dist: ruff; extra == "dev"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# RadarX
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
======
|
|
2
|
+
radarx
|
|
3
|
+
======
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
.. image:: https://img.shields.io/pypi/v/radarx.svg
|
|
7
|
+
:target: https://pypi.python.org/pypi/radarx
|
|
8
|
+
|
|
9
|
+
.. image:: https://img.shields.io/travis/syedhamidali/radarx.svg
|
|
10
|
+
:target: https://travis-ci.com/syedhamidali/radarx
|
|
11
|
+
|
|
12
|
+
.. image:: https://readthedocs.org/projects/radarx/badge/?version=latest
|
|
13
|
+
:target: https://radarx.readthedocs.io/en/latest/?version=latest
|
|
14
|
+
:alt: Documentation Status
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
.. image:: https://pyup.io/repos/github/syedhamidali/radarx/shield.svg
|
|
18
|
+
:target: https://pyup.io/repos/github/syedhamidali/radarx/
|
|
19
|
+
:alt: Updates
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
Xarray based radar toolkit
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
* Free software: MIT license
|
|
27
|
+
* Documentation: https://radarx.readthedocs.io.
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
Features
|
|
31
|
+
--------
|
|
32
|
+
|
|
33
|
+
* TODO
|
|
34
|
+
|
|
35
|
+
Credits
|
|
36
|
+
-------
|
|
37
|
+
|
|
38
|
+
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
|
|
39
|
+
|
|
40
|
+
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
|
|
41
|
+
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Minimal makefile for Sphinx documentation
|
|
2
|
+
#
|
|
3
|
+
|
|
4
|
+
# You can set these variables from the command line.
|
|
5
|
+
SPHINXOPTS =
|
|
6
|
+
SPHINXBUILD = python -msphinx
|
|
7
|
+
SPHINXPROJ = radarx
|
|
8
|
+
SOURCEDIR = .
|
|
9
|
+
BUILDDIR = _build
|
|
10
|
+
|
|
11
|
+
# Put it first so that "make" without argument is like "make help".
|
|
12
|
+
help:
|
|
13
|
+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
14
|
+
|
|
15
|
+
.PHONY: help Makefile
|
|
16
|
+
|
|
17
|
+
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
18
|
+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
19
|
+
%: Makefile
|
|
20
|
+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.. include:: ../AUTHORS.rst
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
#
|
|
3
|
+
# radarx documentation build configuration file, created by
|
|
4
|
+
# sphinx-quickstart.
|
|
5
|
+
#
|
|
6
|
+
import datetime as dt
|
|
7
|
+
import glob
|
|
8
|
+
import os
|
|
9
|
+
import subprocess
|
|
10
|
+
import sys
|
|
11
|
+
import warnings
|
|
12
|
+
from importlib.metadata import version
|
|
13
|
+
|
|
14
|
+
sys.path.insert(0, os.path.abspath(".."))
|
|
15
|
+
|
|
16
|
+
# check readthedocs
|
|
17
|
+
on_rtd = os.environ.get("READTHEDOCS") == "True"
|
|
18
|
+
|
|
19
|
+
# processing on readthedocs
|
|
20
|
+
if on_rtd:
|
|
21
|
+
# install radarx from checked out source
|
|
22
|
+
commit = subprocess.check_output(["git", "rev-parse", "HEAD"]).decode().strip()
|
|
23
|
+
print(f"Installing commit {commit}")
|
|
24
|
+
url = "https://github.com/syedhamidali/radarx.git"
|
|
25
|
+
subprocess.check_call(
|
|
26
|
+
["python", "-m", "pip", "install", "--no-deps", f"git+{url}@{commit}"]
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
# -- General configuration ---------------------------------------------------
|
|
30
|
+
|
|
31
|
+
extensions = [
|
|
32
|
+
"sphinx.ext.autodoc",
|
|
33
|
+
"sphinx.ext.autosummary",
|
|
34
|
+
"sphinx.ext.viewcode",
|
|
35
|
+
"sphinx.ext.coverage",
|
|
36
|
+
"sphinx.ext.extlinks",
|
|
37
|
+
"sphinx.ext.intersphinx",
|
|
38
|
+
"sphinx.ext.napoleon",
|
|
39
|
+
"sphinx.ext.mathjax",
|
|
40
|
+
"sphinx.ext.todo",
|
|
41
|
+
"myst_parser",
|
|
42
|
+
"sphinx_copybutton",
|
|
43
|
+
"sphinx_favicon",
|
|
44
|
+
"nbsphinx",
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
myst_enable_extensions = [
|
|
48
|
+
"substitution",
|
|
49
|
+
]
|
|
50
|
+
|
|
51
|
+
extlinks = {
|
|
52
|
+
"issue": ("https://github.com/syedhamidali/radarx/issues/%s", "GH %s"),
|
|
53
|
+
"pull": ("https://github.com/syedhamidali/radarx/pull/%s", "PR %s"),
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
mathjax_path = (
|
|
57
|
+
"https://cdn.mathjax.org/mathjax/latest/MathJax.js?" "config=TeX-AMS-MML_HTMLorMML"
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
intersphinx_mapping = {
|
|
61
|
+
"python": ("https://docs.python.org/3/", None),
|
|
62
|
+
"numpy": ("https://numpy.org/doc/stable/", None),
|
|
63
|
+
"xarray": ("https://docs.xarray.dev/en/stable/", None),
|
|
64
|
+
"datatree": ("https://xarray-datatree.readthedocs.io/en/latest/", None),
|
|
65
|
+
"pyproj": ("https://pyproj4.github.io/pyproj/stable/", None),
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
templates_path = ["_templates"]
|
|
69
|
+
|
|
70
|
+
source_suffix = [".rst", ".md"]
|
|
71
|
+
|
|
72
|
+
master_doc = "index"
|
|
73
|
+
|
|
74
|
+
project = "radarx"
|
|
75
|
+
copyright = "2022-2024, Hamid Ali Syed"
|
|
76
|
+
author = "Hamid Ali Syed"
|
|
77
|
+
|
|
78
|
+
# Get radarx version and modules
|
|
79
|
+
import radarx # noqa
|
|
80
|
+
|
|
81
|
+
modules = []
|
|
82
|
+
for k, v in radarx.__dict__.items():
|
|
83
|
+
if isinstance(v, types.ModuleType):
|
|
84
|
+
if k not in ["_warnings", "version"]:
|
|
85
|
+
modules.append(k)
|
|
86
|
+
file = open(f"{k}.rst", mode="w")
|
|
87
|
+
file.write(f".. automodule:: radarx.{k}\n")
|
|
88
|
+
file.close()
|
|
89
|
+
|
|
90
|
+
# Create Library reference rst-file
|
|
91
|
+
reference = """
|
|
92
|
+
Library Reference
|
|
93
|
+
=================
|
|
94
|
+
|
|
95
|
+
.. toctree::
|
|
96
|
+
:maxdepth: 4
|
|
97
|
+
"""
|
|
98
|
+
|
|
99
|
+
file = open("reference.rst", mode="w")
|
|
100
|
+
file.write(f"{reference}\n")
|
|
101
|
+
for mod in sorted(modules):
|
|
102
|
+
file.write(f" {mod}\n")
|
|
103
|
+
file.close()
|
|
104
|
+
|
|
105
|
+
rst_files = glob.glob("*.rst")
|
|
106
|
+
autosummary_generate = rst_files
|
|
107
|
+
autoclass_content = "both"
|
|
108
|
+
|
|
109
|
+
version = version("radarx")
|
|
110
|
+
release = version
|
|
111
|
+
|
|
112
|
+
myst_substitutions = {
|
|
113
|
+
"today": dt.datetime.utcnow().strftime("%Y-%m-%d"),
|
|
114
|
+
"release": release,
|
|
115
|
+
}
|
|
116
|
+
myst_heading_anchors = 3
|
|
117
|
+
|
|
118
|
+
language = "en"
|
|
119
|
+
|
|
120
|
+
exclude_patterns = [
|
|
121
|
+
"_build",
|
|
122
|
+
"Thumbs.db",
|
|
123
|
+
".DS_Store",
|
|
124
|
+
"links.rst",
|
|
125
|
+
"**.ipynb_checkpoints",
|
|
126
|
+
]
|
|
127
|
+
|
|
128
|
+
pygments_style = "sphinx"
|
|
129
|
+
|
|
130
|
+
todo_include_todos = False
|
|
131
|
+
|
|
132
|
+
copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
|
|
133
|
+
copybutton_prompt_is_regexp = True
|
|
134
|
+
|
|
135
|
+
# -- nbsphinx specifics --
|
|
136
|
+
nbsphinx_execute = "always"
|
|
137
|
+
subprocess.check_call(["cp", "-rp", "../examples/notebooks", "."])
|
|
138
|
+
|
|
139
|
+
# -- Options for HTML output -------------------------------------------
|
|
140
|
+
html_theme = "pydata_sphinx_theme"
|
|
141
|
+
# html_logo = "_static/radarx_logo.svg"
|
|
142
|
+
|
|
143
|
+
def _custom_edit_url(
|
|
144
|
+
github_user,
|
|
145
|
+
github_repo,
|
|
146
|
+
github_version,
|
|
147
|
+
docpath,
|
|
148
|
+
filename,
|
|
149
|
+
default_edit_page_url_template,
|
|
150
|
+
):
|
|
151
|
+
if filename.startswith("generated/"):
|
|
152
|
+
modpath = os.sep.join(
|
|
153
|
+
os.path.splitext(filename)[0].split("/")[-1].split(".")[:-1]
|
|
154
|
+
)
|
|
155
|
+
if modpath == "modules":
|
|
156
|
+
modpath = "radarx"
|
|
157
|
+
rel_modpath = os.path.join("..", modpath)
|
|
158
|
+
if os.path.isdir(rel_modpath):
|
|
159
|
+
docpath = modpath + "/"
|
|
160
|
+
filename = "__init__.py"
|
|
161
|
+
elif os.path.isfile(rel_modpath + ".py"):
|
|
162
|
+
docpath = os.path.dirname(modpath)
|
|
163
|
+
filename = os.path.basename(modpath) + ".py"
|
|
164
|
+
else:
|
|
165
|
+
warnings.warn(f"Not sure how to generate the API URL for: {filename}")
|
|
166
|
+
return default_edit_page_url_template.format(
|
|
167
|
+
github_user=github_user,
|
|
168
|
+
github_repo=github_repo,
|
|
169
|
+
github_version=github_version,
|
|
170
|
+
docpath=docpath,
|
|
171
|
+
filename=filename,
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
html_context = {
|
|
175
|
+
"github_url": "https://github.com",
|
|
176
|
+
"github_user": "syedhamidali",
|
|
177
|
+
"github_repo": "radarx",
|
|
178
|
+
"github_version": "main",
|
|
179
|
+
"doc_path": "docs",
|
|
180
|
+
"edit_page_url_template": "{{ radarx_custom_edit_url(github_user, github_repo, github_version, doc_path, file_name, default_edit_page_url_template) }}",
|
|
181
|
+
"default_edit_page_url_template": "https://github.com/{github_user}/{github_repo}/edit/{github_version}/{docpath}/{filename}",
|
|
182
|
+
"radarx_custom_edit_url": _custom_edit_url,
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
html_theme_options = {
|
|
186
|
+
"announcement": "<p>radarx is in an early stage of development, please report any issues <a href='https://github.com/syedhamidali/radarx/issues'>here!</a></p>",
|
|
187
|
+
"github_url": "https://github.com/syedhamidali/radarx",
|
|
188
|
+
"icon_links": [
|
|
189
|
+
{
|
|
190
|
+
"name": "PyPI",
|
|
191
|
+
"url": "https://pypi.org/project/radarx",
|
|
192
|
+
"icon": "fas fa-box",
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"type": "local",
|
|
196
|
+
"name": "syedhamidali",
|
|
197
|
+
"url": "https://syedha.com",
|
|
198
|
+
# "icon": "_static/syedhamidali_micro.svg",
|
|
199
|
+
},
|
|
200
|
+
],
|
|
201
|
+
"navbar_end": ["theme-switcher", "icon-links.html"],
|
|
202
|
+
"use_edit_page_button": True,
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
html_static_path = ["_static"]
|
|
206
|
+
|
|
207
|
+
# favicons = [
|
|
208
|
+
# {
|
|
209
|
+
# "rel": "icon",
|
|
210
|
+
# "sizes": "16x16",
|
|
211
|
+
# "href": "openradar_micro.svg",
|
|
212
|
+
# },
|
|
213
|
+
# {
|
|
214
|
+
# "rel": "icon",
|
|
215
|
+
# "sizes": "32x32",
|
|
216
|
+
# "href": "openradar_micro.svg",
|
|
217
|
+
# },
|
|
218
|
+
# ]
|
|
219
|
+
|
|
220
|
+
htmlhelp_basename = "radarxdoc"
|
|
221
|
+
|
|
222
|
+
napoleon_google_docstring = False
|
|
223
|
+
napoleon_numpy_docstring = True
|
|
224
|
+
napoleon_include_special_with_doc = False
|
|
225
|
+
napoleon_use_param = False
|
|
226
|
+
napoleon_use_rtype = False
|
|
227
|
+
napoleon_preprocess_types = True
|
|
228
|
+
napoleon_type_aliases = {
|
|
229
|
+
"scalar": ":term:`scalar`",
|
|
230
|
+
"sequence": ":term:`sequence`",
|
|
231
|
+
"callable": ":py:func:`callable`",
|
|
232
|
+
"file-like": ":term:`file-like <file-like object>`",
|
|
233
|
+
"array-like": ":term:`array-like <array_like>`",
|
|
234
|
+
"Path": "~~pathlib.Path",
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
man_pages = [(master_doc, "radarx", "radarx Documentation", [author], 1)]
|
|
238
|
+
|
|
239
|
+
texinfo_documents = [
|
|
240
|
+
(
|
|
241
|
+
master_doc,
|
|
242
|
+
"radarx",
|
|
243
|
+
"radarx Documentation",
|
|
244
|
+
author,
|
|
245
|
+
"radarx",
|
|
246
|
+
"One line description of project.",
|
|
247
|
+
"Miscellaneous",
|
|
248
|
+
),
|
|
249
|
+
]
|
|
250
|
+
|
|
251
|
+
rst_epilog = ""
|
|
252
|
+
with open("links.rst") as f:
|
|
253
|
+
rst_epilog += f.read()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.. include:: ../CONTRIBUTING.rst
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.. include:: ../HISTORY.rst
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Welcome to radarx's documentation!
|
|
2
|
+
======================================
|
|
3
|
+
|
|
4
|
+
.. toctree::
|
|
5
|
+
:maxdepth: 2
|
|
6
|
+
:caption: Contents:
|
|
7
|
+
|
|
8
|
+
readme
|
|
9
|
+
installation
|
|
10
|
+
usage
|
|
11
|
+
modules
|
|
12
|
+
contributing
|
|
13
|
+
authors
|
|
14
|
+
history
|
|
15
|
+
|
|
16
|
+
Indices and tables
|
|
17
|
+
==================
|
|
18
|
+
* :ref:`genindex`
|
|
19
|
+
* :ref:`modindex`
|
|
20
|
+
* :ref:`search`
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.. highlight:: shell
|
|
2
|
+
|
|
3
|
+
============
|
|
4
|
+
Installation
|
|
5
|
+
============
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Stable release
|
|
9
|
+
--------------
|
|
10
|
+
|
|
11
|
+
To install radarx, run this command in your terminal:
|
|
12
|
+
|
|
13
|
+
.. code-block:: console
|
|
14
|
+
|
|
15
|
+
$ pip install radarx
|
|
16
|
+
|
|
17
|
+
This is the preferred method to install radarx, as it will always install the most recent stable release.
|
|
18
|
+
|
|
19
|
+
If you don't have `pip`_ installed, this `Python installation guide`_ can guide
|
|
20
|
+
you through the process.
|
|
21
|
+
|
|
22
|
+
.. _pip: https://pip.pypa.io
|
|
23
|
+
.. _Python installation guide: http://docs.python-guide.org/en/latest/starting/installation/
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
From sources
|
|
27
|
+
------------
|
|
28
|
+
|
|
29
|
+
The sources for radarx can be downloaded from the `Github repo`_.
|
|
30
|
+
|
|
31
|
+
You can either clone the public repository:
|
|
32
|
+
|
|
33
|
+
.. code-block:: console
|
|
34
|
+
|
|
35
|
+
$ git clone git://github.com/syedhamidali/radarx
|
|
36
|
+
|
|
37
|
+
Or download the `tarball`_:
|
|
38
|
+
|
|
39
|
+
.. code-block:: console
|
|
40
|
+
|
|
41
|
+
$ curl -OJL https://github.com/syedhamidali/radarx/tarball/master
|
|
42
|
+
|
|
43
|
+
Once you have a copy of the source, you can install it with:
|
|
44
|
+
|
|
45
|
+
.. code-block:: console
|
|
46
|
+
|
|
47
|
+
$ python setup.py install
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
.. _Github repo: https://github.com/syedhamidali/radarx
|
|
51
|
+
.. _tarball: https://github.com/syedhamidali/radarx/tarball/master
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@ECHO OFF
|
|
2
|
+
|
|
3
|
+
pushd %~dp0
|
|
4
|
+
|
|
5
|
+
REM Command file for Sphinx documentation
|
|
6
|
+
|
|
7
|
+
if "%SPHINXBUILD%" == "" (
|
|
8
|
+
set SPHINXBUILD=python -msphinx
|
|
9
|
+
)
|
|
10
|
+
set SOURCEDIR=.
|
|
11
|
+
set BUILDDIR=_build
|
|
12
|
+
set SPHINXPROJ=radarx
|
|
13
|
+
|
|
14
|
+
if "%1" == "" goto help
|
|
15
|
+
|
|
16
|
+
%SPHINXBUILD% >NUL 2>NUL
|
|
17
|
+
if errorlevel 9009 (
|
|
18
|
+
echo.
|
|
19
|
+
echo.The Sphinx module was not found. Make sure you have Sphinx installed,
|
|
20
|
+
echo.then set the SPHINXBUILD environment variable to point to the full
|
|
21
|
+
echo.path of the 'sphinx-build' executable. Alternatively you may add the
|
|
22
|
+
echo.Sphinx directory to PATH.
|
|
23
|
+
echo.
|
|
24
|
+
echo.If you don't have Sphinx installed, grab it from
|
|
25
|
+
echo.http://sphinx-doc.org/
|
|
26
|
+
exit /b 1
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
|
|
30
|
+
goto end
|
|
31
|
+
|
|
32
|
+
:help
|
|
33
|
+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
|
|
34
|
+
|
|
35
|
+
:end
|
|
36
|
+
popd
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.. include:: ../README.rst
|