question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

save_config, with config, and ingredients

See original GitHub issue

It is very convenient to

./run.py save_config with x=123
./run.py with config.json

but this does not work with ingredients

./run.py save_config with x=123 data.y=123
./run.py with config.json

(data is an ingredient) resulting in KeyError: 'Added a new config entry "data.y" that is not used anywhere'

This is probably because you cannot override ingredient config values in the main experiment config (or at least I don’t know how to do it).

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Qwlousecommented, Mar 16, 2017

I agree, and in fact, If you are adventurous you can check out the feature/universal_named_configs branch where I started fixing this. The problem is that named configs of the main experiment can’t set config values for ingredients. And using config files behaves as named configs. This is high on my list, but might take till after my vacation.

0reactions
Qwlousecommented, Apr 30, 2018

This should work in the current version of sacred.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SAVECONFIG - NovAtel Documentation Portal
This configuration is saved in Non-Volatile Memory (NVM) and is executed every time the receiver starts, whether by power-up or the RESET command....
Read more >
Cisco Wireless Controller Configuration Guide, Release 8.5
The following are some examples of the corresponding commands: save config—Saves the configuration from volatile RAM to NVRAM without resetting ...
Read more >
How To Backup Configuration Files From /intflash To TFTP ...
To save config file from /intflash to remote server: Type enable; Type save config file <SERVER_IP-ADDR>:<FILENAME>. Example:
Read more >
Working with Configuration Files | SpigotMC
As for saving, for custom configurations, you need to call FileConfiguration#save(File) (which saveConfig() does under the hood for config.yml) ...
Read more >
17.12. Saving and Restoring the Network Configuration
This file can then be used to restore the network settings to a Red Hat Enterprise Linux system. This feature can be used...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found