Skip to content

Commit

Permalink
fixed typos and made minor improvement to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-chew committed Mar 19, 2024
1 parent 5001cc9 commit 8e73be5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: documentation
name: docs

on: [push, pull_request, workflow_dispatch]

Expand All @@ -18,7 +18,6 @@ jobs:
python-version: '3.10.5'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install sphinx furo sphinx-changelog
- name: Sphinx build
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<a href="https://github.com/ray-chew/spec_appx/actions/workflows/documentation.yml">
<img alt="GitHub Actions: docs" src=https://github.com/ray-chew/spec_appx/actions/workflows/documentation.yml/badge.svg>
</a>
<a href="https://www.gnu.org/licenses/agpl-3.0">
<img alt="License: GNU GPL v3" src=https://img.shields.io/badge/License-AGPL_v3-blue.svg>
<a href="https://www.gnu.org/licenses/gpl-3.0">
<img alt="License: GPL v3" src=https://img.shields.io/badge/License-GPLv3-blue.svg>
</a>
<a href="https://github.com/psf/black">
<img alt="Code style: black" src=https://img.shields.io/badge/code%20style-black-000000.svg>
Expand All @@ -32,7 +32,7 @@ This method is primarily used to represent terrain for weather forecasting purpo

---

**[Read the documentation here.](https://ray-chew.github.io/spec_appx/index.html)**
**[Read the documentation here](https://ray-chew.github.io/spec_appx/index.html)**

---

Expand All @@ -47,7 +47,7 @@ See [`requirements.txt`](https://github.com/ray-chew/spec_appx/blob/main/require

### Installation

Make a fork and clone your remote forked repository.
Fork this repository and clone your remote fork.

### Configuration

Expand All @@ -61,7 +61,7 @@ A simple setup can be found in [`runs.idealised_isosceles`](https://github.com/r
python3 ./runs/idealised_isosceles.py
```

However, the codebase is structured such that the user can easily assemble a run script to define their own experiments. Refer to the documentation for the available APIs.
However, the codebase is structured such that the user can easily assemble a run script to define their own experiments. Refer to the documentation for the [available APIs](https://ray-chew.github.io/spec_appx/api.html).

## License

Expand Down
6 changes: 3 additions & 3 deletions docs/source/quick_start.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Quickstart
==========
A quick and dirty guide to using the CSAM codebase.
A quick and dirty guide to using the CSAM codebase

Requirements
^^^^^^^^^^^^
Expand All @@ -15,7 +15,7 @@ Overview
^^^^^^^^
The CSAM codebase is structured modularly, see :numref:`structure` for a graphical overview.

The package :mod:`wrappers` provides interfaces to the core code components in :mod:`src` and :mod:`vis`. For example, it defines the First and Second Approximation steps in the CSAM algorithm and applies the tapering of the physical data. Refer to the APIs for more details.
The package :mod:`wrappers` provides interfaces to the core code components in :mod:`src` and :mod:`vis`. For example, it defines the First and Second Approximation steps in the CSAM algorithm and applies the tapering of the physical data. Refer to the :doc:`APIs <api>` for more details.

Helper functions and data structures are provided for the processing of user-defined topographies (:mod:`src.var.topo`), grids (:mod:`src.var.grid`), and input parameters (:mod:`src.var.params`).

Expand Down Expand Up @@ -199,7 +199,7 @@ To reproduce the coarse grid study (*Coarse Delaunay triangulation (approximatel
run_case = "R2B4"
2. Execute the run script :mod:`runs.delaunay_runs`. Make sure to import the correct user-defined input file:
2. Make sure to import the correct user-defined input file. Then execute the run script :mod:`runs.delaunay_runs`:

.. code-block:: console
Expand Down
4 changes: 2 additions & 2 deletions src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,8 @@ def get_lat_lon_segments(
number of data points in the padded region, by default 0
topo_mask : array-like, optional
tapering mask, by default None
mask : _type_, optional
mask to select for data points inside the non-quadrilateral grid cell, by default None
mask : array-like, optional
2D Boolean mask to select for data points inside the non-quadrilateral grid cell, by default None
load_topo : bool, optional
explicitly replaces the topography attribute in the cell ``cell.topo`` with the data given in ``topo``, by default False
"""
Expand Down

0 comments on commit 8e73be5

Please sign in to comment.