mirror of https://gitlab.com/pamhyr/pamhyr2
Compare commits
No commits in common. "f0ac170d2ff5d5a5208adc2214229a4e90783efb" and "36fe9a51c4c49ccedd2762e687f1c00a4d3fb64b" have entirely different histories.
f0ac170d2f
...
36fe9a51c4
|
|
@ -33,17 +33,19 @@ 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):
|
||||||
owner_scenario=-1):
|
super(BoundaryConditionAdisTS, self).__init__()
|
||||||
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
|
||||||
|
|
@ -51,6 +53,9 @@ 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("""
|
||||||
|
|
@ -78,11 +83,6 @@ 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,22 +33,29 @@ 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):
|
||||||
owner_scenario=-1):
|
super(D90AdisTS, self).__init__()
|
||||||
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("""
|
||||||
|
|
@ -65,7 +72,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 int(minor) <= 1:
|
if major == 0 and minor < 1:
|
||||||
if int(release) < 6:
|
if int(release) < 6:
|
||||||
cls._db_create(execute)
|
cls._db_create(execute)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,16 +33,19 @@ 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, owner_scenario=-1):
|
status=None):
|
||||||
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
|
||||||
|
|
@ -52,6 +55,11 @@ 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("""
|
||||||
|
|
@ -71,7 +79,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 int(minor) <= 1:
|
if major == 0 and 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 int(release) < 2:
|
if 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,6 +41,7 @@ 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,17 +34,19 @@ 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):
|
||||||
owner_scenario=-1):
|
super(InitialConditionsAdisTS, self).__init__()
|
||||||
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
|
||||||
|
|
@ -54,6 +56,11 @@ 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("""
|
||||||
|
|
@ -75,7 +82,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 int(minor) <= 1:
|
if major == 0 and minor < 1:
|
||||||
if int(release) < 6:
|
if int(release) < 6:
|
||||||
cls._db_create(execute)
|
cls._db_create(execute)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,17 +33,19 @@ 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):
|
||||||
owner_scenario=-1):
|
super(LateralContributionAdisTS, self).__init__()
|
||||||
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
|
||||||
|
|
@ -52,6 +54,9 @@ 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("""
|
||||||
|
|
@ -80,11 +85,6 @@ 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_contribution_data_adists")
|
execute("DELETE FROM lateral_condition_data_adists")
|
||||||
|
|
||||||
if data is None:
|
if data is None:
|
||||||
data = {}
|
data = {}
|
||||||
|
|
|
||||||
|
|
@ -33,22 +33,27 @@ 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):
|
||||||
owner_scenario=-1):
|
super(OutputRKAdists, self).__init__()
|
||||||
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
|
||||||
|
|
@ -78,7 +83,8 @@ 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, " +
|
||||||
|
|
@ -88,15 +94,12 @@ 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,15 +35,16 @@ class Pollutants(SQLSubModel):
|
||||||
_sub_classes = []
|
_sub_classes = []
|
||||||
_id_cnt = 0
|
_id_cnt = 0
|
||||||
|
|
||||||
def __init__(self, id: int = -1, name: str = "",
|
def __init__(self, id: int = -1, name: str = "", status=None):
|
||||||
status=None,
|
super(Pollutants, self).__init__()
|
||||||
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:
|
||||||
|
|
@ -98,11 +99,6 @@ 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 int(minor) <= 1:
|
if major == "0" and minor == "1":
|
||||||
if int(release) < 2:
|
if 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 int(minor) <= 1:
|
if major == "0" and minor == "1":
|
||||||
if int(release) < 2:
|
if 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 int(release) < 2:
|
if 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.7"
|
self._version = "0.1.2"
|
||||||
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,8 +300,6 @@ 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,11 +32,7 @@ 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(
|
study = Study.open("../tests_cases/Enlargement/Enlargement.pamhyr")
|
||||||
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,6 +182,7 @@ 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,15 +1,12 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
if [ -z "$GUIX_ENVIRONMENT" ]
|
echo " Setup ENV"
|
||||||
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