Skip to content

Commit c0c4c81

Browse files
committed
feat(se): log default measurement set when none provided
Makes the implicit behavior of SE.run() transparent by logging the measurement configuration used when the user does not supply a custom Measurements object.
1 parent f795a52 commit c0c4c81

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

andes/routines/se.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ def _default_measurements(self, seed=None):
260260
m.add_bus_voltage(sigma=0.01)
261261
m.add_bus_injection(sigma_p=0.02, sigma_q=0.03)
262262
m.generate_from_pflow(seed=seed)
263+
logger.info("No measurements provided; using default set "
264+
"(all bus voltages + all bus injections, %d measurements).",
265+
m.nm)
263266
return m
264267

265268
def _ensure_angle_reference(self):

0 commit comments

Comments
 (0)