Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit 44fdf77

Browse files
committed
Merge branch 'develop' of https://github.com/ecmwf-lab/ecml-tools into develop
2 parents 89b6c5d + 3f528db commit 44fdf77

File tree

18 files changed

+461
-175
lines changed

18 files changed

+461
-175
lines changed

ecml_tools/commands/copy.py

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,26 @@ def copy_group(self, source, target, transfers, block_size, _copy, progress, rec
154154
for name in sorted(source.keys()):
155155
if isinstance(source[name], zarr.hierarchy.Group):
156156
group = target[name] if name in target else target.create_group(name)
157-
self.copy_group(source[name], group, transfers, block_size, _copy, progress, rechunking)
157+
self.copy_group(
158+
source[name],
159+
group,
160+
transfers,
161+
block_size,
162+
_copy,
163+
progress,
164+
rechunking,
165+
)
158166
else:
159-
self.copy_array(name, source, target, transfers, block_size, _copy, progress, rechunking)
167+
self.copy_array(
168+
name,
169+
source,
170+
target,
171+
transfers,
172+
block_size,
173+
_copy,
174+
progress,
175+
rechunking,
176+
)
160177

161178
def copy(self, source, target, transfers, block_size, progress, rechunking):
162179
import zarr

ecml_tools/commands/scan.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ def add_arguments(self, command_parser):
2929
command_parser.add_argument("paths", nargs="+", help="Paths to scan")
3030

3131
def run(self, args):
32-
3332
def match(path):
3433
return fnmatch.fnmatch(path, args.match)
3534

ecml_tools/create/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ def load(self, parts=None):
5151

5252
with self._cache_context():
5353
loader = ContentLoader.from_dataset_config(
54-
path=self.path, statistics_tmp=self.statistics_tmp, print=self.print, parts=parts
54+
path=self.path,
55+
statistics_tmp=self.statistics_tmp,
56+
print=self.print,
57+
parts=parts,
5558
)
5659
loader.load()
5760

ecml_tools/create/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ def statistics(self):
139139

140140

141141
class LoadersConfig(Config):
142-
143142
def __init__(self, config, *args, **kwargs):
144143
if "build" not in config:
145144
config["build"] = {}

0 commit comments

Comments
 (0)