We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2437e37 commit 01b5ff8Copy full SHA for 01b5ff8
simvue/run.py
@@ -379,11 +379,16 @@ def _get_internal_metrics(
379
step=system_metrics_step,
380
)
381
382
- if emission_metrics_step is not None:
+ if (
383
+ self._emissions_monitor
384
+ and emission_metrics_step is not None
385
+ and ems_measure_interval is not None
386
+ and _current_system_measure.cpu_percent is not None
387
+ ):
388
self._emissions_monitor.estimate_co2_emissions(
389
process_id=f"{self._name}",
390
cpu_percent=_current_system_measure.cpu_percent,
- measure_interval=self._system_metrics_interval,
391
+ measure_interval=ems_measure_interval,
392
gpu_percent=_current_system_measure.gpu_percent,
393
394
self._add_metrics_to_dispatch(
0 commit comments