Open mdraw opened 1 year ago
Dumping yaml with the currently hardcoded default_flow_style=False setting results in sometimes less than optimal string representations. Example output of OmegaConf.to_yaml(cfg):
default_flow_style=False
OmegaConf.to_yaml(cfg)
nhood: - - -1 - 0 - 0 - - 0 - -1 - 0 - - 0 - 0 - -1
After the proposed change you can use OmegaConf.to_yaml(cfg, default_flow_style=None) to get this output instead:
OmegaConf.to_yaml(cfg, default_flow_style=None)
nhood: - [-1, 0, 0] - [0, -1, 0] - [0, 0, -1]
Hi @mdraw, This is nice. Can you add a some basic testing and make sure everything passes (you may need to rebase).
Dumping yaml with the currently hardcoded
default_flow_style=False
setting results in sometimes less than optimal string representations. Example output ofOmegaConf.to_yaml(cfg)
:After the proposed change you can use
OmegaConf.to_yaml(cfg, default_flow_style=None)
to get this output instead: