mirror of https://gitlab.com/pamhyr/pamhyr2
Compare commits
No commits in common. "master" and "v1.2.3" have entirely different histories.
16
README.md
16
README.md
|
|
@ -3,7 +3,7 @@
|
||||||
Pamhyr is a free and open source graphical user interface for 1D hydro-sedimentary
|
Pamhyr is a free and open source graphical user interface for 1D hydro-sedimentary
|
||||||
modelling of rivers.
|
modelling of rivers.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
|
@ -20,9 +20,9 @@ modelling of rivers.
|
||||||
+ Run Mage 8 on a study and visualize results
|
+ Run Mage 8 on a study and visualize results
|
||||||
|
|
||||||
Let see the
|
Let see the
|
||||||
[documentation](https://gitlab.com/pamhyr/pamhyr2/-/wikis/home)
|
[documentation](https://gitlab.irstea.fr/theophile.terraz/pamhyr/-/wikis/home)
|
||||||
([:fr:](https://gitlab.com/pamhyr/pamhyr2/-/wikis/home-fr),
|
([:fr:](https://gitlab.irstea.fr/theophile.terraz/pamhyr/-/wikis/home-fr),
|
||||||
[:gb:](https://gitlab.com/pamhyr/pamhyr2/-/wikis/home-en))
|
[:gb:](https://gitlab.irstea.fr/theophile.terraz/pamhyr/-/wikis/home-en))
|
||||||
for more details.
|
for more details.
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
@ -30,11 +30,11 @@ for more details.
|
||||||
### GNU/Linux
|
### GNU/Linux
|
||||||
|
|
||||||
See documentation:
|
See documentation:
|
||||||
- [French :fr:](https://gitlab.com/pamhyr/pamhyr2/-/wikis/home/fr/Install%20on%20GNULinux)
|
- [French :fr:](https://gitlab.irstea.fr/theophile.terraz/pamhyr/-/wikis/home/fr/Install%20on%20GNULinux)
|
||||||
- [English :gb:](https://gitlab.com/pamhyr/pamhyr2/-/wikis/home/en/Install%20on%20GNULinux)
|
- [English :gb:](https://gitlab.irstea.fr/theophile.terraz/pamhyr/-/wikis/home/en/Install%20on%20GNULinux)
|
||||||
|
|
||||||
### Windows
|
### Windows
|
||||||
|
|
||||||
See documentation:
|
See documentation:
|
||||||
- [French :fr:](https://gitlab.com/pamhyr/pamhyr2/-/wikis/home/fr/Install%20on%20Windows)
|
- [French :fr:](https://gitlab.irstea.fr/theophile.terraz/pamhyr/-/wikis/home/fr/Install%20on%20Windows)
|
||||||
- [English :gb:](https://gitlab.com/pamhyr/pamhyr2/-/wikis/home/en/Install%20on%20Windows)
|
- [English :gb:](https://gitlab.irstea.fr/theophile.terraz/pamhyr/-/wikis/home/en/Install%20on%20Windows)
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ class AddFile(SQLSubModel):
|
||||||
self._path = path
|
self._path = path
|
||||||
self._text = text
|
self._text = text
|
||||||
|
|
||||||
AddFile._id_cnt = max(self.id + 1, AddFile._id_cnt + 1)
|
AddFile._id_cnt = max(id, AddFile._id_cnt+1)
|
||||||
|
|
||||||
def __getitem__(self, key):
|
def __getitem__(self, key):
|
||||||
value = None
|
value = None
|
||||||
|
|
|
||||||
|
|
@ -53,8 +53,7 @@ class BoundaryCondition(SQLSubModel):
|
||||||
self._header = []
|
self._header = []
|
||||||
self._types = [float, float]
|
self._types = [float, float]
|
||||||
|
|
||||||
BoundaryCondition._id_cnt = max(BoundaryCondition._id_cnt + 1,
|
BoundaryCondition._id_cnt = max(BoundaryCondition._id_cnt + 1, self.id)
|
||||||
self.id + 1)
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_create(cls, execute):
|
def _db_create(cls, execute):
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ class BoundaryConditionAdisTS(SQLSubModel):
|
||||||
self._types = [self.time_convert, float]
|
self._types = [self.time_convert, float]
|
||||||
|
|
||||||
BoundaryConditionAdisTS._id_cnt = max(
|
BoundaryConditionAdisTS._id_cnt = max(
|
||||||
BoundaryConditionAdisTS._id_cnt + 1, self.id + 1)
|
BoundaryConditionAdisTS._id_cnt + 1, self.id)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_create(cls, execute):
|
def _db_create(cls, execute):
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ class D90AdisTS(SQLSubModel):
|
||||||
|
|
||||||
D90AdisTS._id_cnt = max(
|
D90AdisTS._id_cnt = max(
|
||||||
D90AdisTS._id_cnt + 1,
|
D90AdisTS._id_cnt + 1,
|
||||||
self.id + 1
|
self.id
|
||||||
)
|
)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ class D90AdisTSSpec(SQLSubModel):
|
||||||
self._d90 = None
|
self._d90 = None
|
||||||
self._enabled = True
|
self._enabled = True
|
||||||
|
|
||||||
D90AdisTSSpec._id_cnt = max(D90AdisTSSpec._id_cnt + 1, self.id + 1)
|
D90AdisTSSpec._id_cnt = max(D90AdisTSSpec._id_cnt + 1, self.id)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_create(cls, execute):
|
def _db_create(cls, execute):
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ class DIFAdisTS(SQLSubModel):
|
||||||
|
|
||||||
DIFAdisTS._id_cnt = max(
|
DIFAdisTS._id_cnt = max(
|
||||||
DIFAdisTS._id_cnt + 1,
|
DIFAdisTS._id_cnt + 1,
|
||||||
self.id + 1
|
self.id
|
||||||
)
|
)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ class DIFAdisTSSpec(SQLSubModel):
|
||||||
self._c = None
|
self._c = None
|
||||||
self._enabled = True
|
self._enabled = True
|
||||||
|
|
||||||
DIFAdisTSSpec._id_cnt = max(DIFAdisTSSpec._id_cnt + 1, self.id + 1)
|
DIFAdisTSSpec._id_cnt = max(DIFAdisTSSpec._id_cnt + 1, self.id)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_create(cls, execute):
|
def _db_create(cls, execute):
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ class Friction(SQLSubModel):
|
||||||
else:
|
else:
|
||||||
self.id = id
|
self.id = id
|
||||||
|
|
||||||
Friction._id_cnt = max(self.id + 1, Friction._id_cnt + 1)
|
Friction._id_cnt = max(self.id, Friction._id_cnt+1)
|
||||||
|
|
||||||
self._name = name
|
self._name = name
|
||||||
self._edge = None
|
self._edge = None
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ class Profile(object):
|
||||||
else:
|
else:
|
||||||
self.id = id
|
self.id = id
|
||||||
|
|
||||||
Profile._id_cnt = max(self.id + 1, Profile._id_cnt + 1)
|
Profile._id_cnt = max(self.id, Profile._id_cnt+1)
|
||||||
|
|
||||||
self._num = int(num)
|
self._num = int(num)
|
||||||
self._code1 = int(code1)
|
self._code1 = int(code1)
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ class InitialConditionsAdisTS(SQLSubModel):
|
||||||
|
|
||||||
InitialConditionsAdisTS._id_cnt = max(
|
InitialConditionsAdisTS._id_cnt = max(
|
||||||
InitialConditionsAdisTS._id_cnt + 1,
|
InitialConditionsAdisTS._id_cnt + 1,
|
||||||
self.id + 1
|
self.id
|
||||||
)
|
)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ class ICAdisTSSpec(SQLSubModel):
|
||||||
self._rate = None
|
self._rate = None
|
||||||
self._enabled = True
|
self._enabled = True
|
||||||
|
|
||||||
ICAdisTSSpec._id_cnt = max(ICAdisTSSpec._id_cnt + 1, self.id + 1)
|
ICAdisTSSpec._id_cnt = max(ICAdisTSSpec._id_cnt + 1, self.id)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_create(cls, execute):
|
def _db_create(cls, execute):
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ class LateralContribution(SQLSubModel):
|
||||||
self._types = [float, float]
|
self._types = [float, float]
|
||||||
|
|
||||||
LateralContribution._id_cnt = max(
|
LateralContribution._id_cnt = max(
|
||||||
LateralContribution._id_cnt + 1, self.id + 1)
|
LateralContribution._id_cnt + 1, self.id)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_create(cls, execute):
|
def _db_create(cls, execute):
|
||||||
|
|
|
||||||
|
|
@ -31,12 +31,11 @@ class Edge(object):
|
||||||
self._status = status
|
self._status = status
|
||||||
|
|
||||||
if id == -1:
|
if id == -1:
|
||||||
|
type(self)._id_cnt += 1
|
||||||
self.id = type(self)._id_cnt
|
self.id = type(self)._id_cnt
|
||||||
else:
|
else:
|
||||||
self.id = id
|
self.id = id
|
||||||
|
|
||||||
type(self)._id_cnt = max(self.id + 1, type(self)._id_cnt + 1)
|
|
||||||
|
|
||||||
self._name = name
|
self._name = name
|
||||||
|
|
||||||
self.node1 = node1
|
self.node1 = node1
|
||||||
|
|
|
||||||
|
|
@ -30,12 +30,11 @@ class Node(object):
|
||||||
self._status = status
|
self._status = status
|
||||||
|
|
||||||
if id == -1:
|
if id == -1:
|
||||||
|
type(self)._id_cnt += 1
|
||||||
self.id = type(self)._id_cnt
|
self.id = type(self)._id_cnt
|
||||||
else:
|
else:
|
||||||
self.id = id
|
self.id = id
|
||||||
|
|
||||||
type(self)._id_cnt = max(self.id + 1, type(self)._id_cnt + 1)
|
|
||||||
|
|
||||||
self._name = name
|
self._name = name
|
||||||
self.pos = Point(x, y)
|
self.pos = Point(x, y)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ class OutputRKAdists(SQLSubModel):
|
||||||
self._enabled = True
|
self._enabled = True
|
||||||
|
|
||||||
OutputRKAdists._id_cnt = max(
|
OutputRKAdists._id_cnt = max(
|
||||||
OutputRKAdists._id_cnt + 1, self.id + 1)
|
OutputRKAdists._id_cnt + 1, self.id)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def reach(self):
|
def reach(self):
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ class Pollutants(SQLSubModel):
|
||||||
self._data = []
|
self._data = []
|
||||||
|
|
||||||
Pollutants._id_cnt = max(
|
Pollutants._id_cnt = max(
|
||||||
Pollutants._id_cnt + 1, self.id + 1)
|
Pollutants._id_cnt + 1, self.id)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ class REPLine(SQLSubModel):
|
||||||
self._line = line
|
self._line = line
|
||||||
self._solvers = solvers
|
self._solvers = solvers
|
||||||
|
|
||||||
REPLine._id_cnt = max(self.id + 1, REPLine._id_cnt + 1)
|
REPLine._id_cnt = max(id, REPLine._id_cnt+1)
|
||||||
|
|
||||||
def __getitem__(self, key):
|
def __getitem__(self, key):
|
||||||
value = None
|
value = None
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ class Reservoir(SQLSubModel):
|
||||||
self._node = None
|
self._node = None
|
||||||
self._data = []
|
self._data = []
|
||||||
|
|
||||||
Reservoir._id_cnt = max(Reservoir._id_cnt + 1, self.id + 1)
|
Reservoir._id_cnt = max(Reservoir._id_cnt + 1, self.id)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_create(cls, execute):
|
def _db_create(cls, execute):
|
||||||
|
|
@ -97,7 +97,7 @@ class Reservoir(SQLSubModel):
|
||||||
new_reservoir._node = next(
|
new_reservoir._node = next(
|
||||||
filter(
|
filter(
|
||||||
lambda n: n.id == node_id, data["nodes"]
|
lambda n: n.id == node_id, data["nodes"]
|
||||||
), None
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
new_data = []
|
new_data = []
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ class Layer(SQLSubModel):
|
||||||
else:
|
else:
|
||||||
self.id = id
|
self.id = id
|
||||||
|
|
||||||
Layer._id_cnt = max(self.id + 1, Layer._id_cnt + 1)
|
Layer._id_cnt = max(id, Layer._id_cnt+1)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue