Skip to content

Adding period to name argument of Experiment modifies function names. #913

@cwitkowitz

Description

@cwitkowitz

I've stumbled across a weird issue that occurs if I simply change Experiment('hello_config') to Experiment('hello_config.') in the following example (from the quickstart guide):

from sacred import Experiment

ex = Experiment('hello_config')

@ex.config
def my_config():
    recipient = "world"
    message = "Hello %s!" % recipient

@ex.automain
def my_main(message):
    print(message)

This results in the following error:

Usage:
  test.py [(with UPDATE...)] [options]
  test.py help [COMMAND]
  test.py (-h | --help)
  test.py COMMAND [(with UPDATE...)] [options]
Error: Command "my_main" not found. Available commands are: rint_config, rint_dependencies, ave_config, rint_named_configs, y_main

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions