wias 0.1.0__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.
wias-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Nicolas Boulle
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.
wias-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,75 @@
1
+ Metadata-Version: 2.4
2
+ Name: wias
3
+ Version: 0.1.0
4
+ Summary: Weak Identification of Analytic Systems
5
+ Author: Nicolas Boulle, Diana Halikias, Samuel E. Otto, Alex Townsend
6
+ License: MIT
7
+ Requires-Python: >=3.10
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: numpy
11
+ Requires-Dist: scipy
12
+ Provides-Extra: plot
13
+ Requires-Dist: matplotlib; extra == "plot"
14
+ Dynamic: license-file
15
+
16
+ # wias — Weak Identification of Analytic Systems
17
+
18
+ `wias` is a Python library for data-driven identification of analytic systems in weak form based on the paper: [A zero-one law for one-shot system identification
19
+ ](https://arxiv.org/abs/2607.15832) by Nicolas Boullé, Diana Halikias, Samuel E. Otto, and Alex Townsend.
20
+
21
+ ## Features
22
+
23
+ - Weak-form assembly for **first- and second-order ODE** systems
24
+ - Sinusoidal test-function basis construction
25
+ - Column-pivoted QR solver (`CPQR_solver`) for coefficient recovery
26
+ - **PDE support** via optional [Firedrake](https://www.firedrakeproject.org/) integration for finite-element weak-form assembly
27
+ - Recovery of linearly-parametrized matrix families
28
+
29
+ ## Examples
30
+
31
+ ### Lorenz attractor
32
+
33
+ The identified model accurately reconstructs the chaotic Lorenz trajectory from noisy data.
34
+
35
+ ![Lorenz attractor: true vs recovered](Figure/lorenz.png)
36
+
37
+ ### Duffing oscillator
38
+
39
+ The phase portrait and time series of the identified Duffing oscillator match the ground truth closely over long integration times.
40
+
41
+ ![Duffing oscillator: true vs recovered](Figure/duffing.png)
42
+
43
+ More examples are available in the [`examples/`](examples/) folder, including Allen–Cahn, Navier–Stokes, and Hankel/circulant matrix problems.
44
+
45
+ ### Level-set for algebraic equations
46
+
47
+ Compute zero level set of a parameter-to-recovery map to identify inputs that lie in the degenerate set and do not allow recovery of the underlying system.
48
+
49
+ <img src="Figure/levelset_3d.png" alt="Level-set 3D visualization" width="400"/>
50
+
51
+
52
+ ## Installation
53
+
54
+ ```bash
55
+ git clone https://github.com/NBoulle/wias
56
+ cd wias
57
+ pip install .
58
+ ```
59
+
60
+ ### Optional: Firedrake (PDE support)
61
+
62
+ PDE identification via `wias.weak_assembly` requires [Firedrake](https://www.firedrakeproject.org/). Follow the official installation instructions at [https://www.firedrakeproject.org/install.html](https://www.firedrakeproject.org/install.html). Once installed, `assemble_weak_library_rows` becomes available automatically.
63
+
64
+
65
+ ## Citing WIAS
66
+ If you use `wias` in your research, please cite the following paper:
67
+
68
+ ```bibtex
69
+ @article{boulle2026zero,
70
+ title={A zero-one law for one-shot system identification},
71
+ author={Boull\'e, Nicolas and Halikias, Diana and Otto, Samuel E. and Townsend, Alex},
72
+ journal={arXiv preprint arXiv:2607.15832},
73
+ year={2026}
74
+ }
75
+ ```
wias-0.1.0/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # wias — Weak Identification of Analytic Systems
2
+
3
+ `wias` is a Python library for data-driven identification of analytic systems in weak form based on the paper: [A zero-one law for one-shot system identification
4
+ ](https://arxiv.org/abs/2607.15832) by Nicolas Boullé, Diana Halikias, Samuel E. Otto, and Alex Townsend.
5
+
6
+ ## Features
7
+
8
+ - Weak-form assembly for **first- and second-order ODE** systems
9
+ - Sinusoidal test-function basis construction
10
+ - Column-pivoted QR solver (`CPQR_solver`) for coefficient recovery
11
+ - **PDE support** via optional [Firedrake](https://www.firedrakeproject.org/) integration for finite-element weak-form assembly
12
+ - Recovery of linearly-parametrized matrix families
13
+
14
+ ## Examples
15
+
16
+ ### Lorenz attractor
17
+
18
+ The identified model accurately reconstructs the chaotic Lorenz trajectory from noisy data.
19
+
20
+ ![Lorenz attractor: true vs recovered](Figure/lorenz.png)
21
+
22
+ ### Duffing oscillator
23
+
24
+ The phase portrait and time series of the identified Duffing oscillator match the ground truth closely over long integration times.
25
+
26
+ ![Duffing oscillator: true vs recovered](Figure/duffing.png)
27
+
28
+ More examples are available in the [`examples/`](examples/) folder, including Allen–Cahn, Navier–Stokes, and Hankel/circulant matrix problems.
29
+
30
+ ### Level-set for algebraic equations
31
+
32
+ Compute zero level set of a parameter-to-recovery map to identify inputs that lie in the degenerate set and do not allow recovery of the underlying system.
33
+
34
+ <img src="Figure/levelset_3d.png" alt="Level-set 3D visualization" width="400"/>
35
+
36
+
37
+ ## Installation
38
+
39
+ ```bash
40
+ git clone https://github.com/NBoulle/wias
41
+ cd wias
42
+ pip install .
43
+ ```
44
+
45
+ ### Optional: Firedrake (PDE support)
46
+
47
+ PDE identification via `wias.weak_assembly` requires [Firedrake](https://www.firedrakeproject.org/). Follow the official installation instructions at [https://www.firedrakeproject.org/install.html](https://www.firedrakeproject.org/install.html). Once installed, `assemble_weak_library_rows` becomes available automatically.
48
+
49
+
50
+ ## Citing WIAS
51
+ If you use `wias` in your research, please cite the following paper:
52
+
53
+ ```bibtex
54
+ @article{boulle2026zero,
55
+ title={A zero-one law for one-shot system identification},
56
+ author={Boull\'e, Nicolas and Halikias, Diana and Otto, Samuel E. and Townsend, Alex},
57
+ journal={arXiv preprint arXiv:2607.15832},
58
+ year={2026}
59
+ }
60
+ ```
@@ -0,0 +1,25 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "wias"
7
+ version = "0.1.0"
8
+ description = "Weak Identification of Analytic Systems"
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = { text = "MIT" }
12
+ authors = [
13
+ { name = "Nicolas Boulle, Diana Halikias, Samuel E. Otto, Alex Townsend" },
14
+ ]
15
+ dependencies = ["numpy", "scipy"]
16
+
17
+ [project.optional-dependencies]
18
+ plot = ["matplotlib"]
19
+
20
+ [tool.setuptools.packages.find]
21
+ include = ["wias"]
22
+
23
+ [tool.pytest.ini_options]
24
+ testpaths = ["tests", "."]
25
+ python_files = ["test_*.py", "*_test.py"]
wias-0.1.0/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+