Skip to content

Commit 598d50a

Browse files
committed
pure formatting commit
1 parent 227f425 commit 598d50a

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

concatenator/stitchee.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
default_logger = logging.getLogger(__name__)
2121

22+
2223
def stitchee(
2324
files_to_concat: list[str],
2425
output_file: str,
@@ -125,10 +126,12 @@ def stitchee(
125126

126127
tree_dicts = [tree.to_dict() for tree in xrdatatree_list]
127128
keys_list = [set(t.keys()) for t in tree_dicts]
128-
symmetric_diff = any( [kl ^ keys_list[0] for kl in keys_list] )
129+
symmetric_diff = any([kl ^ keys_list[0] for kl in keys_list])
129130

130131
if symmetric_diff:
131-
raise KeyError(f"Datatrees do not have matching Dataset nodes. Nodes that do not match: {symmetric_diff}.")
132+
raise KeyError(
133+
f"Datatrees do not have matching Dataset nodes. Nodes that do not match: {symmetric_diff}."
134+
)
132135

133136
# Files are concatenated together (Using XARRAY).
134137
start_time = time.time()
@@ -147,7 +150,7 @@ def stitchee(
147150

148151
if concat_method == "xarray-concat":
149152
combined_dict = {
150-
kk : xr.concat(
153+
kk: xr.concat(
151154
[tree_dict[kk] for tree_dict in tree_dicts],
152155
data_vars="minimal",
153156
coords="minimal",
@@ -159,7 +162,7 @@ def stitchee(
159162

160163
elif concat_method == "xarray-combine":
161164
combined_dict = {
162-
kk : xr.combine_by_coords(
165+
kk: xr.combine_by_coords(
163166
[tree_dict[kk] for tree_dict in tree_dicts],
164167
data_vars="minimal",
165168
coords="minimal",

0 commit comments

Comments
 (0)