def run_webviz_ert(args): kwargs = {"res_config": args.config} if args.database_url is not None: kwargs["database_url"] = args.database_url with Storage.connect_or_start_server(**kwargs) as storage: storage.wait_until_ready() with WebvizErt.start_server() as webviz_ert: webviz_ert.wait()
def run_webviz_ert(args): kwargs = {"res_config": args.config} if args.database_url is not None: kwargs["database_url"] = args.database_url with Storage.connect_or_start_server(**kwargs) as storage: storage.wait_until_ready() print(""" ----------------------------------------------------------- Starting up Webviz-ERT. This might take more than a minute. ----------------------------------------------------------- """) with WebvizErt.start_server() as webviz_ert: webviz_ert.wait()