You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
printer.error(f"Mismatch in font color at {sheet}/{source_cell.coordinate}: {v2} != {getattr(target_cell.font.color, k2)}")
526
+
if ((v2isNoneandtarget_cell.font.colorisnotNone) or
527
+
(v2isnotNoneandtarget_cell.font.colorisNone) or
528
+
(v2!=getattr(target_cell.font.color, k2))):
529
+
printer.error(f"Mismatch in font color at {sheet}/{source_cell.coordinate}: {v2} != {getattr(target_cell.font.color, k2) iftarget_cell.font.colorisnotNoneelseNone}")
524
530
equal=False
525
531
elifgetattr(target_cell.font, k) !=v:
526
532
printer.error(f"Mismatch in font property '{k}' at {sheet}/{source_cell.coordinate}: {getattr(target_cell.font, k)} != {v}")
printer.error(f"Mismatch in fill color at {sheet}/{source_cell.coordinate}: {v2} != {getattr(target_cell.fill.color, k2)}")
539
+
if ((v2isNoneandtarget_cell.fill.colorisnotNone) or
540
+
(v2isnotNoneandtarget_cell.fill.colorisNone) or
541
+
(v2!=getattr(target_cell.fill.color, k2))):
542
+
printer.error(f"Mismatch in fill color at {sheet}/{source_cell.coordinate}: {v2} != {getattr(target_cell.fill.color, k2) iftarget_cell.fill.colorisnotNoneelseNone}")
535
543
equal=False
536
544
elifgetattr(target_cell.fill, k) !=v:
537
545
printer.error(f"Mismatch in fill property '{k}' at {sheet}/{source_cell.coordinate}: {getattr(target_cell.fill, k)} != {v}")
casepyomo.core.base.constraint.ConstraintList|pyomo.core.base.constraint.IndexedConstraint|pyomo.core.base.expression.IndexedExpression: # Those will not be saved on purpose
291
291
continue
292
+
casepyomo.core.base.suffix.Suffix:
293
+
ifstr(o) in ["_relaxed_integer_vars", "dual"]:
294
+
continue# Not saved on purpose
295
+
else:
296
+
printer.warning(f"Pyomo-Type {type(o)} not implemented, {o.name} will not be saved to SQLite")
297
+
continue
292
298
case _:
293
299
printer.warning(f"Pyomo-Type {type(o)} not implemented, {o.name} will not be saved to SQLite")
294
300
continue
295
-
df.to_sql(o.name, cnx, if_exists='replace')
301
+
df.to_sql(o.name, cnx, if_exists='replace')
302
+
cnx.commit()
303
+
cnx.close()
304
+
305
+
# Automatically add objective decomposition and dual values
0 commit comments