Commit 7bc80a7
authored
Fix download logic (#230)
* 👽 Remove workaround now that upstream change has been merged
* ✨ Check dataset status before deciding what to do with it
* ✨ Add simple function to load in chunks using native Anemoi functionality
* ✨ Add an initialise function to wrap Anemoi Init
* ♻️ Replace download Create with download in parts
* ⚰️ Remove load_in_parts and associated tracking functionality as this is handled directly by Anemoi
* ⚰️ Remove init command and CLI
* ⚰️ Remove load command and CLI
* 🚚 Alphabetise DataDownloader methods
* 🚸 Also check whether statistics are ready before finalising
* 🐛 Remove invalid datasets whether or not they appear to be complete
* ⚰️ Removed tests for removed code
* ⚗️ Test whether chunk-checking is sufficient to cause downloads to resume
* 🔧 Default to statistics=False when inspecting
* 🥅 Exit gracefully when inspect fails during download
* 🔧 Do not set progress when detailed is set or the same information is printed twice
* 🐛 If only the statistics are missing we need to finalise
* 🚨 Perform explicit type checking to avoid linting errors
* 🐛 Finalise when statistics are *not* ready
* 🐛 Ensure that typer.Exit is raised
* 🥅 Raise exception if status cannot be retrieved, rather than using default values
* ⚰️ Removed the unused finalise CLI command1 parent 6eefed7 commit 7bc80a7
9 files changed
Lines changed: 138 additions & 991 deletions
File tree
- icenet_mp
- cli
- data_processors
- types
- tests
- data_processors
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 35 | + | |
46 | 36 | | |
47 | 37 | | |
48 | | - | |
49 | | - | |
| 38 | + | |
| 39 | + | |
50 | 40 | | |
51 | 41 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 42 | + | |
118 | 43 | | |
119 | 44 | | |
120 | 45 | | |
121 | | - | |
| 46 | + | |
122 | 47 | | |
123 | 48 | | |
124 | 49 | | |
| |||
0 commit comments