Commit c3a0ff2
committed
API changes: Added backwards-compatibility layer for all plotting functions that would otherwise be broke with proposed changes. Deprecation strategy were issued for distinct cases:
- Functions to be removed (plot_cumulative_events_versus_time_dev, plot_histogram, plot_ecdf, plot_magnitude_histogram_dev, add_labels_for_publication) fallback to legacy code and issue warning of future removal.
- Abstracted functions ( [plot_number_test, plot_spatial_test, plot_magnitude_test, plot_likelihood_test] >> plot_test_distribution ; plot_poisson_consistency_test >> plot_consistency test ) also fallback to legacy code and issue deprecation warning hinting the new function and docs.
- Refactored functions with strong API breaks (plot_cumulative_events_versus_time, plot_basemap, plot_consistency_test (when NB-distributed)) adapts to new call with known cases OR fallsback to legacy code.
- Refactored functions with minor API breaks (plot_comparison_test, plot_concentration_ROC_diagram, plot_ROC_diagram, plot_Molchan_diagram) only adapts to new code with known cases without fallback to legacy.
- Renamed function (plot_spatial_dataset >> plot_gridded_dataset) just wraps to correct function.
refac: renamed plot_distribution_test to plot_test_distribution. Added to all catalog-based-test's names the prefix "Catalog" for consistency.
ft: Added 'reset_times' to plot_magnitude_versus_time for backwards compat.
tests: added unit tests for plot_magnitude_versus_time includint reset_times arg.1 parent 8fa6b70 commit c3a0ff2
File tree
5 files changed
+1931
-37
lines changed- csep
- core
- utils
- tests
5 files changed
+1931
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
| 310 | + | |
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
| |||
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
152 | 165 | | |
153 | | - | |
| 166 | + | |
154 | 167 | | |
155 | 168 | | |
156 | 169 | | |
| |||
159 | 172 | | |
160 | 173 | | |
161 | 174 | | |
162 | | - | |
| 175 | + | |
163 | 176 | | |
164 | 177 | | |
165 | 178 | | |
166 | 179 | | |
167 | | - | |
168 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
169 | 184 | | |
170 | | - | |
171 | 185 | | |
172 | 186 | | |
173 | 187 | | |
| |||
177 | 191 | | |
178 | 192 | | |
179 | 193 | | |
180 | | - | |
| 194 | + | |
181 | 195 | | |
182 | 196 | | |
183 | 197 | | |
| |||
232 | 246 | | |
233 | 247 | | |
234 | 248 | | |
235 | | - | |
236 | 249 | | |
237 | 250 | | |
238 | 251 | | |
| |||
507 | 520 | | |
508 | 521 | | |
509 | 522 | | |
510 | | - | |
| 523 | + | |
511 | 524 | | |
512 | 525 | | |
513 | 526 | | |
| |||
887 | 900 | | |
888 | 901 | | |
889 | 902 | | |
890 | | - | |
| 903 | + | |
891 | 904 | | |
892 | 905 | | |
893 | 906 | | |
| |||
1123 | 1136 | | |
1124 | 1137 | | |
1125 | 1138 | | |
1126 | | - | |
| 1139 | + | |
1127 | 1140 | | |
1128 | 1141 | | |
1129 | 1142 | | |
| |||
1282 | 1295 | | |
1283 | 1296 | | |
1284 | 1297 | | |
1285 | | - | |
| 1298 | + | |
1286 | 1299 | | |
1287 | 1300 | | |
1288 | 1301 | | |
| |||
1416 | 1429 | | |
1417 | 1430 | | |
1418 | 1431 | | |
1419 | | - | |
| 1432 | + | |
1420 | 1433 | | |
1421 | 1434 | | |
1422 | 1435 | | |
| |||
1532 | 1545 | | |
1533 | 1546 | | |
1534 | 1547 | | |
1535 | | - | |
| 1548 | + | |
1536 | 1549 | | |
1537 | 1550 | | |
1538 | 1551 | | |
| |||
1659 | 1672 | | |
1660 | 1673 | | |
1661 | 1674 | | |
1662 | | - | |
| 1675 | + | |
1663 | 1676 | | |
1664 | 1677 | | |
1665 | 1678 | | |
| |||
2159 | 2172 | | |
2160 | 2173 | | |
2161 | 2174 | | |
2162 | | - | |
| 2175 | + | |
2163 | 2176 | | |
2164 | 2177 | | |
2165 | 2178 | | |
| |||
2176 | 2189 | | |
2177 | 2190 | | |
2178 | 2191 | | |
2179 | | - | |
| 2192 | + | |
2180 | 2193 | | |
2181 | 2194 | | |
2182 | 2195 | | |
| |||
2187 | 2200 | | |
2188 | 2201 | | |
2189 | 2202 | | |
2190 | | - | |
| 2203 | + | |
2191 | 2204 | | |
2192 | 2205 | | |
2193 | 2206 | | |
| |||
2197 | 2210 | | |
2198 | 2211 | | |
2199 | 2212 | | |
2200 | | - | |
| 2213 | + | |
2201 | 2214 | | |
2202 | 2215 | | |
2203 | 2216 | | |
| |||
2411 | 2424 | | |
2412 | 2425 | | |
2413 | 2426 | | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
| 2445 | + | |
| 2446 | + | |
| 2447 | + | |
| 2448 | + | |
| 2449 | + | |
0 commit comments