Skip to content

Commit b6386e4

Browse files
committed
Match the metadata and fractions in destination registry
1 parent 051918b commit b6386e4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/murfey/client/destinations.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ def determine_default_destination(
4747
mid_path = source.absolute().relative_to(Path(data_dir).absolute())
4848
if use_suggested_path:
4949
with global_env_lock:
50-
source_name = (
51-
source.name
52-
if source.name != "Images-Disc1"
53-
else source.parent.name
54-
)
50+
if source.name == "Images-Disc1":
51+
source_name = source.parent.name
52+
elif source.name.startswith("Sample"):
53+
source_name = f"{source.parent.name}_{source.name}"
54+
else:
55+
source_name = source.name
5556
if environment.destination_registry.get(source_name):
5657
_default = environment.destination_registry[source_name]
5758
else:

0 commit comments

Comments
 (0)