Skip to content

Commit

Permalink
Refactor language-specific includes and update P2108 pages
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanielloNTIA committed Dec 3, 2024
1 parent 6c0e48d commit 7ae46c9
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 12 deletions.
5 changes: 0 additions & 5 deletions includes/_pypi_distribution.qmd

This file was deleted.

File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions includes/python/_getting_started.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## Getting Started

All ITS PropLib Python packages require a
[currently-supported](https://devguide.python.org/versions/)
version of Python. You may choose to use a tool such as
[pyenv](https://github.com/pyenv/pyenv) or
[conda](https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html)
to manage multiple Python versions on your machine. Additionally,
you may choose to set up a virtual environment for your project,
using conda or a tool such as [`venv`](https://docs.python.org/3/library/venv.html).
Installation instructions assume that you have a supported version of Python installed,
and that you're working from the desired Python environment.
4 changes: 4 additions & 0 deletions includes/python/_uninstallation.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Uninstallation

Uninstalling this Python package is also simple. Run the following
command in your Python environment.
4 changes: 2 additions & 2 deletions models/P2108/cpp.qmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Recommendation ITU-R P.2108 – C++"
date: 2024-07-09
date-modified: 2024-11-21
date-modified: 2024-12-03
---

{{< include /includes/_under_construction.qmd >}}
Expand All @@ -28,7 +28,7 @@ using namespace ITS::ITU::PSeries:P2108; // Optional: makes later code more con
This library has no external C++ dependencies.
{{< include /includes/_cpp_documentation_block.qmd >}}
{{< include /includes/cpp/_documentation.qmd >}}
[Docs](https://ntia.github.io/p2108){.btn .btn-secondary .btn role="button"}
Expand Down
4 changes: 3 additions & 1 deletion models/P2108/dotnet.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
title: "Recommendation ITU-R P.2108 – .NET"
---

{{< include /includes/_under_construction.qmd >}}
This page details the installation and usage of the .NET version of Recommendation ITU-R P.2108.

{{< include /includes/_link_to_model_home.qmd >}}

## Getting Started

Expand Down
18 changes: 14 additions & 4 deletions models/P2108/python.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,32 @@ This page details the installation and usage of the Python version of the PropLi

{{< include /includes/_link_to_model_home.qmd >}}

## Installation
{{< include /includes/python/_getting_started.qmd >}}

{{< include /includes/_pypi_distribution.qmd >}}
### Installation

This Python package is distributed through the
[Python Package Index (PyPI)](https://pypi.org/project/proplib-p2108).
Run the following command to install the package, and any required dependencies, into your Python environment.

```default
pip install proplib-p2108
```

The following code snippet shows how to import the package and check the installed version:
The following code snippet shows how to import the package and check the installed version.

```python
from ITS.ITU.PSeries import P2108
print(P2108.__version__)
```

{{< include /includes/_py_documentation_block.qmd >}}
{{< include /includes/python/_uninstallation.qmd >}}

```default
pip uninstall proplib-p2108
```

{{< include /includes/python/_documentation.qmd >}}

```python
help(P2108.TerrestrialStatisticalModel)
Expand Down

0 comments on commit 7ae46c9

Please sign in to comment.