|
45 | 45 | "stepUnits", |
46 | 46 | "stepType", |
47 | 47 | "gridType", |
48 | | - "uvRelativeToGrid" |
| 48 | + "uvRelativeToGrid", |
49 | 49 | ] |
50 | 50 |
|
51 | 51 | EXTRA_DATA_ATTRIBUTES_KEYS = [ |
@@ -507,7 +507,9 @@ def build_variable_components( |
507 | 507 | extra_attrs = read_data_var_attrs(first, extra_keys) |
508 | 508 | data_var_attrs.update(**extra_attrs) |
509 | 509 | coords_map = encode_cf_first( |
510 | | - data_var_attrs, encode_cf, time_dims, |
| 510 | + data_var_attrs, |
| 511 | + encode_cf, |
| 512 | + time_dims, |
511 | 513 | ) |
512 | 514 | coord_name_key_map = {} |
513 | 515 | coord_vars = {} |
@@ -689,7 +691,7 @@ def build_dataset_components( |
689 | 691 | " be decoded as datetime objects:\n" |
690 | 692 | f"{ALL_REF_TIME_KEYS}" |
691 | 693 | ) |
692 | | - |
| 694 | + |
693 | 695 | for param_id in index.get("paramId", []): |
694 | 696 | var_index = index.subindex(paramId=param_id) |
695 | 697 | try: |
@@ -825,5 +827,7 @@ def open_file( |
825 | 827 | path = os.fspath(path) |
826 | 828 | stream = messages.FileStream(path, errors=errors) |
827 | 829 | index_keys = compute_index_keys(time_dims, extra_coords) |
828 | | - index = open_fileindex(stream, indexpath, index_keys, ignore_keys=ignore_keys, filter_by_keys=filter_by_keys) |
| 830 | + index = open_fileindex( |
| 831 | + stream, indexpath, index_keys, ignore_keys=ignore_keys, filter_by_keys=filter_by_keys |
| 832 | + ) |
829 | 833 | return open_from_index(index, read_keys, time_dims, extra_coords, errors=errors, **kwargs) |
0 commit comments