Skip to content

Conversation

seidewitz
Copy link
Member

This PR makes a small update to the KerMLRepositorySaveUtil, additionally to the updates already made for the new capabilities in PR #633.

The new capabilities in PR #633 included adding the -p option for an explicit project name to which to save a model. If this option is not used, then a default project name is created based on the file name of the model being saved. As implemented in PR #633, KerMLRepositorySaveUtil also still added the project creation timestamp to this default name, which is not consistent with the corresponding implementation of the Jupyter %publish command. The update in this PR is to remove the appending of the timestamp to the default project name.

As updated, the default project name is now just the model file name with the extension part removed. The extension part is considered to be that part of the file name from the last dot character (.) in the file name (if any) to the end of the file name. (Previously the computation used the first dot character, rather than the last, which incorrectly handled file names that included dots before the extension part.)

@seidewitz seidewitz added this to the 2025-06 milestone Jul 5, 2025
@seidewitz seidewitz requested a review from TheKorpos July 5, 2025 22:04
@seidewitz seidewitz self-assigned this Jul 5, 2025
@seidewitz seidewitz merged commit 7ee1375 into master Jul 7, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants