Skip to content

Commit 839b651

Browse files
committed
Improved automatic commit message when appending to existing Icechunk repo along dimension.
1 parent dcb94f7 commit 839b651

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

OceanDataStore/object_store_handler.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,10 +723,16 @@ def _update_icechunk_store(data: xr.DataArray | xr.Dataset,
723723
)
724724
else:
725725
# == No intersection -> append all source values to target IcechunkStore == #
726+
logging.info(f"Appending to {dest} along {append_dim} from {source_append_dim[0]} to {source_append_dim[-1]}.")
727+
if var is not None:
728+
app_commit_message = f"{commit_message} -> Appended {var} along {append_dim} from {source_append_dim[0]} to {source_append_dim[-1]}."
729+
else:
730+
app_commit_message = f"{commit_message} -> Appended to {dest} along {append_dim} from {source_append_dim[0]} to {source_append_dim[-1]}."
731+
726732
_append_to_icechunk(data=ds_source,
727733
repo=repo,
728734
dest=dest,
729-
commit_message=commit_message,
735+
commit_message=app_commit_message,
730736
branch=branch,
731737
append_dim=append_dim
732738
)

0 commit comments

Comments
 (0)