radal 0.4.2__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.
- radal-0.4.2/.codespellrc +3 -0
- radal-0.4.2/.github/workflows/pre-commit.yml +15 -0
- radal-0.4.2/.github/workflows/python.yml +67 -0
- radal-0.4.2/.github/workflows/rust.yml +48 -0
- radal-0.4.2/.gitignore +2 -0
- radal-0.4.2/.pre-commit-config.yaml +36 -0
- radal-0.4.2/Cargo.lock +1921 -0
- radal-0.4.2/Cargo.toml +46 -0
- radal-0.4.2/LICENSE +21 -0
- radal-0.4.2/PKG-INFO +89 -0
- radal-0.4.2/README.md +80 -0
- radal-0.4.2/assets/test_dem_dtm20_mettebreen.tif +0 -0
- radal-0.4.2/default.nix +34 -0
- radal-0.4.2/flake.lock +61 -0
- radal-0.4.2/flake.nix +31 -0
- radal-0.4.2/lint.sh +9 -0
- radal-0.4.2/pyproject.toml +13 -0
- radal-0.4.2/shell.nix +25 -0
- radal-0.4.2/src/cli.rs +216 -0
- radal-0.4.2/src/coords.rs +504 -0
- radal-0.4.2/src/dem.rs +273 -0
- radal-0.4.2/src/filters/bandpass.rs +534 -0
- radal-0.4.2/src/filters/mod.rs +208 -0
- radal-0.4.2/src/gpr.rs +2140 -0
- radal-0.4.2/src/io.rs +1040 -0
- radal-0.4.2/src/lib.rs +129 -0
- radal-0.4.2/src/main.rs +31 -0
- radal-0.4.2/src/tools.rs +757 -0
- radal-0.4.2/temp/DAT_0121_A1.nc +0 -0
- radal-0.4.2/temp/temp.jpg +0 -0
- radal-0.4.2/temp/track.csv +9897 -0
- radal-0.4.2/test_radal.py +10 -0
radal-0.4.2/.codespellrc
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
name: Linting and formatting (pre-commit)
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
pre-commit:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v3
|
|
14
|
+
- uses: actions/setup-python@v3
|
|
15
|
+
- uses: pre-commit/action@v3.0.1
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
name: Build wheels
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
# Run on new tags, e.g. v0.1.0
|
|
5
|
+
push:
|
|
6
|
+
tags:
|
|
7
|
+
- 'v*'
|
|
8
|
+
# Allow manual trigger from the Actions UI
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build-wheels:
|
|
13
|
+
name: Build wheels on ${{ matrix.os }} for Python ${{ matrix.python-version }}
|
|
14
|
+
runs-on: ${{ matrix.os }}
|
|
15
|
+
|
|
16
|
+
strategy:
|
|
17
|
+
fail-fast: false
|
|
18
|
+
matrix:
|
|
19
|
+
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
20
|
+
python-version: ['3.10', '3.11', '3.12', '3.13']
|
|
21
|
+
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v4
|
|
24
|
+
|
|
25
|
+
- name: Set up Python
|
|
26
|
+
uses: actions/setup-python@v5
|
|
27
|
+
with:
|
|
28
|
+
python-version: ${{ matrix.python-version }}
|
|
29
|
+
|
|
30
|
+
- name: Set up Rust
|
|
31
|
+
uses: dtolnay/rust-toolchain@stable
|
|
32
|
+
# or actions-rs/toolchain if you prefer
|
|
33
|
+
|
|
34
|
+
- name: Install maturin
|
|
35
|
+
run: pip install maturin
|
|
36
|
+
|
|
37
|
+
# Optional: install test dependencies
|
|
38
|
+
- name: Install test dependencies
|
|
39
|
+
run: |
|
|
40
|
+
pip install pytest
|
|
41
|
+
|
|
42
|
+
# Build wheels with the python feature and no default features
|
|
43
|
+
# (assuming your Cargo.toml has features like:
|
|
44
|
+
# [features]
|
|
45
|
+
# default = ["cli"]
|
|
46
|
+
# cli = []
|
|
47
|
+
# python = ["pyo3"]
|
|
48
|
+
# and pyproject.toml has [tool.maturin] configured accordingly)
|
|
49
|
+
- name: Build wheels
|
|
50
|
+
run: |
|
|
51
|
+
maturin build --release --features python --no-default-features
|
|
52
|
+
|
|
53
|
+
# Install the just-built wheel and run tests
|
|
54
|
+
- name: Install built wheel
|
|
55
|
+
run: |
|
|
56
|
+
pip install --force-reinstall --no-index --find-links target/wheels radal
|
|
57
|
+
|
|
58
|
+
- name: Run tests
|
|
59
|
+
run: |
|
|
60
|
+
# simple smoke test: import and print version
|
|
61
|
+
python -c "import radal; print(radal.version);"
|
|
62
|
+
|
|
63
|
+
- name: Upload wheels
|
|
64
|
+
uses: actions/upload-artifact@v4
|
|
65
|
+
with:
|
|
66
|
+
name: wheels-${{ matrix.os }}-py${{ matrix.python-version }}
|
|
67
|
+
path: target/wheels/*.whl
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
name: Rust
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
env:
|
|
10
|
+
CARGO_TERM_COLOR: always
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build:
|
|
14
|
+
name: Build on ${{ matrix.os }}
|
|
15
|
+
runs-on: ${{ matrix.os }}
|
|
16
|
+
|
|
17
|
+
strategy:
|
|
18
|
+
matrix:
|
|
19
|
+
os: [ubuntu-latest, windows-latest]
|
|
20
|
+
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v3
|
|
23
|
+
|
|
24
|
+
# OS-specific dependencies
|
|
25
|
+
- name: Install dependencies (Ubuntu)
|
|
26
|
+
if: runner.os == 'Linux'
|
|
27
|
+
run: |
|
|
28
|
+
sudo apt update -y
|
|
29
|
+
sudo apt install -y gdal-bin proj-bin
|
|
30
|
+
|
|
31
|
+
- name: Rust toolchain
|
|
32
|
+
uses: dtolnay/rust-toolchain@stable
|
|
33
|
+
|
|
34
|
+
# Only Linux: formatting & linting
|
|
35
|
+
- name: Formatting
|
|
36
|
+
if: runner.os == 'Linux'
|
|
37
|
+
run: cargo fmt --check
|
|
38
|
+
|
|
39
|
+
- name: Linting
|
|
40
|
+
if: runner.os == 'Linux'
|
|
41
|
+
run: cargo clippy --bin radal -- -D warnings --no-deps
|
|
42
|
+
|
|
43
|
+
# Both Linux and Windows: build & test
|
|
44
|
+
- name: Build
|
|
45
|
+
run: cargo build --bin radal --verbose
|
|
46
|
+
|
|
47
|
+
- name: Run tests
|
|
48
|
+
run: cargo test --bin radal -- --nocapture
|
radal-0.4.2/.gitignore
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v4.6.0
|
|
4
|
+
hooks:
|
|
5
|
+
#- id: check-yaml # This doesn't work for me (2023-06-06)
|
|
6
|
+
- id: end-of-file-fixer
|
|
7
|
+
exclude: \.txt$
|
|
8
|
+
- id: trailing-whitespace # Remove trailing whitespaces
|
|
9
|
+
- id: check-merge-conflict
|
|
10
|
+
- id: check-added-large-files
|
|
11
|
+
- id: detect-private-key
|
|
12
|
+
- id: sort-simple-yaml
|
|
13
|
+
# Fix common spelling mistakes
|
|
14
|
+
- repo: https://github.com/codespell-project/codespell
|
|
15
|
+
rev: v2.2.6
|
|
16
|
+
hooks:
|
|
17
|
+
- id: codespell
|
|
18
|
+
args: []
|
|
19
|
+
types_or: [rust, markdown]
|
|
20
|
+
#files: ^(src||tests)/
|
|
21
|
+
|
|
22
|
+
# - repo: https://github.com/lovesegfault/beautysh
|
|
23
|
+
# rev: v6.2.1
|
|
24
|
+
# hooks:
|
|
25
|
+
# - id: beautysh
|
|
26
|
+
|
|
27
|
+
# Does not work as of 2026-02-17
|
|
28
|
+
# - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
|
29
|
+
# rev: v2.13.0
|
|
30
|
+
# hooks:
|
|
31
|
+
# - id: pretty-format-yaml
|
|
32
|
+
# args: [--autofix, --indent, '2']
|
|
33
|
+
- repo: https://github.com/nix-community/nixpkgs-fmt
|
|
34
|
+
rev: v1.3.0
|
|
35
|
+
hooks:
|
|
36
|
+
- id: nixpkgs-fmt
|