Commit 08a6b2b
Add cftime support for non-standard calendars (#344)
* add cftime formatter
* add unittest
* add converter and register units
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* add cftime dep
* add more unittests
* fix some tests
* rm debug
* add more points
* revert regex
* fix resolution
* add more tests and redo resolution computation
* fix f strings
* add more tests for coverage
* Update ultraplot/ticker.py
Co-authored-by: Matthew R. Becker <beckermr@users.noreply.github.com>
* rename classes
* rename classes
* Update ultraplot/ticker.py
Co-authored-by: Matthew R. Becker <beckermr@users.noreply.github.com>
* Update ultraplot/ticker.py
Co-authored-by: Matthew R. Becker <beckermr@users.noreply.github.com>
* safe casting for non-greg calendars
* check that resolution is correct
* check resolution in test_auto_datetime_locator_tick_values
* setters to rc
* add validators
* replace real_world_calendar with internal cftime variable
* use calendar attr lookup
* mv max_display_ticks to rc and spelling
* update defaults
* update defaults
* rename standard_unit time_unit
* fix typo
* remove debug
* remove try block in test
* get calendars from private var
* rm type info from default data range
* simplify type registry
* Replace datetime specific objects with general datetime
* More replacements
* Update ultraplot/tests/test_tickers.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update ultraplot/ticker.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* rm resolution format in ticker
* make standard a bit less extreme
* make standard a bit less extreme
* rm dead comment
* more tests
* refactor tests
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Matthew R. Becker <beckermr@users.noreply.github.com>1 parent b1e2bdc commit 08a6b2b
File tree
4 files changed
+1464
-0
lines changed- ultraplot
- internals
- tests
4 files changed
+1464
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
267 | 298 | | |
268 | 299 | | |
269 | 300 | | |
| |||
997 | 1028 | | |
998 | 1029 | | |
999 | 1030 | | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
1000 | 1058 | | |
1001 | 1059 | | |
1002 | 1060 | | |
| |||
0 commit comments