Skip to content

Commit ab9d8e7

Browse files
committed
Fix: arguments
1 parent ddb9ac4 commit ab9d8e7

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

kaleidoscope/processor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def run(self, args: Namespace): # noqa: D102
7575
writer: Writing = self._create_writer(args)
7676

7777
# open the source file
78-
get_logger().debug(f"opening source dataset: {args.source_id}")
79-
source = reader.read(args.source_id, depth_level=args.depth_level)
78+
get_logger().debug(f"opening source dataset: {args.target_file}")
79+
source = reader.read(args.target_file, depth_level=args.depth_level)
8080

8181
# create the processing graph
8282
get_logger().info("starting creating processing graph")
@@ -85,9 +85,9 @@ def run(self, args: Namespace): # noqa: D102
8585

8686
# write the target file
8787
get_logger().info(
88-
f"starting writing target dataset: {args.target_id}"
88+
f"starting writing target dataset: {args.target_file}"
8989
)
90-
writer.write(target, args.target_id)
90+
writer.write(target, args.target_file)
9191
get_logger().info("finished writing target dataset")
9292
finally:
9393
get_logger().info("starting closing datasets")

kaleidoscope/runner.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ class Runner:
2929
Runs a processor.
3030
3131
Takes care of parsing command line arguments, setting up the logger,
32-
configuring Dask, running (and optionally profiling) the processor,
33-
handling exceptions, terminating Dask, and calling system exit with
34-
an exit code.
32+
configuring Dask, and running the processor, handling exceptions,
33+
terminating Dask, and calling system exit with an exit code.
3534
"""
3635

3736
_parser: ArgumentParser
@@ -143,8 +142,6 @@ def _init_dask(args):
143142
get_logger().debug("starting initializing Dask")
144143
# noinspection PyTestUnpassedFixture
145144
dask.config.set({"temporary-directory": args.tmpdir})
146-
if args.prof is not None:
147-
args.mode = "synchronous"
148145
match args.mode:
149146
case "synchronous":
150147
dask.config.set(scheduler="synchronous")

0 commit comments

Comments
 (0)