From a2e4649be572fb407f113eed535cc06a7679c975 Mon Sep 17 00:00:00 2001 From: Joey Wang Date: Thu, 9 Mar 2023 12:55:08 +0800 Subject: [PATCH] Reduce dependency --- api/inp_in.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/inp_in.py b/api/inp_in.py index d7f4d34..a9ebb0d 100644 --- a/api/inp_in.py +++ b/api/inp_in.py @@ -1,7 +1,7 @@ from .project import * -from .database import get_current_operation, set_restore_operation +from .database import ChangeSet, get_current_operation, set_restore_operation from .sections import section_name -from .batch_cmds import * +from .batch_cmds import execute_batch_commands from .s1_title import inp_in_title from .s2_junctions import inp_in_junction from .s3_reservoirs import inp_in_reservoir @@ -42,7 +42,7 @@ def _parse_inp(inp: str) -> dict[str, list[str]]: for line in open(inp): line = line.strip() if line == '': - # skip empty line for control and rule + # skip empty line for control and rule if section == 'CONTROLS' or section == 'RULES': pass else: @@ -168,7 +168,7 @@ def _read_inp(file: dict[str, list[str]]) -> ChangeSet: file_cs[name].merge(inp_in_time(section)) elif name == 'REPORT': - pass # ignore now, for simulation, always report all + file_cs[name].merge(inp_in_report(section)) elif name == 'OPTIONS': file_cs[name].merge(inp_in_option(section))