mirror of https://gitlab.com/pamhyr/pamhyr2
debug model InitialConditionsAdisTSSpec
parent
6bd3605d10
commit
cc500ceccf
|
|
@ -31,7 +31,7 @@ class ICAdisTSSpec(SQLSubModel):
|
|||
_sub_classes = []
|
||||
|
||||
def __init__(self, id: int = -1, name: str = "",
|
||||
status=None):
|
||||
status=None, owner_scenario=None):
|
||||
super(ICAdisTSSpec, self).__init__()
|
||||
|
||||
self._status = status
|
||||
|
|
@ -194,7 +194,7 @@ class ICAdisTSSpec(SQLSubModel):
|
|||
new_spec.rate = rate
|
||||
new_spec.enabled = enabled
|
||||
|
||||
loaded.add(pid)
|
||||
# loaded.add(pid)
|
||||
new.append(new_spec)
|
||||
|
||||
data["scenario"] = scenario.parent
|
||||
|
|
@ -211,7 +211,7 @@ class ICAdisTSSpec(SQLSubModel):
|
|||
|
||||
sql = (
|
||||
"INSERT INTO " +
|
||||
"initial_conditions_adists_spec(id, deleted, " +
|
||||
"initial_conditions_adists_spec(pamhyr_id, deleted, " +
|
||||
"ic_default, name, reach, " +
|
||||
"start_rk, end_rk, concentration, eg, em, ed, rate, " +
|
||||
"enabled, scenario) " +
|
||||
|
|
|
|||
Loading…
Reference in New Issue