ium/IUM_07/sacred_scopes.py

13 lines
235 B
Python
Raw Normal View History

2021-04-26 11:44:34 +02:00
from sacred import Experiment
ex = Experiment()
@ex.config
def my_config():
recipient = "Świecie"
greeting = "Witaj"
message = "{0} {1}!".format(greeting, recipient)
@ex.automain
def my_main(message):
print(message)