Clean inp in new
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import datetime
|
import datetime
|
||||||
from .project import *
|
from .project import *
|
||||||
from .database import ChangeSet, write, try_read
|
from .database import ChangeSet, write
|
||||||
from .sections import *
|
from .sections import *
|
||||||
from .s1_title import inp_in_title_new
|
from .s1_title import inp_in_title_new
|
||||||
from .s2_junctions import inp_in_junction_new
|
from .s2_junctions import inp_in_junction_new
|
||||||
@@ -244,10 +244,6 @@ def parse_file(project: str, inp: str) -> None:
|
|||||||
print(f"Total (in second): {(end-start).seconds}(s)")
|
print(f"Total (in second): {(end-start).seconds}(s)")
|
||||||
|
|
||||||
|
|
||||||
def parse_inp(project: str, inp: str) -> None:
|
|
||||||
parse_file(project, inp)
|
|
||||||
|
|
||||||
|
|
||||||
def read_inp_new(project: str, inp: str) -> bool:
|
def read_inp_new(project: str, inp: str) -> bool:
|
||||||
if is_project_open(project):
|
if is_project_open(project):
|
||||||
close_project(project)
|
close_project(project)
|
||||||
@@ -258,7 +254,7 @@ def read_inp_new(project: str, inp: str) -> bool:
|
|||||||
create_project(project)
|
create_project(project)
|
||||||
open_project(project)
|
open_project(project)
|
||||||
|
|
||||||
parse_inp(project, inp)
|
parse_file(project, inp)
|
||||||
|
|
||||||
'''try:
|
'''try:
|
||||||
parse_inp(project, inp)
|
parse_inp(project, inp)
|
||||||
|
|||||||
Reference in New Issue
Block a user