File: load.py

package info (click to toggle)
python-omegaconf 2.3.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,244 kB
  • sloc: python: 26,413; makefile: 38; sh: 11
file content (8 lines) | stat: -rw-r--r-- 193 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
import pickle
import sys

from omegaconf import OmegaConf

with open(f"{sys.argv[1]}.pickle", mode="rb") as fp:
    cfg = pickle.load(fp)
    assert cfg == OmegaConf.create({"a": [{"b": 10}]})