Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed Jul 8, 2024
1 parent e91f31d commit f537f57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/anemoi/registry/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(
wait=60,
stop_if_finished=True,
target_dir=".",
publish_target_dir=None,
published_target_dir=None,
auto_register=True,
threads=1,
heartbeat=60,
Expand All @@ -54,7 +54,7 @@ def __init__(

self.destination = destination
self.target_dir = target_dir
self.publish_target_dir = publish_target_dir or target_dir
self.published_target_dir = published_target_dir or target_dir
self.request = request
self.threads = threads
self.heartbeat = heartbeat
Expand Down Expand Up @@ -212,7 +212,7 @@ def get_source_path():
os.rename(target_tmp_path, target_path)

if self.auto_register:
published_target_path = os.path.join(self.publish_target_dir, basename)
published_target_path = os.path.join(self.published_target_dir, basename)
dataset_entry.add_location(platform=destination, path=published_target_path)

@classmethod
Expand Down

0 comments on commit f537f57

Please sign in to comment.