BC, LC: Disable time delegate (fix #23).

setup.py
Pierre-Antoine Rouby 2023-11-27 09:37:23 +01:00
parent a88b42a8ef
commit b4ee76416e
4 changed files with 6 additions and 2 deletions

View File

@ -191,6 +191,8 @@ class BoundaryCondition(SQLSubModel):
if type(data) is str:
if data.count(":") == 3:
return old_pamhyr_date_to_timestamp(data)
if data.count(":") == 2:
return old_pamhyr_date_to_timestamp("00:" + data)
if data.count(".") == 1:
return round(float(data))

View File

@ -191,6 +191,8 @@ class LateralContribution(SQLSubModel):
if type(data) is str:
if data.count(":") == 3:
return old_pamhyr_date_to_timestamp(data)
if data.count(":") == 2:
return old_pamhyr_date_to_timestamp("00:" + data)
if data.count(".") == 1:
return round(float(data))

View File

@ -160,7 +160,7 @@ class EditBoundaryConditionWindow(PamhyrWindow):
table_headers=headers,
editable_headers=self._data.header,
delegates={
"time": self._delegate_time,
#"time": self._delegate_time,
},
data=self._data,
undo=self._undo_stack,

View File

@ -101,7 +101,7 @@ class EditLateralContributionWindow(PamhyrWindow):
table_headers=headers,
editable_headers=self._data.header,
delegates={
"time": self._delegate_time,
#"time": self._delegate_time,
},
data=self._data,
undo=self._undo_stack,