Skip to contents

Re-hashes emissions.csv and emissions_manifest.json in dir and checks them and the manifest digest against the signed capsule_bundle.json.

Usage

morie_emissions_verify(dir)

Arguments

dir

The directory morie_emissions_stop() wrote to.

Value

A list with ok and the bricklayer checks table.

Examples

dir <- tempfile()
morie_emissions_track(sum(1:10), output_dir = dir, country_iso_code = "CAN")
#> $value
#> [1] 55
#> 
#> $emissions_kg
#> [1] 3.234948e-08
#> 
#> $data
#> $data$timestamp
#> [1] "2026-10-16T23:06:10"
#> 
#> $data$project_name
#> [1] "morie"
#> 
#> $data$run_id
#> [1] "r-20261016230610.604-11474"
#> 
#> $data$experiment_id
#> [1] "r-20261016230610.604-11474"
#> 
#> $data$duration
#> [1] 0.0246489
#> 
#> $data$emissions
#> [1] 3.234948e-08
#> 
#> $data$emissions_rate
#> [1] 1.31241e-06
#> 
#> $data$cpu_power
#> [1] 8.723032
#> 
#> $data$gpu_power
#> [1] 0
#> 
#> $data$ram_power
#> [1] 10
#> 
#> $data$cpu_energy
#> [1] 1.217737e-07
#> 
#> $data$gpu_energy
#> [1] 0
#> 
#> $data$ram_energy
#> [1] 6.846918e-08
#> 
#> $data$energy_consumed
#> [1] 1.902429e-07
#> 
#> $data$water_consumed
#> [1] 0
#> 
#> $data$country_name
#> [1] ""
#> 
#> $data$country_iso_code
#> [1] "CAN"
#> 
#> $data$region
#> [1] ""
#> 
#> $data$os
#> [1] "Linux 6.17.0-1022-azure x86_64"
#> 
#> $data$python_version
#> [1] "R 4.6.1"
#> 
#> $data$codecarbon_version
#> [1] "morie-r-1.0.0"
#> 
#> $data$cpu_count
#> [1] 4
#> 
#> $data$cpu_model
#> [1] "AMD EPYC 9V74 80-Core Processor"
#> 
#> $data$gpu_count
#> [1] 0
#> 
#> $data$gpu_model
#> [1] ""
#> 
#> $data$ram_total_size
#> [1] 15.61494
#> 
#> $data$tracking_mode
#> [1] "machine"
#> 
#> $data$cpu_utilization_percent
#> [1] 14.28571
#> 
#> $data$gpu_utilization_percent
#> [1] 0
#> 
#> $data$ram_utilization_percent
#> [1] 17.9943
#> 
#> $data$ram_used_gb
#> [1] 2.809799
#> 
#> $data$on_cloud
#> [1] "N"
#> 
#> $data$pue
#> [1] 1
#> 
#> $data$wue
#> [1] 0
#> 
#> $data$cloud_provider
#> [1] ""
#> 
#> $data$cloud_region
#> [1] ""
#> 
#> 
#> $capsule
#> $capsule$manifest
#> [1] "/tmp/RtmpNbJQ2u/file2cd220b98dd/emissions_manifest.json"
#> 
#> $capsule$bundle
#> [1] "/tmp/RtmpNbJQ2u/file2cd220b98dd/capsule_bundle.json"
#> 
#> $capsule$signed
#> [1] TRUE
#> 
#> 
morie_emissions_verify(dir)$ok
#> [1] TRUE
unlink(dir, recursive = TRUE)