AdisTT: Stable version of files writer for adisTT solver

This commit is contained in:
Dylan Jeannin committed 2026-07-16 10:44:01 +02:00
1 parent 4a94c946d1
commit bb2e83b6ce
8 files changed
+1895 -6

No files matched your search

+30 -1
View File
@@ -37,7 +37,7 @@ logger = logging.getLogger()
class Config(SQL):
def __init__(self):
self._version = '0.0.7'
self._version = '0.0.8'
self.filename = Config.filename()
self.set_default_value()
@@ -194,6 +194,27 @@ class Config(SQL):
"WHERE name='default-Rubar3'"
)
if major == "0" and minor <= "2":
if int(release) < 8:
posix = os.name == 'posix'
ext = "" if posix else ".exe"
path = os.path.join("@install_dir",
"adists", f"adists{ext}")
self.execute(f"""
INSERT OR IGNORE INTO solver VALUES (
'adisttwc',
'default-AdisTT',
'Default Pamhyr2 AdisTT version',
'', '', '',
'',
'{path} @args @input',
''
)
""")
self.execute(
f"UPDATE info SET value='{self._version}' " +
"WHERE key='version'"
@@ -368,6 +389,14 @@ class Config(SQL):
new._cmd_solver = f""""{path}{ext}" @args @input"""
self._solvers.append(new)
# AdisTT
ctor = solver_type_list["adisttwc"]
new = ctor("default-AdisTT")
new._description = "Default Pamhyr2 AdisTT version"
path = os.path.join("@install_dir", "adists", "adists")
new._cmd_solver = f"\"{path}{ext}\" @args @input"
self._solvers.append(new)
# Rubar3
ctor = solver_type_list["rubar3"]
new = ctor("default-Rubar3")