glidertest 0.0.1__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.
Files changed (36) hide show
  1. glidertest-0.0.1/.github/dependabot.yml +13 -0
  2. glidertest-0.0.1/.github/workflows/docs.yml +45 -0
  3. glidertest-0.0.1/.github/workflows/docs_deploy.yml +51 -0
  4. glidertest-0.0.1/.github/workflows/pypi.yml +48 -0
  5. glidertest-0.0.1/.github/workflows/tests.yml +39 -0
  6. glidertest-0.0.1/.gitignore +168 -0
  7. glidertest-0.0.1/CITATION.cff +19 -0
  8. glidertest-0.0.1/CONTRIBUTING.md +92 -0
  9. glidertest-0.0.1/LICENSE +21 -0
  10. glidertest-0.0.1/PKG-INFO +91 -0
  11. glidertest-0.0.1/README.md +39 -0
  12. glidertest-0.0.1/docs/Makefile +20 -0
  13. glidertest-0.0.1/docs/source/_static/glider.png +0 -0
  14. glidertest-0.0.1/docs/source/conf.py +43 -0
  15. glidertest-0.0.1/docs/source/glidertest.rst +18 -0
  16. glidertest-0.0.1/docs/source/index.rst +39 -0
  17. glidertest-0.0.1/glidertest/_version.py +1 -0
  18. glidertest-0.0.1/glidertest/fetchers.py +35 -0
  19. glidertest-0.0.1/glidertest/glidertest.mplstyle +15 -0
  20. glidertest-0.0.1/glidertest/plots.py +976 -0
  21. glidertest-0.0.1/glidertest/tools.py +396 -0
  22. glidertest-0.0.1/glidertest/utilities.py +265 -0
  23. glidertest-0.0.1/glidertest.egg-info/PKG-INFO +91 -0
  24. glidertest-0.0.1/glidertest.egg-info/SOURCES.txt +34 -0
  25. glidertest-0.0.1/glidertest.egg-info/dependency_links.txt +1 -0
  26. glidertest-0.0.1/glidertest.egg-info/requires.txt +12 -0
  27. glidertest-0.0.1/glidertest.egg-info/top_level.txt +1 -0
  28. glidertest-0.0.1/notebooks/demo.ipynb +500 -0
  29. glidertest-0.0.1/pyproject.toml +59 -0
  30. glidertest-0.0.1/requirements-dev.txt +19 -0
  31. glidertest-0.0.1/requirements.txt +12 -0
  32. glidertest-0.0.1/setup.cfg +4 -0
  33. glidertest-0.0.1/tests/test_fetchers.py +16 -0
  34. glidertest-0.0.1/tests/test_plots.py +100 -0
  35. glidertest-0.0.1/tests/test_tools.py +54 -0
  36. glidertest-0.0.1/tests/test_utilities.py +28 -0
@@ -0,0 +1,13 @@
1
+ version: 2
2
+ updates:
3
+
4
+ - package-ecosystem: "github-actions"
5
+ directory: "/"
6
+ schedule:
7
+ interval: "daily"
8
+ labels:
9
+ - "Bot"
10
+ groups:
11
+ github-actions:
12
+ patterns:
13
+ - '*'
@@ -0,0 +1,45 @@
1
+ name: Test documentation build
2
+
3
+ on:
4
+ pull_request:
5
+ paths:
6
+ - '**.py'
7
+ - '**.ipynb'
8
+ - '**.rst'
9
+
10
+ jobs:
11
+ build-docs:
12
+ runs-on: ubuntu-latest
13
+ permissions:
14
+ contents: write
15
+
16
+ steps:
17
+ - name: checkout
18
+ uses: actions/checkout@v4
19
+ with:
20
+ fetch-depth: 0
21
+
22
+ - name: Setup Micromamba ${{ matrix.python-version }}
23
+ uses: mamba-org/setup-micromamba@v2.0.1
24
+ with:
25
+ environment-name: TEST
26
+ init-shell: bash
27
+ create-args: >-
28
+ python=3 pip
29
+ --file requirements-dev.txt
30
+ --channel conda-forge
31
+
32
+ - name: Install glidertest
33
+ shell: bash -l {0}
34
+ run: |
35
+ python -m pip install -e . --no-deps --force-reinstall
36
+
37
+ - name: Build documentation
38
+ shell: bash -l {0}
39
+ run: |
40
+ set -e
41
+ jupyter nbconvert --to notebook --execute notebooks/demo.ipynb --output=demo-output.ipynb
42
+ mv notebooks/*output.ipynb docs/source/
43
+ pushd docs
44
+ make clean html
45
+ popd
@@ -0,0 +1,51 @@
1
+ name: Deploy Documentation
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ build-docs:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: write
13
+
14
+ steps:
15
+ - name: checkout
16
+ uses: actions/checkout@v4
17
+ with:
18
+ fetch-depth: 0
19
+
20
+ - name: Setup Micromamba ${{ matrix.python-version }}
21
+ uses: mamba-org/setup-micromamba@v2.0.1
22
+ with:
23
+ environment-name: TEST
24
+ init-shell: bash
25
+ create-args: >-
26
+ python=3 pip
27
+ --file requirements-dev.txt
28
+ --channel conda-forge
29
+
30
+ - name: Install glidertest
31
+ shell: bash -l {0}
32
+ run: |
33
+ python -m pip install -e . --no-deps --force-reinstall
34
+
35
+ - name: Build documentation
36
+ shell: bash -l {0}
37
+ run: |
38
+ set -e
39
+ jupyter nbconvert --to notebook --execute notebooks/demo.ipynb --output=demo-output.ipynb
40
+ mv notebooks/*output.ipynb docs/source/
41
+ pushd docs
42
+ make clean html
43
+ popd
44
+
45
+ - name: Deploy
46
+ uses: peaceiris/actions-gh-pages@v4
47
+ with:
48
+ github_token: ${{ secrets.GITHUB_TOKEN }}
49
+ publish_dir: docs/build/html
50
+
51
+
@@ -0,0 +1,48 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types:
6
+ - published
7
+
8
+ jobs:
9
+ packages:
10
+ runs-on: ubuntu-latest
11
+ environment: release
12
+ permissions:
13
+ id-token: write
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+
17
+ - name: Set up Python
18
+ uses: actions/setup-python@v5
19
+ with:
20
+ python-version: "3.x"
21
+
22
+ - name: Get tags
23
+ run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
24
+ shell: bash
25
+
26
+ - name: Install build tools
27
+ run: |
28
+ python -m pip install --upgrade pip wheel setuptools setuptools_scm build twine
29
+
30
+ shell: bash
31
+
32
+ - name: Build binary wheel
33
+ run: python -m build --sdist --wheel . --outdir dist
34
+
35
+ - name: CheckFiles
36
+ run: |
37
+ ls dist
38
+ shell: bash
39
+
40
+ - name: Test wheels
41
+ run: |
42
+ cd dist && python -m pip install *.whl
43
+ python -m twine check *
44
+ shell: bash
45
+
46
+ - name: Publish a Python distribution to PyPI
47
+ if: success() && github.event_name == 'release'
48
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,39 @@
1
+ name: Tests
2
+
3
+ on:
4
+ pull_request:
5
+ paths:
6
+ - '**.py'
7
+ - '**.ipynb'
8
+
9
+
10
+ jobs:
11
+ run:
12
+ runs-on: ${{ matrix.os }}
13
+ strategy:
14
+ matrix:
15
+ python-version: ["3.8", "3.10", "3.12"]
16
+ os: [ubuntu-latest, macos-latest, windows-latest]
17
+ fail-fast: true
18
+ defaults:
19
+ run:
20
+ shell: bash -l {0}
21
+
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+
25
+ - name: Setup Micromamba Python ${{ matrix.python-version }}
26
+ uses: mamba-org/setup-micromamba@v2
27
+ with:
28
+ environment-name: TEST
29
+ init-shell: bash
30
+ create-args: >-
31
+ python=${{ matrix.python-version }} --file requirements-dev.txt --channel conda-forge
32
+
33
+ - name: Install glidertest
34
+ run: |
35
+ python -m pip install -e . --no-deps --force-reinstall
36
+
37
+ - name: Full Tests
38
+ run: |
39
+ python -m pytest --cov=glidertest --cov-report term-missing tests/
@@ -0,0 +1,168 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+ *_version.py
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ *.manifest
34
+ *.spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .nox/
44
+ .coverage
45
+ .coverage.*
46
+ .cache
47
+ nosetests.xml
48
+ coverage.xml
49
+ *.cover
50
+ *.py,cover
51
+ .hypothesis/
52
+ .pytest_cache/
53
+ cover/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+
75
+ # PyBuilder
76
+ .pybuilder/
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ # For a library or package, you might want to ignore these files since the code is
88
+ # intended to run in multiple environments; otherwise, check them in:
89
+ # .python-version
90
+
91
+ # pipenv
92
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
+ # install all needed dependencies.
96
+ #Pipfile.lock
97
+
98
+ # poetry
99
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
100
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
101
+ # commonly ignored for libraries.
102
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
103
+ #poetry.lock
104
+
105
+ # pdm
106
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
107
+ #pdm.lock
108
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
109
+ # in version control.
110
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
111
+ .pdm.toml
112
+ .pdm-python
113
+ .pdm-build/
114
+
115
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
116
+ __pypackages__/
117
+
118
+ # Celery stuff
119
+ celerybeat-schedule
120
+ celerybeat.pid
121
+
122
+ # SageMath parsed files
123
+ *.sage.py
124
+
125
+ # Environments
126
+ .env
127
+ .venv
128
+ env/
129
+ venv/
130
+ ENV/
131
+ env.bak/
132
+ venv.bak/
133
+
134
+ # Spyder project settings
135
+ .spyderproject
136
+ .spyproject
137
+
138
+ # Mac/OSX
139
+ .DS_Store
140
+
141
+ # Rope project settings
142
+ .ropeproject
143
+
144
+ # mkdocs documentation
145
+ /site
146
+
147
+ # mypy
148
+ .mypy_cache/
149
+ .dmypy.json
150
+ dmypy.json
151
+
152
+ # Pyre type checker
153
+ .pyre/
154
+
155
+ # pytype static type analyzer
156
+ .pytype/
157
+
158
+ # Cython debug symbols
159
+ cython_debug/
160
+
161
+ # PyCharm
162
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
163
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
164
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
165
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
166
+ #.idea/
167
+ .idea
168
+ de421.bsp
@@ -0,0 +1,19 @@
1
+ cff-version: 1.2.0
2
+ message: "If you use this software, please cite it as below."
3
+ authors:
4
+ - family-names: Rollo
5
+ given-names: Callum
6
+ orcid: https://orcid.org/0000-0002-5134-7886
7
+ affiliation: Voice of the Ocean Foundation. Skeppet Ärans väg 19, 426 71 Västra Frölunda, Sweden
8
+ - family-names: Frajka-Williams
9
+ given-names: Eleanor
10
+ orcid: https://orcid.org/0000-0001-8773-7838
11
+ affiliation: Institute of Oceanography, University of Hamburg, Bundesstraße 53, 20146 Hamburg, Germany
12
+ - family-names: Monforte
13
+ given-names: Chiara
14
+ orcid: https://orcid.org/0009-0003-5019-3410
15
+ affiliation: Institute of Oceanography, University of Hamburg, Bundesstraße 53, 20146 Hamburg, Germany
16
+ title: glidertest
17
+ version: 0.0.1
18
+ date-released: 2024-10-28
19
+ url: https://github.com/callumrollo/glidertest
@@ -0,0 +1,92 @@
1
+ # Contributing to glidertest
2
+
3
+ First off, thanks for taking the time to contribute!
4
+
5
+ All types of contributions are encouraged and valued. See the [Table of Contents](#table-of-contents) for different ways to help and details about how this project handles them.
6
+
7
+ <!-- omit in toc -->
8
+ ## Table of Contents
9
+
10
+ - [I Have a Question](#i-have-a-question)
11
+ - [I Want To Contribute](#i-want-to-contribute)
12
+ - [Reporting Bugs](#reporting-bugs)
13
+ - [Suggesting Enhancements](#suggesting-enhancements)
14
+ - [Your First Code Contribution](#your-first-code-contribution)
15
+ - [Improving The Documentation](#improving-the-documentation)
16
+
17
+
18
+ ## I Have a Question
19
+
20
+ > If you want to ask a question, we assume that you have read the available [Documentation](https://callumrollo.github.io/glidertest/).
21
+
22
+ Before you ask a question, it is best to search for existing [Issues](https://github.com/callumrollo/glidertest/issues) that might help you. If you don't find an existing Issue:
23
+
24
+ - Open an [Issue](https://github.com/callumrollo/glidertest/issues/new).
25
+ - Provide as much context as you can about what you're running into.
26
+ - If possible, try to provide a reproducible example, e.g. a jupyter notebook.
27
+
28
+ ## I Want To Contribute
29
+
30
+ > ### Legal Notice <!-- omit in toc -->
31
+ > When contributing to this project, you must agree that you have authored 100% of the content, that you have the necessary rights to the content and that the content you contribute may be provided under the project licence.
32
+
33
+ ### Reporting Bugs
34
+
35
+ <!-- omit in toc -->
36
+
37
+ A good bug report shouldn't leave others needing to chase you up for more information. Please complete the following steps in advance to help us fix any potential bug as fast as possible.
38
+
39
+ - Make sure that you are using the latest version.
40
+ - Collect information about the bug:
41
+ - Stack trace (Traceback) or screenshot error message
42
+ - OS, Platform and Version (Windows, Linux, macOS, x86, ARM)
43
+ - Input dataset, can you recreate this bug with one of the example datasets provided by `glidertest`? If not, provide your dataset if practical
44
+ - Open an [Issue](https://github.com/callumrollo/glidertest/issues) describing the bug
45
+
46
+ <!-- omit in toc -->
47
+ ### Suggesting Enhancements
48
+
49
+ This section guides you through submitting an enhancement suggestion for XYZ, **including completely new features and minor improvements to existing functionality**.
50
+
51
+ <!-- omit in toc -->
52
+ #### Before Submitting an Enhancement
53
+
54
+ - Make sure that you are using the latest version.
55
+ - Read the [documentation](https://callumrollo.github.io/glidertest) carefully and find out if the functionality is already covered, maybe by an individual configuration.
56
+ - Find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Keep in mind that we want features that will be useful to the majority of our users and not just a small subset.
57
+
58
+ <!-- omit in toc -->
59
+ #### How Do I Submit a Good Enhancement Suggestion?
60
+
61
+ Enhancement suggestions are tracked as [GitHub issues](https://github.com/callumrollo/glidertest/issues).
62
+
63
+ - Use a **clear and descriptive title** for the issue to identify the suggestion.
64
+ - Provide a **step-by-step description of the suggested enhancement** in as many details as possible.
65
+ - **Describe the current behavior** and **explain which behavior you expected to see instead** and why. At this point you can also tell which alternatives do not work for you.
66
+ - **Explain why this enhancement would be useful** to most XYZ users.
67
+
68
+ ### Your First Code Contribution
69
+
70
+ Getting started adding your own functionality.
71
+
72
+ #### glidertest organisation
73
+
74
+ Code is organised into files within `glidertest/*.py` and demonstrated in jupyter notebooks in `notebooks/*.ipynb`. The *.py* files include primarily functions (with their necessary packages imported) while the notebooks call these functions and display the plots generated. The *.py* files are separated into broad categories of plots, tools and utilities. If you'd like to add a function to calculate some thing WIDGET and then to plot the result of the calculation, you will want to write a function in tools.py and then a plotting function in plots.py. There are a couple exceptions: If it's a very simple calculation (mean, median, difference between two quantities), you might put the entire calculation within the plotting function. See for example `plots.process_optics_assess()`. Or, if the calculation is more complicated, but is easily displayed by an existing function, then you might have a calculation function `tools.calc_foo_bar()` and then use an existing `plots.plot_histogram()` to display it.
75
+
76
+ #### Best practices for new functions
77
+
78
+ - Once you've added a function, you can test it against one or two of the sample datasets in `notebooks/demo.ipynb`. Does it have the same behaviour on those sample datasets as you expect?
79
+ - Have you followed the conventions for naming your function? Generally, function names should be short, agnostic about the vehicle used, and understandable to Person X. We also loosely follow naming conventions to help the new user understand what a function might do (e.g., plotting functions in `plots.py` typically start with the name `plot_blahblah()` while calculations are` calc_blahblah()` and calculations with special outputs are `compute_blahblah()`. Functions not inteded for use by the end user (e.g. sub-calculations) should be added to `utilities.py`
80
+ - Unless otherwise required, we suggest to pass an xarray dataset (as you get from loading an OG1 dataset) as the input. There are some parameters that can be additionally passed to carry out subsets on the data or select the variable of interest.
81
+ - Did you write a docstring? We use the [numpy standard for docstings](https://numpydoc.readthedocs.io/en/latest/format.html#docstring-standard). We also suggest including your name or GitHub handle under the original author heading. Look at some existing docstrings in `glidertest` if you are unsure of the format.
82
+ - There are also some basic error checking behaviours you should consider including. If you're plotting a particular variable, use the `glidertest.utilities._check_necessary_variables()` function to check whether or not the required variables are within the dataset passed to the function.
83
+ - For plotting functions on a single axis, you should include as optional inputs the `fig` and `ax`, and return the same, to enable their usage within multi-axes plots. For plotting functions with multiple or interrelated axes, perhaps fig and ax shouldn't be included as inputs, but can be provided as outputs for the user to make onward edits.
84
+ - For plotting, see the guidance on uniformity (using standard lineswidths, figure sizes and font sizes etc.). These are all described in `glidertest/glidertest.mplstyle`, in case an individual user wants to change these to their preferences.
85
+ - Each new function should have a corresponding test, feel free to ask if you're not sure how to write a test!
86
+
87
+ ### Improving The Documentation
88
+
89
+ Our [documentation](https://callumrollo.github.io/glidertest/) is built from the function docstrings and the [example notebook](https://callumrollo.github.io/glidertest/demo-output.html). If you think the documentation could be better, do not hesitate to suggest an improvement! Either in an Issue or a PR.
90
+
91
+ ## Attribution
92
+ This guide is based on the **contributing-gen**. [Make your own](https://github.com/bttger/contributing-gen)!
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Callum Rollo
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.
@@ -0,0 +1,91 @@
1
+ Metadata-Version: 2.1
2
+ Name: glidertest
3
+ Version: 0.0.1
4
+ Summary: Diagnostic tests of glider quality
5
+ Maintainer-email: Callum Rollo <c.rollo@outlook.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2024 Callum Rollo
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Project-URL: documentation, https://github.com/callumrollo/glidertest
29
+ Project-URL: homepage, https://github.com/callumrollo/glidertest
30
+ Project-URL: repository, https://github.com/callumrollo/glidertest
31
+ Classifier: Programming Language :: Python :: 3 :: Only
32
+ Classifier: Programming Language :: Python :: 3.8
33
+ Classifier: Programming Language :: Python :: 3.9
34
+ Classifier: Programming Language :: Python :: 3.10
35
+ Classifier: Programming Language :: Python :: 3.11
36
+ Classifier: Programming Language :: Python :: 3.12
37
+ Requires-Python: >=3.8
38
+ Description-Content-Type: text/markdown
39
+ License-File: LICENSE
40
+ Requires-Dist: netcdf4
41
+ Requires-Dist: pooch
42
+ Requires-Dist: xarray
43
+ Requires-Dist: numpy
44
+ Requires-Dist: matplotlib
45
+ Requires-Dist: pandas
46
+ Requires-Dist: seaborn
47
+ Requires-Dist: scipy
48
+ Requires-Dist: skyfield
49
+ Requires-Dist: gsw
50
+ Requires-Dist: sgp4>=2.14
51
+ Requires-Dist: cartopy
52
+
53
+ # glidertest
54
+
55
+ This is a repo to diagnose issues in glider data such as CTD thermal lag.
56
+
57
+ This is a work in progress, all contributions welcome!
58
+
59
+ ### Install
60
+
61
+ Install from PyPI with
62
+
63
+ ```sh
64
+ python -m pip install glidertest
65
+ ```
66
+
67
+ Install a local, development version of this by cloning the repo, opening a terminal in the home directory (next to this readme file) and running these commands:
68
+
69
+ ```sh
70
+ pip install -r requirements-dev.txt
71
+ pip install -e .
72
+ ```
73
+ This installs glidertest locally. -e ensures that any edits you make in the files will be picked up by scripts that import functions from glidertest.
74
+
75
+ ### Documentation
76
+
77
+ Documentation website at [https://callumrollo.github.io/glidertest/](https://callumrollo.github.io/glidertest/)
78
+
79
+ Check out the example notebook `notebooks/demo.ipynb` for example functionality
80
+
81
+ As input, glidertest takes [OceanGliders format files](https://github.com/OceanGlidersCommunity/OG-format-user-manual)
82
+
83
+ ### Contributing
84
+
85
+ All contributions are welcome! Please clone the repo and install a local development version of `glidertest` as described in the Install section above. All new functions should include tests, you can run the tests locally and generate a coverage report with:
86
+
87
+ ```sh
88
+ pytest --cov=glidertest --cov-report term-missing tests/
89
+ ```
90
+
91
+ Try to ensure that all the lines of your contribution are covered in the tests.
@@ -0,0 +1,39 @@
1
+ # glidertest
2
+
3
+ This is a repo to diagnose issues in glider data such as CTD thermal lag.
4
+
5
+ This is a work in progress, all contributions welcome!
6
+
7
+ ### Install
8
+
9
+ Install from PyPI with
10
+
11
+ ```sh
12
+ python -m pip install glidertest
13
+ ```
14
+
15
+ Install a local, development version of this by cloning the repo, opening a terminal in the home directory (next to this readme file) and running these commands:
16
+
17
+ ```sh
18
+ pip install -r requirements-dev.txt
19
+ pip install -e .
20
+ ```
21
+ This installs glidertest locally. -e ensures that any edits you make in the files will be picked up by scripts that import functions from glidertest.
22
+
23
+ ### Documentation
24
+
25
+ Documentation website at [https://callumrollo.github.io/glidertest/](https://callumrollo.github.io/glidertest/)
26
+
27
+ Check out the example notebook `notebooks/demo.ipynb` for example functionality
28
+
29
+ As input, glidertest takes [OceanGliders format files](https://github.com/OceanGlidersCommunity/OG-format-user-manual)
30
+
31
+ ### Contributing
32
+
33
+ All contributions are welcome! Please clone the repo and install a local development version of `glidertest` as described in the Install section above. All new functions should include tests, you can run the tests locally and generate a coverage report with:
34
+
35
+ ```sh
36
+ pytest --cov=glidertest --cov-report term-missing tests/
37
+ ```
38
+
39
+ Try to ensure that all the lines of your contribution are covered in the tests.
@@ -0,0 +1,20 @@
1
+ # Minimal makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line, and also
5
+ # from the environment for the first two.
6
+ SPHINXOPTS ?=
7
+ SPHINXBUILD ?= sphinx-build
8
+ SOURCEDIR = source
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)