Commit df7313d
authored
Merge pull request #78 from StagPython/plates-refactor
Refactor plates module and expose a public API
This PR is a full refactoring of the plates module to make it easier to
maintain, expand, and use in a user script. The main improvements are:
* `detect_plates` and `detect_plates_vzcheck` are merged in one routine
`detect_plates`.
* New command line arguments `--vzratio`, `+-distribution` and `+-nbplates`
allow the user to switch on the use of `vzabs` when detecting plate limits,
plotting of plate size distribution, and plotting of number of plates as a
function of time.
* the new `+-continents` argument switches the detection of continents and the
related decorations on plots.
* `-o/--plot` now works in a similar way to eponym options of `field`, `rprof`,
and `time` subcommands. The `plates` subcommand plots the requested surface
diagnostics. The later can be surface fields, fields, or `"dv2"` (which is
`d(vphi)/dphi`).
* the public api of the plates module (`detect_plates` and two plotting
routines `plot_at_surface` and `plot_scalar_field`) is documented and
available in user scripts.File tree
8 files changed
+314
-789
lines changed- docs/sources/apiref
- stagpy
- tests
8 files changed
+314
-789
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 88 | | |
102 | 89 | | |
103 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | 145 | | |
149 | 146 | | |
150 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
189 | 200 | | |
190 | 201 | | |
191 | 202 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | 203 | | |
215 | 204 | | |
216 | 205 | | |
| |||
229 | 218 | | |
230 | 219 | | |
231 | 220 | | |
232 | | - | |
233 | | - | |
234 | 221 | | |
235 | 222 | | |
236 | 223 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | 166 | | |
184 | 167 | | |
185 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | 265 | | |
277 | 266 | | |
278 | 267 | | |
| |||
0 commit comments