We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Sacred 0.74 crashes if a non dictionary variable is defined in a config and later overwritten by a dictionary variable in another config.
This works: ################################################################## from sacred import Experiment
ex = Experiment('hello_config')
@ex.config def rude(): recipient = "bastard" message = "Fuck off you {}!".format(recipient) test_var = {}
@ex.config def cfg(test_var): test_var = {'1': 1} recipient = "world" message = "Hello {}!".format(recipient)
@ex.automain def main(message): print(name) print(message) #######################################################
And this doesn't: ######################################################## from sacred import Experiment
@ex.config def rude(): recipient = "bastard" message = "Fuck off you {}!".format(recipient) test_var = 1
@ex.automain def main(message): print(name) print(message) ########################################################
The cause seems to be at
sacred/sacred/config/utils.py
Lines 89 to 94 in 416f46f
The text was updated successfully, but these errors were encountered:
BUG: Fixes IDSIA#325
b6e6735
No branches or pull requests
Sacred 0.74 crashes if a non dictionary variable is defined in a config and later overwritten by a dictionary variable in another config.
This works:
##################################################################
from sacred import Experiment
ex = Experiment('hello_config')
@ex.config
def rude():
recipient = "bastard"
message = "Fuck off you {}!".format(recipient)
test_var = {}
@ex.config
def cfg(test_var):
test_var = {'1': 1}
recipient = "world"
message = "Hello {}!".format(recipient)
@ex.automain
def main(message):
print(name)
print(message)
#######################################################
And this doesn't:
########################################################
from sacred import Experiment
ex = Experiment('hello_config')
@ex.config
def rude():
recipient = "bastard"
message = "Fuck off you {}!".format(recipient)
test_var = 1
@ex.config
def cfg(test_var):
test_var = {'1': 1}
recipient = "world"
message = "Hello {}!".format(recipient)
@ex.automain
def main(message):
print(name)
print(message)
########################################################
The cause seems to be at
sacred/sacred/config/utils.py
Lines 89 to 94 in 416f46f
The text was updated successfully, but these errors were encountered: