Load configuration from json.
(json_file: Union[str, os.PathLike])
| 451 | |
| 452 | |
| 453 | def load_cfg_from_json(json_file: Union[str, os.PathLike]): |
| 454 | """Load configuration from json.""" |
| 455 | with open(json_file, "r", encoding="utf-8") as reader: |
| 456 | text = reader.read() |
| 457 | return json.loads(text) |
| 458 | |
| 459 | |
| 460 | class NumpyEncoder(json.JSONEncoder): |
no outgoing calls
no test coverage detected