read#

andes.io.json.read(system, infile: Union[str, io.IOBase])[source]#

Read JSON file with ANDES model data into an empty system.

Parameters
systemSystem

Empty System instance

infilestr or io.BaseIO

str: path to the input file; or io.BaseIO: a stream to read from

Returns
System

System instance after succeeded