File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,9 @@ def update_alias_range_dimension(fname):
143
143
dims = list ()
144
144
with h5py .File (fname , mode = "r" ) as hfile :
145
145
for block in hfile ["data" ].values ():
146
+ if "data_arrays" not in block :
147
+ continue
148
+
146
149
for data_array in block ["data_arrays" ].values ():
147
150
if "dimensions" not in data_array :
148
151
continue
@@ -215,11 +218,13 @@ def update_ver():
215
218
216
219
217
220
def collect_tasks (fname ):
221
+ print (f"{ fname } :" )
222
+
218
223
file_ver = get_file_version (fname )
219
224
file_verstr = "." .join (str (v ) for v in file_ver )
220
225
lib_verstr = "." .join (str (v ) for v in nix .file .HDF_FF_VERSION )
221
226
if file_ver >= nix .file .HDF_FF_VERSION :
222
- print (f"{ fname } : Up to date ({ file_verstr } )" )
227
+ print (f" Up to date ({ file_verstr } )" )
223
228
return
224
229
225
230
# even if the version string indicates the file is old, check format
@@ -241,7 +246,7 @@ def collect_tasks(fname):
241
246
tasks .append (update_format_version (fname ))
242
247
243
248
# print task list
244
- print (f"{ fname } : { file_verstr } -> { lib_verstr } " )
249
+ print (f" { file_verstr } -> { lib_verstr } " )
245
250
print (" - " + "\n - " .join (t .__doc__ for t in tasks ) + "\n " )
246
251
247
252
return tasks
You can’t perform that action at this time.
0 commit comments