mirror of https://gitlab.com/pamhyr/pamhyr2
Compare commits
4 Commits
36fe9a51c4
...
f0ac170d2f
| Author | SHA1 | Date |
|---|---|---|
|
|
f0ac170d2f | |
|
|
b154e3d03b | |
|
|
633e5a53dc | |
|
|
3f98cf8625 |
|
|
@ -33,19 +33,17 @@ logger = logging.getLogger()
|
||||||
|
|
||||||
class BoundaryConditionAdisTS(SQLSubModel):
|
class BoundaryConditionAdisTS(SQLSubModel):
|
||||||
_sub_classes = []
|
_sub_classes = []
|
||||||
_id_cnt = 0
|
|
||||||
|
|
||||||
def __init__(self, id: int = -1,
|
def __init__(self, id: int = -1,
|
||||||
pollutant: int = -1, status=None):
|
pollutant: int = -1, status=None,
|
||||||
super(BoundaryConditionAdisTS, self).__init__()
|
owner_scenario=-1):
|
||||||
|
super(BoundaryConditionAdisTS, self).__init__(
|
||||||
|
id=id, status=status,
|
||||||
|
owner_scenario=owner_scenario
|
||||||
|
)
|
||||||
|
|
||||||
self._status = status
|
self._status = status
|
||||||
|
|
||||||
if id == -1:
|
|
||||||
self.id = BoundaryConditionAdisTS._id_cnt
|
|
||||||
else:
|
|
||||||
self.id = id
|
|
||||||
|
|
||||||
self._type = ""
|
self._type = ""
|
||||||
self._node = None
|
self._node = None
|
||||||
self._pollutant = pollutant
|
self._pollutant = pollutant
|
||||||
|
|
@ -53,9 +51,6 @@ class BoundaryConditionAdisTS(SQLSubModel):
|
||||||
self._header = []
|
self._header = []
|
||||||
self._types = [self.time_convert, float]
|
self._types = [self.time_convert, float]
|
||||||
|
|
||||||
BoundaryConditionAdisTS._id_cnt = max(
|
|
||||||
BoundaryConditionAdisTS._id_cnt + 1, self.id)
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_create(cls, execute):
|
def _db_create(cls, execute):
|
||||||
execute("""
|
execute("""
|
||||||
|
|
@ -83,6 +78,11 @@ class BoundaryConditionAdisTS(SQLSubModel):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_update(cls, execute, version, data=None):
|
def _db_update(cls, execute, version, data=None):
|
||||||
|
major, minor, release = version.strip().split(".")
|
||||||
|
if major == "0" and int(minor) <= 1:
|
||||||
|
if int(release) < 7:
|
||||||
|
cls._db_create(execute)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
|
||||||
|
|
@ -33,29 +33,22 @@ class D90AdisTS(SQLSubModel):
|
||||||
_sub_classes = [
|
_sub_classes = [
|
||||||
D90AdisTSSpec,
|
D90AdisTSSpec,
|
||||||
]
|
]
|
||||||
_id_cnt = 0
|
|
||||||
|
|
||||||
def __init__(self, id: int = -1, name: str = "default",
|
def __init__(self, id: int = -1, name: str = "default",
|
||||||
status=None):
|
status=None,
|
||||||
super(D90AdisTS, self).__init__()
|
owner_scenario=-1):
|
||||||
|
super(D90AdisTS, self).__init__(
|
||||||
|
id=id, status=status,
|
||||||
|
owner_scenario=owner_scenario
|
||||||
|
)
|
||||||
|
|
||||||
self._status = status
|
self._status = status
|
||||||
|
|
||||||
if id == -1:
|
|
||||||
self.id = D90AdisTS._id_cnt
|
|
||||||
else:
|
|
||||||
self.id = id
|
|
||||||
|
|
||||||
self._name = name
|
self._name = name
|
||||||
self._d90 = None
|
self._d90 = None
|
||||||
self._enabled = True
|
self._enabled = True
|
||||||
self._data = []
|
self._data = []
|
||||||
|
|
||||||
D90AdisTS._id_cnt = max(
|
|
||||||
D90AdisTS._id_cnt + 1,
|
|
||||||
self.id
|
|
||||||
)
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_create(cls, execute):
|
def _db_create(cls, execute):
|
||||||
execute("""
|
execute("""
|
||||||
|
|
@ -72,7 +65,7 @@ class D90AdisTS(SQLSubModel):
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_update(cls, execute, version, data=None):
|
def _db_update(cls, execute, version, data=None):
|
||||||
major, minor, release = version.strip().split(".")
|
major, minor, release = version.strip().split(".")
|
||||||
if major == 0 and minor < 1:
|
if major == "0" and int(minor) <= 1:
|
||||||
if int(release) < 6:
|
if int(release) < 6:
|
||||||
cls._db_create(execute)
|
cls._db_create(execute)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,19 +33,16 @@ class DIFAdisTS(SQLSubModel):
|
||||||
_sub_classes = [
|
_sub_classes = [
|
||||||
DIFAdisTSSpec,
|
DIFAdisTSSpec,
|
||||||
]
|
]
|
||||||
_id_cnt = 0
|
|
||||||
|
|
||||||
def __init__(self, id: int = -1, name: str = "default",
|
def __init__(self, id: int = -1, name: str = "default",
|
||||||
status=None):
|
status=None, owner_scenario=-1):
|
||||||
super(DIFAdisTS, self).__init__()
|
super(DIFAdisTS, self).__init__(
|
||||||
|
id=id, status=status,
|
||||||
|
owner_scenario=owner_scenario
|
||||||
|
)
|
||||||
|
|
||||||
self._status = status
|
self._status = status
|
||||||
|
|
||||||
if id == -1:
|
|
||||||
self.id = DIFAdisTS._id_cnt
|
|
||||||
else:
|
|
||||||
self.id = id
|
|
||||||
|
|
||||||
self._name = name
|
self._name = name
|
||||||
self._method = None
|
self._method = None
|
||||||
self._dif = None
|
self._dif = None
|
||||||
|
|
@ -55,11 +52,6 @@ class DIFAdisTS(SQLSubModel):
|
||||||
self._types = ["iwasa", "fisher", "elder", "constante", "generique"]
|
self._types = ["iwasa", "fisher", "elder", "constante", "generique"]
|
||||||
self._data = []
|
self._data = []
|
||||||
|
|
||||||
DIFAdisTS._id_cnt = max(
|
|
||||||
DIFAdisTS._id_cnt + 1,
|
|
||||||
self.id
|
|
||||||
)
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_create(cls, execute):
|
def _db_create(cls, execute):
|
||||||
execute("""
|
execute("""
|
||||||
|
|
@ -79,7 +71,7 @@ class DIFAdisTS(SQLSubModel):
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_update(cls, execute, version, data=None):
|
def _db_update(cls, execute, version, data=None):
|
||||||
major, minor, release = version.strip().split(".")
|
major, minor, release = version.strip().split(".")
|
||||||
if major == 0 and minor < 1:
|
if major == "0" and int(minor) <= 1:
|
||||||
if int(release) < 6:
|
if int(release) < 6:
|
||||||
cls._db_create(execute)
|
cls._db_create(execute)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ class Friction(SQLSubModel):
|
||||||
cls._db_update_to_0_1_0(execute, data)
|
cls._db_update_to_0_1_0(execute, data)
|
||||||
|
|
||||||
if major == "0" and minor == "1":
|
if major == "0" and minor == "1":
|
||||||
if release < 2:
|
if int(release) < 2:
|
||||||
execute(
|
execute(
|
||||||
"ALTER TABLE friction " +
|
"ALTER TABLE friction " +
|
||||||
"ADD COLUMN deleted BOOLEAN NOT NULL DEFAULT FALSE"
|
"ADD COLUMN deleted BOOLEAN NOT NULL DEFAULT FALSE"
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,6 @@ class FrictionList(PamhyrModelList):
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_update(cls, execute, version, data=None):
|
def _db_update(cls, execute, version, data=None):
|
||||||
if version == "0.0.0":
|
if version == "0.0.0":
|
||||||
logger.info(f"Update friction TABLE from {version}")
|
|
||||||
cls._db_update_0_0_1(execute, version)
|
cls._db_update_0_0_1(execute, version)
|
||||||
|
|
||||||
return cls._update_submodel(execute, version, data)
|
return cls._update_submodel(execute, version, data)
|
||||||
|
|
|
||||||
|
|
@ -34,19 +34,17 @@ class InitialConditionsAdisTS(SQLSubModel):
|
||||||
_sub_classes = [
|
_sub_classes = [
|
||||||
ICAdisTSSpec,
|
ICAdisTSSpec,
|
||||||
]
|
]
|
||||||
_id_cnt = 0
|
|
||||||
|
|
||||||
def __init__(self, id: int = -1, name: str = "default",
|
def __init__(self, id: int = -1, name: str = "default",
|
||||||
pollutant: int = -1, status=None):
|
pollutant: int = -1, status=None,
|
||||||
super(InitialConditionsAdisTS, self).__init__()
|
owner_scenario=-1):
|
||||||
|
super(InitialConditionsAdisTS, self).__init__(
|
||||||
|
id=id, status=status,
|
||||||
|
owner_scenario=owner_scenario
|
||||||
|
)
|
||||||
|
|
||||||
self._status = status
|
self._status = status
|
||||||
|
|
||||||
if id == -1:
|
|
||||||
self.id = InitialConditionsAdisTS._id_cnt
|
|
||||||
else:
|
|
||||||
self.id = id
|
|
||||||
|
|
||||||
self._name = name
|
self._name = name
|
||||||
self._pollutant = pollutant
|
self._pollutant = pollutant
|
||||||
self._concentration = None
|
self._concentration = None
|
||||||
|
|
@ -56,11 +54,6 @@ class InitialConditionsAdisTS(SQLSubModel):
|
||||||
self._enabled = True
|
self._enabled = True
|
||||||
self._data = []
|
self._data = []
|
||||||
|
|
||||||
InitialConditionsAdisTS._id_cnt = max(
|
|
||||||
InitialConditionsAdisTS._id_cnt + 1,
|
|
||||||
self.id
|
|
||||||
)
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_create(cls, execute):
|
def _db_create(cls, execute):
|
||||||
execute("""
|
execute("""
|
||||||
|
|
@ -82,7 +75,7 @@ class InitialConditionsAdisTS(SQLSubModel):
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_update(cls, execute, version, data=None):
|
def _db_update(cls, execute, version, data=None):
|
||||||
major, minor, release = version.strip().split(".")
|
major, minor, release = version.strip().split(".")
|
||||||
if major == 0 and minor < 1:
|
if major == "0" and int(minor) <= 1:
|
||||||
if int(release) < 6:
|
if int(release) < 6:
|
||||||
cls._db_create(execute)
|
cls._db_create(execute)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,19 +33,17 @@ logger = logging.getLogger()
|
||||||
|
|
||||||
class LateralContributionAdisTS(SQLSubModel):
|
class LateralContributionAdisTS(SQLSubModel):
|
||||||
_sub_classes = []
|
_sub_classes = []
|
||||||
_id_cnt = 0
|
|
||||||
|
|
||||||
def __init__(self, id: int = -1, pollutant: int = -1,
|
def __init__(self, id: int = -1, pollutant: int = -1,
|
||||||
name: str = "", status=None):
|
name: str = "", status=None,
|
||||||
super(LateralContributionAdisTS, self).__init__()
|
owner_scenario=-1):
|
||||||
|
super(LateralContributionAdisTS, self).__init__(
|
||||||
|
id=id, status=status,
|
||||||
|
owner_scenario=owner_scenario
|
||||||
|
)
|
||||||
|
|
||||||
self._status = status
|
self._status = status
|
||||||
|
|
||||||
if id == -1:
|
|
||||||
self.id = LateralContributionAdisTS._id_cnt
|
|
||||||
else:
|
|
||||||
self.id = id
|
|
||||||
|
|
||||||
self._pollutant = pollutant
|
self._pollutant = pollutant
|
||||||
self._edge = None
|
self._edge = None
|
||||||
self._begin_rk = 0.0
|
self._begin_rk = 0.0
|
||||||
|
|
@ -54,9 +52,6 @@ class LateralContributionAdisTS(SQLSubModel):
|
||||||
self._header = ["time", "rate"]
|
self._header = ["time", "rate"]
|
||||||
self._types = [self.time_convert, float]
|
self._types = [self.time_convert, float]
|
||||||
|
|
||||||
LateralContributionAdisTS._id_cnt = max(
|
|
||||||
LateralContributionAdisTS._id_cnt + 1, self.id)
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_create(cls, execute):
|
def _db_create(cls, execute):
|
||||||
execute("""
|
execute("""
|
||||||
|
|
@ -85,6 +80,11 @@ class LateralContributionAdisTS(SQLSubModel):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_update(cls, execute, version, data=None):
|
def _db_update(cls, execute, version, data=None):
|
||||||
|
major, minor, release = version.strip().split(".")
|
||||||
|
if major == "0" and int(minor) <= 1:
|
||||||
|
if int(release) < 7:
|
||||||
|
cls._db_create(execute)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ class LateralContributionsAdisTSList(PamhyrModelList):
|
||||||
|
|
||||||
def _db_save(self, execute, data=None):
|
def _db_save(self, execute, data=None):
|
||||||
execute("DELETE FROM lateral_contribution_adists")
|
execute("DELETE FROM lateral_contribution_adists")
|
||||||
execute("DELETE FROM lateral_condition_data_adists")
|
execute("DELETE FROM lateral_contribution_data_adists")
|
||||||
|
|
||||||
if data is None:
|
if data is None:
|
||||||
data = {}
|
data = {}
|
||||||
|
|
|
||||||
|
|
@ -33,27 +33,22 @@ logger = logging.getLogger()
|
||||||
|
|
||||||
class OutputRKAdists(SQLSubModel):
|
class OutputRKAdists(SQLSubModel):
|
||||||
_sub_classes = []
|
_sub_classes = []
|
||||||
_id_cnt = 0
|
|
||||||
|
|
||||||
def __init__(self, id: int = -1, reach=None,
|
def __init__(self, id: int = -1, reach=None,
|
||||||
rk=None, title: str = "", status=None):
|
rk=None, title: str = "", status=None,
|
||||||
super(OutputRKAdists, self).__init__()
|
owner_scenario=-1):
|
||||||
|
super(OutputRKAdists, self).__init__(
|
||||||
|
id=id, status=status,
|
||||||
|
owner_scenario=owner_scenario
|
||||||
|
)
|
||||||
|
|
||||||
self._status = status
|
self._status = status
|
||||||
|
|
||||||
if id == -1:
|
|
||||||
self.id = OutputRKAdists._id_cnt
|
|
||||||
else:
|
|
||||||
self.id = id
|
|
||||||
|
|
||||||
self._reach = reach
|
self._reach = reach
|
||||||
self._rk = rk
|
self._rk = rk
|
||||||
self._title = str(title)
|
self._title = str(title)
|
||||||
self._enabled = True
|
self._enabled = True
|
||||||
|
|
||||||
OutputRKAdists._id_cnt = max(
|
|
||||||
OutputRKAdists._id_cnt + 1, self.id)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def reach(self):
|
def reach(self):
|
||||||
return self._reach
|
return self._reach
|
||||||
|
|
@ -83,8 +78,7 @@ class OutputRKAdists(SQLSubModel):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_create(cls, execute):
|
def _db_create(cls, execute):
|
||||||
|
execute(
|
||||||
sql = (
|
|
||||||
"CREATE TABLE OutputRKAdists(" +
|
"CREATE TABLE OutputRKAdists(" +
|
||||||
"id INTEGER NOT NULL PRIMARY KEY, " +
|
"id INTEGER NOT NULL PRIMARY KEY, " +
|
||||||
"reach INTEGER NOT NULL, " +
|
"reach INTEGER NOT NULL, " +
|
||||||
|
|
@ -94,12 +88,15 @@ class OutputRKAdists(SQLSubModel):
|
||||||
")"
|
")"
|
||||||
)
|
)
|
||||||
|
|
||||||
execute(sql)
|
|
||||||
|
|
||||||
return cls._create_submodel(execute)
|
return cls._create_submodel(execute)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_update(cls, execute, version, data=None):
|
def _db_update(cls, execute, version, data=None):
|
||||||
|
major, minor, release = version.strip().split(".")
|
||||||
|
if major == "0" and int(minor) <= 1:
|
||||||
|
if int(release) < 7:
|
||||||
|
cls._db_create(execute)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
|
||||||
|
|
@ -35,16 +35,15 @@ class Pollutants(SQLSubModel):
|
||||||
_sub_classes = []
|
_sub_classes = []
|
||||||
_id_cnt = 0
|
_id_cnt = 0
|
||||||
|
|
||||||
def __init__(self, id: int = -1, name: str = "", status=None):
|
def __init__(self, id: int = -1, name: str = "",
|
||||||
super(Pollutants, self).__init__()
|
status=None,
|
||||||
|
owner_scenario=-1):
|
||||||
|
super(Pollutants, self).__init__(
|
||||||
|
id=id, status=status,
|
||||||
|
owner_scenario=owner_scenario)
|
||||||
|
|
||||||
self._status = status
|
self._status = status
|
||||||
|
|
||||||
if id == -1:
|
|
||||||
self.id = Pollutants._id_cnt
|
|
||||||
else:
|
|
||||||
self.id = id
|
|
||||||
|
|
||||||
if name is None or name == "":
|
if name is None or name == "":
|
||||||
self.name = f"pol{self.id}"
|
self.name = f"pol{self.id}"
|
||||||
else:
|
else:
|
||||||
|
|
@ -99,6 +98,11 @@ class Pollutants(SQLSubModel):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_update(cls, execute, version, data=None):
|
def _db_update(cls, execute, version, data=None):
|
||||||
|
major, minor, release = version.strip().split(".")
|
||||||
|
if major == "0" and int(minor) <= 1:
|
||||||
|
if int(release) < 7:
|
||||||
|
cls._db_create(execute)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
|
||||||
|
|
@ -134,8 +134,8 @@ class REPLine(SQLSubModel):
|
||||||
else:
|
else:
|
||||||
cls._db_update_to_0_0_14(execute, data)
|
cls._db_update_to_0_0_14(execute, data)
|
||||||
|
|
||||||
if major == "0" and minor == "1":
|
if major == "0" and int(minor) <= 1:
|
||||||
if release < 2:
|
if int(release) < 2:
|
||||||
execute(
|
execute(
|
||||||
"ALTER TABLE rep_lines " +
|
"ALTER TABLE rep_lines " +
|
||||||
"ADD COLUMN deleted BOOLEAN NOT NULL DEFAULT FALSE"
|
"ADD COLUMN deleted BOOLEAN NOT NULL DEFAULT FALSE"
|
||||||
|
|
|
||||||
|
|
@ -66,8 +66,8 @@ class Data(SQLSubModel):
|
||||||
if int(release) > 5:
|
if int(release) > 5:
|
||||||
cls._db_update_to_0_1_0(execute, data)
|
cls._db_update_to_0_1_0(execute, data)
|
||||||
|
|
||||||
if major == "0" and minor == "1":
|
if major == "0" and int(minor) <= 1:
|
||||||
if release < 2:
|
if int(release) < 2:
|
||||||
execute(
|
execute(
|
||||||
"ALTER TABLE reservoir_data " +
|
"ALTER TABLE reservoir_data " +
|
||||||
"ADD COLUMN deleted BOOLEAN NOT NULL DEFAULT FALSE"
|
"ADD COLUMN deleted BOOLEAN NOT NULL DEFAULT FALSE"
|
||||||
|
|
@ -244,7 +244,7 @@ class Reservoir(SQLSubModel):
|
||||||
cls._db_update_to_0_1_0(execute, data)
|
cls._db_update_to_0_1_0(execute, data)
|
||||||
|
|
||||||
if major == "0" and minor == "1":
|
if major == "0" and minor == "1":
|
||||||
if release < 2:
|
if int(release) < 2:
|
||||||
execute(
|
execute(
|
||||||
"ALTER TABLE additional_files " +
|
"ALTER TABLE additional_files " +
|
||||||
"ADD COLUMN deleted BOOLEAN NOT NULL DEFAULT FALSE"
|
"ADD COLUMN deleted BOOLEAN NOT NULL DEFAULT FALSE"
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ class Study(SQLModel):
|
||||||
|
|
||||||
def __init__(self, filename=None, init_new=True):
|
def __init__(self, filename=None, init_new=True):
|
||||||
# Metadata
|
# Metadata
|
||||||
self._version = "0.1.2"
|
self._version = "0.1.7"
|
||||||
self.creation_date = datetime.now()
|
self.creation_date = datetime.now()
|
||||||
self.last_modification_date = datetime.now()
|
self.last_modification_date = datetime.now()
|
||||||
self.last_save_date = datetime.now()
|
self.last_save_date = datetime.now()
|
||||||
|
|
@ -300,6 +300,8 @@ class Study(SQLModel):
|
||||||
self.execute(
|
self.execute(
|
||||||
f"UPDATE info SET value='{self._version}' WHERE key='version'"
|
f"UPDATE info SET value='{self._version}' WHERE key='version'"
|
||||||
)
|
)
|
||||||
|
logger.info("Update database done.")
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
logger.info("Update failed!")
|
logger.info("Update failed!")
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,11 @@ class StudyTestCase(unittest.TestCase):
|
||||||
self.assertEqual(study.description, "bar")
|
self.assertEqual(study.description, "bar")
|
||||||
|
|
||||||
def test_open_study(self):
|
def test_open_study(self):
|
||||||
study = Study.open("../tests_cases/Enlargement/Enlargement.pamhyr")
|
study = Study.open(
|
||||||
|
os.path.join(
|
||||||
|
"..", "tests_cases", "Enlargement", "Enlargement.pamhyr"
|
||||||
|
)
|
||||||
|
)
|
||||||
self.assertNotEqual(study, None)
|
self.assertNotEqual(study, None)
|
||||||
self.assertEqual(study.name, "Enlargement")
|
self.assertEqual(study.name, "Enlargement")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -182,7 +182,6 @@ class InitialConditionsWindow(PamhyrWindow):
|
||||||
self.find(QAction, "action_import").triggered\
|
self.find(QAction, "action_import").triggered\
|
||||||
.connect(self.import_from_file)
|
.connect(self.import_from_file)
|
||||||
|
|
||||||
|
|
||||||
self.find(QPushButton, "pushButton_generate_1").clicked.connect(
|
self.find(QPushButton, "pushButton_generate_1").clicked.connect(
|
||||||
self.generate_growing_constant_depth
|
self.generate_growing_constant_depth
|
||||||
)
|
)
|
||||||
|
|
|
||||||
15
tests.sh
15
tests.sh
|
|
@ -1,12 +1,15 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
echo " Setup ENV"
|
if [ -z "$GUIX_ENVIRONMENT" ]
|
||||||
|
then
|
||||||
|
echo " Setup ENV"
|
||||||
|
|
||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pip3 install -U pip
|
pip3 install -U pip
|
||||||
pip3 install -r ./full-requirements.txt
|
pip3 install -r ./full-requirements.txt
|
||||||
pip3 install -U -r ./full-requirements.txt
|
pip3 install -U -r ./full-requirements.txt
|
||||||
|
fi
|
||||||
|
|
||||||
echo " UNITTEST"
|
echo " UNITTEST"
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue