Commit f635416
authored
Adds code to construct inputs for the compiled code (#25)
* Tidies up configs for pydantic models
* Moves enums into "utils/enums.py"
* First draft of "inputs.py" code to construct inputs for compiled code
* Renames enums
* Moves definition of dataclasses to "utils/dataclasses.py"
* Tidies up "inputs" module with "make_problem"2" and "make_cells" routines
* Adds offset to the "index" routine in "classList.py"
* Adds "NaNList" class to "tests/utils.py"
* Adds "test_inputs.py", and corrects code in "inputs.py"
* Adjusts tests to fit with pybind example
* Updates code to ensure tests pass
* Renames parameters to match matlab updates
* Converts "inputs.py" to use C++ objects directly.
* Renames "misc.py" as "wrappers.py" and "Calc" enum as "Calculations"
* Adds background actions to the contrast model
* Adds file wrappers to "make"cells"
* Adds additional examples to "test_inputs.py" to improve test coverage"
* Adds code to support recording custom files in "make_cells"
* Updates submodule and tidying up
* Updates requirements
* . . .and "pyproject.toml"
* Fixes pydantic to version 2.6.4
* . . . and "setup.py"
* Sort out version requirements
* Addresses review comments and import statements
* Changes parameters from optional to compulsory in "Layer" and "AbsorptionLayer" models
* Enables optional hydration in layer models1 parent b62c5d4 commit f635416
File tree
22 files changed
+1595
-627
lines changed- RAT
- utils
- cpp
- tests
22 files changed
+1595
-627
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
200 | | - | |
| 201 | + | |
201 | 202 | | |
202 | | - | |
| 203 | + | |
| 204 | + | |
203 | 205 | | |
204 | | - | |
| 206 | + | |
205 | 207 | | |
206 | 208 | | |
207 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | | - | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
9 | 47 | | |
10 | 48 | | |
11 | 49 | | |
12 | | - | |
| 50 | + | |
13 | 51 | | |
14 | | - | |
15 | | - | |
| 52 | + | |
| 53 | + | |
16 | 54 | | |
17 | | - | |
| 55 | + | |
18 | 56 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
25 | 63 | | |
26 | 64 | | |
27 | 65 | | |
| |||
30 | 68 | | |
31 | 69 | | |
32 | 70 | | |
33 | | - | |
| 71 | + | |
34 | 72 | | |
35 | 73 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
40 | 78 | | |
41 | | - | |
| 79 | + | |
42 | 80 | | |
43 | 81 | | |
44 | | - | |
| 82 | + | |
45 | 83 | | |
46 | 84 | | |
47 | 85 | | |
48 | 86 | | |
49 | 87 | | |
50 | | - | |
| 88 | + | |
51 | 89 | | |
52 | 90 | | |
53 | 91 | | |
54 | 92 | | |
55 | | - | |
| 93 | + | |
56 | 94 | | |
57 | 95 | | |
58 | | - | |
59 | | - | |
| 96 | + | |
| 97 | + | |
60 | 98 | | |
61 | 99 | | |
62 | 100 | | |
63 | 101 | | |
64 | | - | |
| 102 | + | |
65 | 103 | | |
66 | 104 | | |
67 | 105 | | |
68 | 106 | | |
69 | | - | |
| 107 | + | |
70 | 108 | | |
71 | | - | |
| 109 | + | |
| 110 | + | |
72 | 111 | | |
73 | 112 | | |
74 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
0 commit comments