ucgmsim-srf 2026.10.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.
- ucgmsim_srf-2026.10.1/.github/workflows/ci.yml +15 -0
- ucgmsim_srf-2026.10.1/.github/workflows/claude-review.yml +11 -0
- ucgmsim_srf-2026.10.1/.github/workflows/publish-PyPI.yml +35 -0
- ucgmsim_srf-2026.10.1/.github/workflows/vale.yml +53 -0
- ucgmsim_srf-2026.10.1/.gitignore +35 -0
- ucgmsim_srf-2026.10.1/.python-version +1 -0
- ucgmsim_srf-2026.10.1/.vale/config/vocabularies/srf/accept.txt +24 -0
- ucgmsim_srf-2026.10.1/.vale/ucgmsim/Carry.yml +36 -0
- ucgmsim_srf-2026.10.1/.vale/ucgmsim/DoubleHyphen.yml +21 -0
- ucgmsim_srf-2026.10.1/.vale.ini +62 -0
- ucgmsim_srf-2026.10.1/.yamllint.yml +17 -0
- ucgmsim_srf-2026.10.1/Cargo.lock +334 -0
- ucgmsim_srf-2026.10.1/Cargo.toml +25 -0
- ucgmsim_srf-2026.10.1/LICENSE +22 -0
- ucgmsim_srf-2026.10.1/PKG-INFO +66 -0
- ucgmsim_srf-2026.10.1/README.md +50 -0
- ucgmsim_srf-2026.10.1/lefthook.yml +35 -0
- ucgmsim_srf-2026.10.1/pyproject.toml +113 -0
- ucgmsim_srf-2026.10.1/setup.cfg +4 -0
- ucgmsim_srf-2026.10.1/src/lib.rs +277 -0
- ucgmsim_srf-2026.10.1/src/pytypes.rs +117 -0
- ucgmsim_srf-2026.10.1/src/srf/__init__.py +16 -0
- ucgmsim_srf-2026.10.1/src/srf/_core.pyi +103 -0
- ucgmsim_srf-2026.10.1/src/srf/io.py +197 -0
- ucgmsim_srf-2026.10.1/src/srf/py.typed +0 -0
- ucgmsim_srf-2026.10.1/src/srf/types.py +413 -0
- ucgmsim_srf-2026.10.1/src/srf_parser.rs +726 -0
- ucgmsim_srf-2026.10.1/src/srf_writer.rs +657 -0
- ucgmsim_srf-2026.10.1/src/types.rs +484 -0
- ucgmsim_srf-2026.10.1/src/ucgmsim_srf.egg-info/PKG-INFO +66 -0
- ucgmsim_srf-2026.10.1/src/ucgmsim_srf.egg-info/SOURCES.txt +49 -0
- ucgmsim_srf-2026.10.1/src/ucgmsim_srf.egg-info/dependency_links.txt +1 -0
- ucgmsim_srf-2026.10.1/src/ucgmsim_srf.egg-info/requires.txt +6 -0
- ucgmsim_srf-2026.10.1/src/ucgmsim_srf.egg-info/scm_file_list.json +46 -0
- ucgmsim_srf-2026.10.1/src/ucgmsim_srf.egg-info/scm_version.json +8 -0
- ucgmsim_srf-2026.10.1/src/ucgmsim_srf.egg-info/top_level.txt +1 -0
- ucgmsim_srf-2026.10.1/tests/__init__.py +0 -0
- ucgmsim_srf-2026.10.1/tests/conftest.py +27 -0
- ucgmsim_srf-2026.10.1/tests/srfs/bad_float.srf +16 -0
- ucgmsim_srf-2026.10.1/tests/srfs/bad_int.srf +16 -0
- ucgmsim_srf-2026.10.1/tests/srfs/bad_plane.srf +2 -0
- ucgmsim_srf-2026.10.1/tests/srfs/christchurch.srf.gz +0 -0
- ucgmsim_srf-2026.10.1/tests/srfs/darfield.srf.gz +0 -0
- ucgmsim_srf-2026.10.1/tests/srfs/empty.srf +0 -0
- ucgmsim_srf-2026.10.1/tests/srfs/no_points.srf +16 -0
- ucgmsim_srf-2026.10.1/tests/srfs/point_source_v2.srf +11 -0
- ucgmsim_srf-2026.10.1/tests/srfs/test_v2.srf.gz +0 -0
- ucgmsim_srf-2026.10.1/tests/test_read.py +266 -0
- ucgmsim_srf-2026.10.1/tests/test_types.py +182 -0
- ucgmsim_srf-2026.10.1/tests/test_write.py +148 -0
- ucgmsim_srf-2026.10.1/uv.lock +529 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
run-name: Publish Python Package to PyPI for release ${{ github.event.release.tag_name || inputs.tag_name || github.ref_name }}
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
release:
|
|
6
|
+
types: [published]
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
inputs:
|
|
9
|
+
tag_name:
|
|
10
|
+
description: "Git tag to checkout and publish"
|
|
11
|
+
required: false
|
|
12
|
+
type: string
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
build:
|
|
16
|
+
# v2.3, not v2: the v2 tag predates build-dist.yml.
|
|
17
|
+
uses: ucgmsim/meta-ci-action/.github/workflows/build-dist.yml@v2.3
|
|
18
|
+
with:
|
|
19
|
+
ref: ${{ inputs.tag_name }}
|
|
20
|
+
|
|
21
|
+
publish-to-pypi:
|
|
22
|
+
name: Publish to PyPI
|
|
23
|
+
needs: build
|
|
24
|
+
runs-on: ubuntu-latest
|
|
25
|
+
environment:
|
|
26
|
+
name: pypi
|
|
27
|
+
url: https://pypi.org/p/ucgmsim-srf
|
|
28
|
+
permissions:
|
|
29
|
+
id-token: write
|
|
30
|
+
steps:
|
|
31
|
+
- uses: actions/download-artifact@v4
|
|
32
|
+
with:
|
|
33
|
+
name: ${{ needs.build.outputs.artifact-name }}
|
|
34
|
+
path: dist/
|
|
35
|
+
- uses: pypa/gh-action-pypi-publish@v1.13.0
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
name: Vale
|
|
2
|
+
|
|
3
|
+
on: [pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
vale:
|
|
7
|
+
name: Prose lint
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
steps:
|
|
10
|
+
- uses: actions/checkout@v4
|
|
11
|
+
|
|
12
|
+
- name: Install Vale
|
|
13
|
+
env:
|
|
14
|
+
VALE_VERSION: "3.19.0"
|
|
15
|
+
run: |
|
|
16
|
+
curl -sSfL \
|
|
17
|
+
"https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz" \
|
|
18
|
+
| sudo tar -xz -C /usr/local/bin vale
|
|
19
|
+
vale --version
|
|
20
|
+
|
|
21
|
+
# Fetches the styles named by `Packages` in .vale.ini into StylesPath.
|
|
22
|
+
# The project vocabulary under .vale/config is committed and survives the
|
|
23
|
+
# sync.
|
|
24
|
+
- name: Sync Vale styles
|
|
25
|
+
run: vale sync
|
|
26
|
+
|
|
27
|
+
# `git ls-files` rather than a fixed path list: it picks up new
|
|
28
|
+
# directories on its own and never walks .venv or target/. The Rust
|
|
29
|
+
# holds as much of the explanatory prose as the Python does.
|
|
30
|
+
#
|
|
31
|
+
# Vale exits 0 when every alert is a warning or a suggestion, so the gate
|
|
32
|
+
# is "Vale printed nothing". Status 2 and above is Vale itself failing.
|
|
33
|
+
- name: Vale
|
|
34
|
+
run: |
|
|
35
|
+
status=0
|
|
36
|
+
vale --output=line $(git ls-files '*.py' '*.pyi' '*.md' '*.rs') > alerts.txt || status=$?
|
|
37
|
+
if [ "$status" -gt 1 ]; then
|
|
38
|
+
echo "::error::Vale exited with status $status"
|
|
39
|
+
exit "$status"
|
|
40
|
+
fi
|
|
41
|
+
cat alerts.txt
|
|
42
|
+
count=$(wc -l < alerts.txt)
|
|
43
|
+
if [ "$count" -gt 0 ]; then
|
|
44
|
+
{
|
|
45
|
+
echo "### Vale: $count alert(s)"
|
|
46
|
+
echo '```'
|
|
47
|
+
cat alerts.txt
|
|
48
|
+
echo '```'
|
|
49
|
+
} >> "$GITHUB_STEP_SUMMARY"
|
|
50
|
+
echo "::error::Vale reported $count alert(s)"
|
|
51
|
+
exit 1
|
|
52
|
+
fi
|
|
53
|
+
echo "Vale is clean."
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Python-generated files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[oc]
|
|
4
|
+
build/
|
|
5
|
+
dist/
|
|
6
|
+
wheels/
|
|
7
|
+
*.egg-info
|
|
8
|
+
|
|
9
|
+
# Virtual environments
|
|
10
|
+
.venv
|
|
11
|
+
|
|
12
|
+
# Rust
|
|
13
|
+
target/
|
|
14
|
+
|
|
15
|
+
# The compiled extension. `uv sync` builds it; a committed one goes stale.
|
|
16
|
+
*.so
|
|
17
|
+
*.pyd
|
|
18
|
+
*.dylib
|
|
19
|
+
|
|
20
|
+
# Hypothesis
|
|
21
|
+
.hypothesis/
|
|
22
|
+
|
|
23
|
+
### Vale ###
|
|
24
|
+
# `vale sync` downloads the styles named by `Packages` in .vale.ini into
|
|
25
|
+
# StylesPath. Only the project vocabulary under .vale/config is tracked.
|
|
26
|
+
/.vale/*
|
|
27
|
+
!/.vale/config/
|
|
28
|
+
/.vale/config/*
|
|
29
|
+
!/.vale/config/vocabularies/
|
|
30
|
+
# The repo's own style, alongside the downloaded packages.
|
|
31
|
+
!/.vale/ucgmsim/
|
|
32
|
+
|
|
33
|
+
### Coverage ###
|
|
34
|
+
.coverage
|
|
35
|
+
htmlcov/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.14
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Project vocabulary for Vale. One term per line, treated as a regex.
|
|
2
|
+
|
|
3
|
+
# The format and the tools around it
|
|
4
|
+
SRF
|
|
5
|
+
EMOD3D
|
|
6
|
+
genslip
|
|
7
|
+
codec
|
|
8
|
+
docstrings
|
|
9
|
+
NumPy
|
|
10
|
+
[Dd]ataclass(?:es)?
|
|
11
|
+
toolchain
|
|
12
|
+
scipy
|
|
13
|
+
nom
|
|
14
|
+
[Ss]ubfaults?
|
|
15
|
+
|
|
16
|
+
# Places in the test fixtures
|
|
17
|
+
Darfield
|
|
18
|
+
Christchurch
|
|
19
|
+
|
|
20
|
+
# British spelling, the house style
|
|
21
|
+
[Cc]entres?
|
|
22
|
+
[Mm]etres?
|
|
23
|
+
[Kk]ilometres?
|
|
24
|
+
[Cc]entimetres?
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
extends: existence
|
|
3
|
+
message: "Figurative 'carry': '%s'. Name what the thing contains, stores, records, sets or applies."
|
|
4
|
+
level: error
|
|
5
|
+
ignorecase: true
|
|
6
|
+
nonword: true
|
|
7
|
+
# `ai-tells.FigurativeCarries` gates on a head-noun list or on a
|
|
8
|
+
# determiner-fronted subject, and by its own account leaves the bare plural
|
|
9
|
+
# subject out because arithmetic prose puts the carry noun in that slot. Four
|
|
10
|
+
# uses in this repo went straight through it:
|
|
11
|
+
#
|
|
12
|
+
# Accelerations carry the 'g0' unit bare plural subject, no determiner
|
|
13
|
+
# ... a real DataArray carries subject and verb split by a newline
|
|
14
|
+
# ... holds column indices and carries coordinated verb, no subject
|
|
15
|
+
# ... the benchmark doesn't carry bare infinitive after an auxiliary
|
|
16
|
+
#
|
|
17
|
+
# This repo has no freight, logistics or biology prose, so it does not need
|
|
18
|
+
# that rule's discrimination: here the word is a smell in every part of speech
|
|
19
|
+
# it has. The tokens below take the verb in all four inflections (finite,
|
|
20
|
+
# infinitive, participle and gerund), the agent noun, and the compound noun.
|
|
21
|
+
#
|
|
22
|
+
# The one sense left alone is the other word spelt the same way: the carry of
|
|
23
|
+
# an adder and the carrier of a modulated signal, both of which name a
|
|
24
|
+
# specific object rather than standing in for "contains". Neither appears in
|
|
25
|
+
# the Python today, but the crate under src-rust/ is numerics and the FFT code
|
|
26
|
+
# is signal processing, so the exemption is cheap insurance against a docstring
|
|
27
|
+
# that has to say "carry bit".
|
|
28
|
+
tokens:
|
|
29
|
+
# Verb in every inflection, and with it the gerund ("the carrying of state")
|
|
30
|
+
# and the participial adjective ("the carrying dimension").
|
|
31
|
+
- '\bcarr(?:y|ies|ied|ying)\b(?\b)'
|
|
32
|
+
# Noun: the compound, which the token above cannot reach because the `\b`
|
|
33
|
+
# after "carry" fails against the following letter.
|
|
34
|
+
- '\bcarry[-\s]?overs?\b'
|
|
35
|
+
# Agent noun.
|
|
36
|
+
- '\bcarriers?\b(?\b)'
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
extends: existence
|
|
3
|
+
message: "ASCII em dash: '%s'. Use a comma, a full stop or parentheses."
|
|
4
|
+
level: error
|
|
5
|
+
nonword: true
|
|
6
|
+
# `ai-tells.DoubleHyphen` matches a bare `--` anywhere, which in a numpydoc
|
|
7
|
+
# docstring means every section underline ("Parameters\n----------") and every
|
|
8
|
+
# `# ---` banner comment. That is why .vale.ini switches it off, and switching
|
|
9
|
+
# it off is what let the ASCII em dash back in.
|
|
10
|
+
#
|
|
11
|
+
# The spaced form is the one that is always punctuation, and it is separable:
|
|
12
|
+
# an underline and a banner are an unbroken run of hyphens, so no whitespace
|
|
13
|
+
# ever sits between them. Requiring whitespace on both sides of exactly two
|
|
14
|
+
# hyphens takes the punctuation and leaves the underlines alone. A CLI flag
|
|
15
|
+
# (`--all-extras`) has no trailing space either, so it stays quiet too, which
|
|
16
|
+
# is the other half of what the upstream rule's message asks for.
|
|
17
|
+
#
|
|
18
|
+
# `ai-tells.EmDashUsage` bans the real em dash as well, so the fix here is the
|
|
19
|
+
# comma, the full stop or the parentheses, not a nicer-looking dash.
|
|
20
|
+
tokens:
|
|
21
|
+
- '\s--\s'
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
StylesPath = .vale
|
|
2
|
+
|
|
3
|
+
# Pinned to a release tag rather than named. A bare name resolves through the
|
|
4
|
+
# Vale package registry to `releases/latest/download`, so `vale sync` fetches
|
|
5
|
+
# whatever the package is on the day the job runs, and CI turns red on a commit
|
|
6
|
+
# that changed nothing. ai-tells alone shipped `ConsequenceClause`,
|
|
7
|
+
# `ConsequenceParticiple` and `FigurativeWorth` between two pushes to this
|
|
8
|
+
# branch. Vale derives the style name from the zip filename, so the names under
|
|
9
|
+
# `BasedOnStyles` are unchanged.
|
|
10
|
+
#
|
|
11
|
+
# Bump these on purpose: check the releases pages, raise the tag, run
|
|
12
|
+
# `vale sync`, and fix the prose the new rules find in its own commit.
|
|
13
|
+
Packages = https://github.com/tbhb/vale-ai-tells/releases/download/v1.37.0/ai-tells.zip, https://github.com/vale-cli/proselint/releases/download/v0.3.4/proselint.zip, https://github.com/vale-cli/Google/releases/download/v0.7.1/Google.zip
|
|
14
|
+
|
|
15
|
+
Vocab = srf
|
|
16
|
+
|
|
17
|
+
[*.md]
|
|
18
|
+
BasedOnStyles = Vale, ai-tells, proselint, Google, ucgmsim
|
|
19
|
+
|
|
20
|
+
[*.{py,pyi,rs}]
|
|
21
|
+
BasedOnStyles = ai-tells, proselint, Google, ucgmsim
|
|
22
|
+
|
|
23
|
+
# ---------------------------------------------------------------------------
|
|
24
|
+
# Vale has no reStructuredText or numpydoc parser, and no way to scope a rule
|
|
25
|
+
# inside a source file: TokenIgnores, BlockIgnores and `vale off` comments all
|
|
26
|
+
# apply to markup formats only. So numpydoc section underlines, `name : type`
|
|
27
|
+
# parameter lines, array shapes, doctest blocks and inline literals reach
|
|
28
|
+
# these rules as ordinary prose, and switching the rule off for Python is the
|
|
29
|
+
# only lever available.
|
|
30
|
+
# ---------------------------------------------------------------------------
|
|
31
|
+
|
|
32
|
+
# Section underlines ("Parameters\n----------") and `# ---` comment banners.
|
|
33
|
+
# `ucgmsim.DoubleHyphen` takes the spaced form this leaves behind, which is
|
|
34
|
+
# the one that is always punctuation.
|
|
35
|
+
ai-tells.DoubleHyphen = NO
|
|
36
|
+
# The `name : type` parameter lines every numpydoc docstring is made of.
|
|
37
|
+
ai-tells.ColonUsage = NO
|
|
38
|
+
# Array shapes `(n_points,)`, call signatures and the units that qualify
|
|
39
|
+
# almost every column: "slip rate (cm/s)".
|
|
40
|
+
Google.Parens = NO
|
|
41
|
+
# A dotted name reads as a missing space after a period: "'d.D' should have
|
|
42
|
+
# one space" for `np.float32`.
|
|
43
|
+
Google.Spacing = NO
|
|
44
|
+
# The format's names are the vocabulary here: SRF, CGS, CSR, EMOD3D. The rule
|
|
45
|
+
# wants each spelled out in the file that uses it, which per-module reference
|
|
46
|
+
# docs cannot do.
|
|
47
|
+
Google.Acronyms = NO
|
|
48
|
+
# Elided arguments in prose and doctests, `apply_ufunc(..., dask=...)`.
|
|
49
|
+
Google.Ellipses = NO
|
|
50
|
+
proselint.Typography = NO
|
|
51
|
+
# Punctuation next to a backticked identifier, as in `dataset.attrs["name"]`.
|
|
52
|
+
Google.Quotes = NO
|
|
53
|
+
# TODO, FIXME and NOTE are code annotations, not prose left unfinished.
|
|
54
|
+
proselint.Annotations = NO
|
|
55
|
+
|
|
56
|
+
# ---------------------------------------------------------------------------
|
|
57
|
+
# Domain vocabulary that general-prose rules read as figure of speech.
|
|
58
|
+
# ---------------------------------------------------------------------------
|
|
59
|
+
|
|
60
|
+
# "shape" is the array dimension tuple, which the rule's own guidance names as
|
|
61
|
+
# an exemption.
|
|
62
|
+
ai-tells.FigurativeShape = NO
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# yamllint's defaults are written for hand-authored documents, and every YAML
|
|
2
|
+
# file in this repo is a GitHub Actions workflow. Without this the pre-push
|
|
3
|
+
# yamllint hook fires on all of them for things Actions requires.
|
|
4
|
+
extends: default
|
|
5
|
+
|
|
6
|
+
rules:
|
|
7
|
+
# Workflows are not multi-document streams and GitHub does not want a
|
|
8
|
+
# leading `---`.
|
|
9
|
+
document-start: disable
|
|
10
|
+
# `on:` is the Actions trigger key, not the YAML 1.1 boolean `on`.
|
|
11
|
+
truthy:
|
|
12
|
+
check-keys: false
|
|
13
|
+
# Job names, action refs and ${{ }} expressions do not wrap. 140 clears the
|
|
14
|
+
# longest line in the repo, publish-PyPI.yml's `run-name:` expression.
|
|
15
|
+
line-length:
|
|
16
|
+
max: 140
|
|
17
|
+
allow-non-breakable-words: true
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "autocfg"
|
|
7
|
+
version = "1.5.1"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "heck"
|
|
13
|
+
version = "0.5.0"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
16
|
+
|
|
17
|
+
[[package]]
|
|
18
|
+
name = "lexical-core"
|
|
19
|
+
version = "1.0.6"
|
|
20
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
21
|
+
checksum = "7d8d125a277f807e55a77304455eb7b1cb52f2b18c143b60e766c120bd64a594"
|
|
22
|
+
dependencies = [
|
|
23
|
+
"lexical-parse-float",
|
|
24
|
+
"lexical-parse-integer",
|
|
25
|
+
"lexical-util",
|
|
26
|
+
"lexical-write-float",
|
|
27
|
+
"lexical-write-integer",
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
[[package]]
|
|
31
|
+
name = "lexical-parse-float"
|
|
32
|
+
version = "1.0.6"
|
|
33
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
34
|
+
checksum = "52a9f232fbd6f550bc0137dcb5f99ab674071ac2d690ac69704593cb4abbea56"
|
|
35
|
+
dependencies = [
|
|
36
|
+
"lexical-parse-integer",
|
|
37
|
+
"lexical-util",
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
[[package]]
|
|
41
|
+
name = "lexical-parse-integer"
|
|
42
|
+
version = "1.0.6"
|
|
43
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
44
|
+
checksum = "9a7a039f8fb9c19c996cd7b2fcce303c1b2874fe1aca544edc85c4a5f8489b34"
|
|
45
|
+
dependencies = [
|
|
46
|
+
"lexical-util",
|
|
47
|
+
]
|
|
48
|
+
|
|
49
|
+
[[package]]
|
|
50
|
+
name = "lexical-util"
|
|
51
|
+
version = "1.0.7"
|
|
52
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
53
|
+
checksum = "2604dd126bb14f13fb5d1bd6a66155079cb9fa655b37f875b3a742c705dbed17"
|
|
54
|
+
|
|
55
|
+
[[package]]
|
|
56
|
+
name = "lexical-write-float"
|
|
57
|
+
version = "1.0.6"
|
|
58
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
59
|
+
checksum = "50c438c87c013188d415fbabbb1dceb44249ab81664efbd31b14ae55dabb6361"
|
|
60
|
+
dependencies = [
|
|
61
|
+
"lexical-util",
|
|
62
|
+
"lexical-write-integer",
|
|
63
|
+
]
|
|
64
|
+
|
|
65
|
+
[[package]]
|
|
66
|
+
name = "lexical-write-integer"
|
|
67
|
+
version = "1.0.6"
|
|
68
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
69
|
+
checksum = "409851a618475d2d5796377cad353802345cba92c867d9fbcde9cf4eac4e14df"
|
|
70
|
+
dependencies = [
|
|
71
|
+
"lexical-util",
|
|
72
|
+
]
|
|
73
|
+
|
|
74
|
+
[[package]]
|
|
75
|
+
name = "libc"
|
|
76
|
+
version = "0.2.190"
|
|
77
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
78
|
+
checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78"
|
|
79
|
+
|
|
80
|
+
[[package]]
|
|
81
|
+
name = "matrixmultiply"
|
|
82
|
+
version = "0.3.11"
|
|
83
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
84
|
+
checksum = "3f607c237553f086e7043417a51df26b2eb899d3caff94e6a67592ff992fedc7"
|
|
85
|
+
dependencies = [
|
|
86
|
+
"autocfg",
|
|
87
|
+
"rawpointer",
|
|
88
|
+
]
|
|
89
|
+
|
|
90
|
+
[[package]]
|
|
91
|
+
name = "memchr"
|
|
92
|
+
version = "2.8.3"
|
|
93
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
94
|
+
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
|
95
|
+
|
|
96
|
+
[[package]]
|
|
97
|
+
name = "ndarray"
|
|
98
|
+
version = "0.17.2"
|
|
99
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
100
|
+
checksum = "520080814a7a6b4a6e9070823bb24b4531daac8c4627e08ba5de8c5ef2f2752d"
|
|
101
|
+
dependencies = [
|
|
102
|
+
"matrixmultiply",
|
|
103
|
+
"num-complex",
|
|
104
|
+
"num-integer",
|
|
105
|
+
"num-traits",
|
|
106
|
+
"portable-atomic",
|
|
107
|
+
"portable-atomic-util",
|
|
108
|
+
"rawpointer",
|
|
109
|
+
]
|
|
110
|
+
|
|
111
|
+
[[package]]
|
|
112
|
+
name = "nom"
|
|
113
|
+
version = "8.0.0"
|
|
114
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
115
|
+
checksum = "df9761775871bdef83bee530e60050f7e54b1105350d6884eb0fb4f46c2f9405"
|
|
116
|
+
dependencies = [
|
|
117
|
+
"memchr",
|
|
118
|
+
]
|
|
119
|
+
|
|
120
|
+
[[package]]
|
|
121
|
+
name = "num-complex"
|
|
122
|
+
version = "0.4.6"
|
|
123
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
124
|
+
checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
|
|
125
|
+
dependencies = [
|
|
126
|
+
"num-traits",
|
|
127
|
+
]
|
|
128
|
+
|
|
129
|
+
[[package]]
|
|
130
|
+
name = "num-integer"
|
|
131
|
+
version = "0.1.47"
|
|
132
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
133
|
+
checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b"
|
|
134
|
+
dependencies = [
|
|
135
|
+
"num-traits",
|
|
136
|
+
]
|
|
137
|
+
|
|
138
|
+
[[package]]
|
|
139
|
+
name = "num-traits"
|
|
140
|
+
version = "0.2.19"
|
|
141
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
142
|
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
143
|
+
dependencies = [
|
|
144
|
+
"autocfg",
|
|
145
|
+
]
|
|
146
|
+
|
|
147
|
+
[[package]]
|
|
148
|
+
name = "numpy"
|
|
149
|
+
version = "0.29.0"
|
|
150
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
151
|
+
checksum = "6a5b15d63a5ff39e378daed0e1340d3a5964703ea9712eb09a0dc66fade996f4"
|
|
152
|
+
dependencies = [
|
|
153
|
+
"libc",
|
|
154
|
+
"ndarray",
|
|
155
|
+
"num-complex",
|
|
156
|
+
"num-integer",
|
|
157
|
+
"num-traits",
|
|
158
|
+
"pyo3",
|
|
159
|
+
"pyo3-build-config",
|
|
160
|
+
"rustc-hash",
|
|
161
|
+
]
|
|
162
|
+
|
|
163
|
+
[[package]]
|
|
164
|
+
name = "once_cell"
|
|
165
|
+
version = "1.21.4"
|
|
166
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
167
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
168
|
+
|
|
169
|
+
[[package]]
|
|
170
|
+
name = "portable-atomic"
|
|
171
|
+
version = "1.15.0"
|
|
172
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
173
|
+
checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
|
|
174
|
+
|
|
175
|
+
[[package]]
|
|
176
|
+
name = "portable-atomic-util"
|
|
177
|
+
version = "0.2.8"
|
|
178
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
179
|
+
checksum = "10ab3eb7f3becc3a1cbc4f2c6f20267996cfc1a6467a873763411b136a122715"
|
|
180
|
+
dependencies = [
|
|
181
|
+
"portable-atomic",
|
|
182
|
+
]
|
|
183
|
+
|
|
184
|
+
[[package]]
|
|
185
|
+
name = "proc-macro2"
|
|
186
|
+
version = "1.0.107"
|
|
187
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
188
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
189
|
+
dependencies = [
|
|
190
|
+
"unicode-ident",
|
|
191
|
+
]
|
|
192
|
+
|
|
193
|
+
[[package]]
|
|
194
|
+
name = "pyo3"
|
|
195
|
+
version = "0.29.3"
|
|
196
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
197
|
+
checksum = "700d18fa267b73b9b521fd7e13580e2f446916f176cacee1ab63fcc8191f1655"
|
|
198
|
+
dependencies = [
|
|
199
|
+
"libc",
|
|
200
|
+
"once_cell",
|
|
201
|
+
"portable-atomic",
|
|
202
|
+
"pyo3-build-config",
|
|
203
|
+
"pyo3-ffi",
|
|
204
|
+
"pyo3-macros",
|
|
205
|
+
]
|
|
206
|
+
|
|
207
|
+
[[package]]
|
|
208
|
+
name = "pyo3-build-config"
|
|
209
|
+
version = "0.29.3"
|
|
210
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
211
|
+
checksum = "7b3fc0c4d08f6bb10e71fe39dfb9e2f59c6eb6854e22ec8092f50c69a4499adb"
|
|
212
|
+
dependencies = [
|
|
213
|
+
"target-lexicon",
|
|
214
|
+
]
|
|
215
|
+
|
|
216
|
+
[[package]]
|
|
217
|
+
name = "pyo3-ffi"
|
|
218
|
+
version = "0.29.3"
|
|
219
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
220
|
+
checksum = "dfc0b8e19df29aad7086cf977bb0c2a2f143e30567eb113e9cf72b62ca698330"
|
|
221
|
+
dependencies = [
|
|
222
|
+
"libc",
|
|
223
|
+
"pyo3-build-config",
|
|
224
|
+
]
|
|
225
|
+
|
|
226
|
+
[[package]]
|
|
227
|
+
name = "pyo3-macros"
|
|
228
|
+
version = "0.29.3"
|
|
229
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
230
|
+
checksum = "6100e8a4b5eba53afaa5ed078364851a0b2499c553a44c31026b929049b49dc6"
|
|
231
|
+
dependencies = [
|
|
232
|
+
"proc-macro2",
|
|
233
|
+
"pyo3-macros-backend",
|
|
234
|
+
"quote",
|
|
235
|
+
"syn 2.0.119",
|
|
236
|
+
]
|
|
237
|
+
|
|
238
|
+
[[package]]
|
|
239
|
+
name = "pyo3-macros-backend"
|
|
240
|
+
version = "0.29.3"
|
|
241
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
242
|
+
checksum = "6143877a16e82b5a727b7127ff4cd86858a24a28d745d72f43e6f227c7b1bdb3"
|
|
243
|
+
dependencies = [
|
|
244
|
+
"heck",
|
|
245
|
+
"proc-macro2",
|
|
246
|
+
"quote",
|
|
247
|
+
"syn 2.0.119",
|
|
248
|
+
]
|
|
249
|
+
|
|
250
|
+
[[package]]
|
|
251
|
+
name = "quote"
|
|
252
|
+
version = "1.0.47"
|
|
253
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
254
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
255
|
+
dependencies = [
|
|
256
|
+
"proc-macro2",
|
|
257
|
+
]
|
|
258
|
+
|
|
259
|
+
[[package]]
|
|
260
|
+
name = "rawpointer"
|
|
261
|
+
version = "0.2.1"
|
|
262
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
263
|
+
checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
|
|
264
|
+
|
|
265
|
+
[[package]]
|
|
266
|
+
name = "rustc-hash"
|
|
267
|
+
version = "2.1.3"
|
|
268
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
269
|
+
checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
|
|
270
|
+
|
|
271
|
+
[[package]]
|
|
272
|
+
name = "srf"
|
|
273
|
+
version = "0.1.0"
|
|
274
|
+
dependencies = [
|
|
275
|
+
"lexical-core",
|
|
276
|
+
"nom",
|
|
277
|
+
"numpy",
|
|
278
|
+
"pyo3",
|
|
279
|
+
"thiserror",
|
|
280
|
+
]
|
|
281
|
+
|
|
282
|
+
[[package]]
|
|
283
|
+
name = "syn"
|
|
284
|
+
version = "2.0.119"
|
|
285
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
286
|
+
checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
|
|
287
|
+
dependencies = [
|
|
288
|
+
"proc-macro2",
|
|
289
|
+
"quote",
|
|
290
|
+
"unicode-ident",
|
|
291
|
+
]
|
|
292
|
+
|
|
293
|
+
[[package]]
|
|
294
|
+
name = "syn"
|
|
295
|
+
version = "3.0.9"
|
|
296
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
297
|
+
checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
|
|
298
|
+
dependencies = [
|
|
299
|
+
"proc-macro2",
|
|
300
|
+
"quote",
|
|
301
|
+
"unicode-ident",
|
|
302
|
+
]
|
|
303
|
+
|
|
304
|
+
[[package]]
|
|
305
|
+
name = "target-lexicon"
|
|
306
|
+
version = "0.13.5"
|
|
307
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
308
|
+
checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
|
|
309
|
+
|
|
310
|
+
[[package]]
|
|
311
|
+
name = "thiserror"
|
|
312
|
+
version = "2.0.21"
|
|
313
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
314
|
+
checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e"
|
|
315
|
+
dependencies = [
|
|
316
|
+
"thiserror-impl",
|
|
317
|
+
]
|
|
318
|
+
|
|
319
|
+
[[package]]
|
|
320
|
+
name = "thiserror-impl"
|
|
321
|
+
version = "2.0.21"
|
|
322
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
323
|
+
checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
|
|
324
|
+
dependencies = [
|
|
325
|
+
"proc-macro2",
|
|
326
|
+
"quote",
|
|
327
|
+
"syn 3.0.9",
|
|
328
|
+
]
|
|
329
|
+
|
|
330
|
+
[[package]]
|
|
331
|
+
name = "unicode-ident"
|
|
332
|
+
version = "1.0.27"
|
|
333
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
334
|
+
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "srf"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
edition = "2024"
|
|
5
|
+
license = "MIT"
|
|
6
|
+
description = "Reading and writing the Standard Rupture Format, as a Python extension."
|
|
7
|
+
publish = false
|
|
8
|
+
|
|
9
|
+
[lib]
|
|
10
|
+
name = "_core"
|
|
11
|
+
crate-type = ["cdylib", "rlib"]
|
|
12
|
+
|
|
13
|
+
[dependencies]
|
|
14
|
+
lexical-core = "1.0.6"
|
|
15
|
+
nom = "8"
|
|
16
|
+
numpy = "0.29"
|
|
17
|
+
pyo3 = { version = "0.29", features = ["extension-module"] }
|
|
18
|
+
thiserror = "2"
|
|
19
|
+
|
|
20
|
+
[lints.clippy]
|
|
21
|
+
# Clippy at zero is a gate, not an aspiration. Lints are `warn`, never `deny`; a
|
|
22
|
+
# suppression is a targeted #[allow] with the reason written beside it. CI runs
|
|
23
|
+
# clippy with -D warnings.
|
|
24
|
+
all = { level = "warn", priority = -1 }
|
|
25
|
+
pedantic = { level = "warn", priority = -1 }
|