Compare commits

...
3 Commits
2 changed files with 7 additions and 9 deletions

No files matched your search

+5 -6
View File
@@ -95,12 +95,11 @@ class PointXYZ(Point):
"ADD COLUMN deleted BOOLEAN NOT NULL DEFAULT FALSE" "ADD COLUMN deleted BOOLEAN NOT NULL DEFAULT FALSE"
) )
if major == "0" and minor == "2": # Try to create index at each update
if int(release) < 5: execute(
execute( "CREATE INDEX IF NOT EXISTS idx_point " +
"CREATE INDEX idx_point " + "ON geometry_pointXYZ(profile, scenario);"
"ON geometry_pointXYZ(profile, scenario);" )
)
return cls._update_submodel(execute, version, data) return cls._update_submodel(execute, version, data)
+2 -3
View File
@@ -1150,7 +1150,6 @@ class ResultsWindow(PamhyrWindow):
z = table["Z"][:, profile.global_index] z = table["Z"][:, profile.global_index]
q = table["Q"][:, profile.global_index] q = table["Q"][:, profile.global_index]
v = table["V"][:, profile.global_index] v = table["V"][:, profile.global_index]
zfd = table["zfd"][:, profile.global_index]
if self._current_results == 2: if self._current_results == 2:
reach1 = self._results[0].river.reach(self._reach) reach1 = self._results[0].river.reach(self._reach)
@@ -1169,8 +1168,8 @@ class ResultsWindow(PamhyrWindow):
v2 = table["V"][:, profile2.global_index] v2 = table["V"][:, profile2.global_index]
if "bed_elevation" in y: if "bed_elevation" in y:
if reach.has_bedload(): if reach.has_bedload() and "zfd" in table:
z_min = zfd z_min = table["zfd"][:, profile.global_index]
else: else:
z_min = [profile.geometry.z_min()] * len(self._timestamps) z_min = [profile.geometry.z_min()] * len(self._timestamps)