mirror of https://gitlab.com/pamhyr/pamhyr2
debug
parent
674247db09
commit
ada396f26d
|
|
@ -1741,7 +1741,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||||
path = os.path.normpath(dir_path)
|
path = os.path.normpath(dir_path)
|
||||||
solver_name = path.split(os.sep)[-2]
|
solver_name = path.split(os.sep)[-2]
|
||||||
solver_results = next(filter(lambda x: x.name == solver_name,
|
solver_results = next(filter(lambda x: x.name == solver_name,
|
||||||
self.conf.solvers))
|
self.conf.solvers), None)
|
||||||
solver_results_adists = solver_results.results(
|
solver_results_adists = solver_results.results(
|
||||||
self._study,
|
self._study,
|
||||||
repertory=dir_path, qlog=None) # self._output)
|
repertory=dir_path, qlog=None) # self._output)
|
||||||
|
|
|
||||||
|
|
@ -133,7 +133,7 @@ class CustomPlot(PamhyrPlot):
|
||||||
"""
|
"""
|
||||||
Get SL list for profile p at initial time (initial data)
|
Get SL list for profile p at initial time (initial data)
|
||||||
"""
|
"""
|
||||||
t0 = min(list(self.data[self._current_res_id[0]].get("timestamps")))
|
t0 = min(list(self.data[self._current_res_id].get("timestamps")))
|
||||||
return map(
|
return map(
|
||||||
lambda p: p.get_ts_key(t0, "sl")[0],
|
lambda p: p.get_ts_key(t0, "sl")[0],
|
||||||
reach.profiles
|
reach.profiles
|
||||||
|
|
@ -248,7 +248,8 @@ class CustomPlot(PamhyrPlot):
|
||||||
|
|
||||||
e = list(
|
e = list(
|
||||||
map(
|
map(
|
||||||
lambda p: max(self.get_ts_zmin(p, res_id)),
|
lambda p: max(self.get_ts_zmin(
|
||||||
|
p, self._current_res_id)),
|
||||||
range(len(reach))
|
range(len(reach))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
@ -261,7 +262,8 @@ class CustomPlot(PamhyrPlot):
|
||||||
|
|
||||||
e = list(
|
e = list(
|
||||||
map(
|
map(
|
||||||
lambda p: min(self.get_ts_zmin(p, res_id)),
|
lambda p: min(self.get_ts_zmin(
|
||||||
|
p, self._current_res_id)),
|
||||||
range(len(reach))
|
range(len(reach))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
@ -903,7 +905,7 @@ class CustomPlot(PamhyrPlot):
|
||||||
z_min = profile.geometry.z_min()
|
z_min = profile.geometry.z_min()
|
||||||
if self._current_res_id < 2:
|
if self._current_res_id < 2:
|
||||||
if reach.has_sediment():
|
if reach.has_sediment():
|
||||||
ts_z_min = self.get_ts_zmin(self._profile, res_id)
|
ts_z_min = self.get_ts_zmin(self._profile, self._current_res_id)
|
||||||
else:
|
else:
|
||||||
ts_z_min = list(
|
ts_z_min = list(
|
||||||
map(
|
map(
|
||||||
|
|
@ -1138,7 +1140,7 @@ class CustomPlot(PamhyrPlot):
|
||||||
v = profile.get_key("V")
|
v = profile.get_key("V")
|
||||||
if self._current_res_id < 2:
|
if self._current_res_id < 2:
|
||||||
if reach.has_sediment():
|
if reach.has_sediment():
|
||||||
ts_z_min = self.get_ts_zmin(self._profile)
|
ts_z_min = self.get_ts_zmin(self._profile, self._current_res_id)
|
||||||
else:
|
else:
|
||||||
z_min = profile.geometry.z_min()
|
z_min = profile.geometry.z_min()
|
||||||
ts_z_min = list(
|
ts_z_min = list(
|
||||||
|
|
|
||||||
|
|
@ -1200,6 +1200,7 @@ class ResultsWindow(PamhyrWindow):
|
||||||
# unselect all profiles but the first one
|
# unselect all profiles but the first one
|
||||||
profile_id = self._get_current_profile()
|
profile_id = self._get_current_profile()
|
||||||
self.update_table_selection_profile(profile_id)
|
self.update_table_selection_profile(profile_id)
|
||||||
|
tab_widget = self.find(QTabWidget, f"tabWidget")
|
||||||
|
|
||||||
def import_geotiff(self):
|
def import_geotiff(self):
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue