-
Notifications
You must be signed in to change notification settings - Fork 381
-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
command line failure when experiment name ends with a dot (Error: Command not found) #709
Comments
I'm not sure if this is a bug or not, but it is caused by |
Thanks for the quick reply @thequilo ! Indeed it is perhaps not a bug and the workaround is obvious: do not end the experiment name with a dot. Still, if this behavior is intended then it should be mentioned in the documentation, and if possible it should trigger a specific error message when it happens. |
That's what I thought as well. Maybe someone who has a little more knowledge about the design choices can have a look at this @Qwlouse or @JarnoRFB? @antrec can you think of a use case where you want to / have to end the experiment name with a dot? I think it would be easiest if we just don't allow dots in the experiment name or any command names. |
I agree; actually I do not have such use cases, I just happened to have sentences ending with dot as experiment names in my code... |
Seems to be just an unintended implementation detail. Contributions for a more explicit error message welcome. |
Definitely unintended. The intended usecase for dots is to nest ingredients. I.e. an ingredient called |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
When the experiment name ends with one or several dots ("."), sacred fails to parse the commands (it removes as many letters from the command name as there are dots in the end of the experiment name).
For instance, the following code runs fine:
But if I change the experiment name:
It returns:
(note the 'y_main' appearing instead of 'my_main').
And if I add two dots:
It returns:
(note the '_main' appearing instead of 'my_main').
And so on.
I got this bug when updating sacred from 0.7.4 to 0.8.1.
The text was updated successfully, but these errors were encountered: