mirror of https://gitlab.com/pamhyr/pamhyr2
BC, LC: Disable time delegate (fix #23).
parent
a88b42a8ef
commit
b4ee76416e
|
|
@ -191,6 +191,8 @@ class BoundaryCondition(SQLSubModel):
|
||||||
if type(data) is str:
|
if type(data) is str:
|
||||||
if data.count(":") == 3:
|
if data.count(":") == 3:
|
||||||
return old_pamhyr_date_to_timestamp(data)
|
return old_pamhyr_date_to_timestamp(data)
|
||||||
|
if data.count(":") == 2:
|
||||||
|
return old_pamhyr_date_to_timestamp("00:" + data)
|
||||||
if data.count(".") == 1:
|
if data.count(".") == 1:
|
||||||
return round(float(data))
|
return round(float(data))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -191,6 +191,8 @@ class LateralContribution(SQLSubModel):
|
||||||
if type(data) is str:
|
if type(data) is str:
|
||||||
if data.count(":") == 3:
|
if data.count(":") == 3:
|
||||||
return old_pamhyr_date_to_timestamp(data)
|
return old_pamhyr_date_to_timestamp(data)
|
||||||
|
if data.count(":") == 2:
|
||||||
|
return old_pamhyr_date_to_timestamp("00:" + data)
|
||||||
if data.count(".") == 1:
|
if data.count(".") == 1:
|
||||||
return round(float(data))
|
return round(float(data))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -160,7 +160,7 @@ class EditBoundaryConditionWindow(PamhyrWindow):
|
||||||
table_headers=headers,
|
table_headers=headers,
|
||||||
editable_headers=self._data.header,
|
editable_headers=self._data.header,
|
||||||
delegates={
|
delegates={
|
||||||
"time": self._delegate_time,
|
#"time": self._delegate_time,
|
||||||
},
|
},
|
||||||
data=self._data,
|
data=self._data,
|
||||||
undo=self._undo_stack,
|
undo=self._undo_stack,
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,7 @@ class EditLateralContributionWindow(PamhyrWindow):
|
||||||
table_headers=headers,
|
table_headers=headers,
|
||||||
editable_headers=self._data.header,
|
editable_headers=self._data.header,
|
||||||
delegates={
|
delegates={
|
||||||
"time": self._delegate_time,
|
#"time": self._delegate_time,
|
||||||
},
|
},
|
||||||
data=self._data,
|
data=self._data,
|
||||||
undo=self._undo_stack,
|
undo=self._undo_stack,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue