Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/murfey/client/contexts/tomo_metadata.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import logging
import shutil
from datetime import datetime
from pathlib import Path
from typing import Optional

Expand Down Expand Up @@ -208,6 +210,11 @@ def post_transfer(

elif transferred_file.name == "BatchPositionsList.xml":
logger.info("Tomography session batch positions list found")
shutil.copy(
transferred_file,
transferred_file.parent
/ f"{transferred_file.stem}-{datetime.now().strftime('%Y-%m-%d-%H-%M-%S')}{transferred_file.suffix}",
)
dcg_tag = ensure_dcg_exists(
collection_type="tomo",
metadata_source=metadata_source,
Expand Down
4 changes: 0 additions & 4 deletions src/murfey/client/rsync.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,6 @@ def from_rsyncer(cls, rsyncer: RSyncer, **kwargs):
"notify": rsyncer._notify,
}
kwarguments_from_rsyncer.update(kwargs)
assert isinstance(kwarguments_from_rsyncer["local"], bool)
assert isinstance(kwarguments_from_rsyncer["do_transfer"], bool)
assert isinstance(kwarguments_from_rsyncer["remove_files"], bool)
assert isinstance(kwarguments_from_rsyncer["notify"], bool)
return cls(
rsyncer._basepath,
rsyncer._basepath_remote,
Expand Down