Skip to content

chore: SCOP-4416 linear-tv defaults #239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions defaults/docs-defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ defaults:
app: 140
audio: 1500
ctv-bvod: 2580
linear-tv: 2580
social: 240
streaming-video: 300
web: 320
Expand All @@ -27,13 +28,15 @@ defaults:
- audio
- web
- streaming-video
- linear-tv
phone:
- social
- ctv-bvod
- audio
- app
- web
- streaming-video
- linear-tv
smart-speaker:
- audio
tablet:
Expand All @@ -43,7 +46,9 @@ defaults:
- app
- web
- streaming-video
- linear-tv
tv:
- linear-tv
- ctv-bvod
- social
- audio
Expand All @@ -62,6 +67,7 @@ defaults:
audio: phone
ctv-bvod: tv
dooh: tv
linear-tv: tv
social: phone
streaming-video: pc
web: pc
Expand All @@ -82,6 +88,13 @@ defaults:
phone: 1920
tablet: 2048
tv: 1080
default_device_per_impression:
app: 1
audio: 1
ctv-bvod: 1
linear-tv: 0.625000000
streaming-video: 1
web: 1
default_device_watts:
scope3:
pc: 53.200000000
Expand Down Expand Up @@ -109,6 +122,16 @@ defaults:
default_emissions_per_creative_request_gco2_per_imp: 0.000300000
default_emissions_per_rtdp_request_gco2_per_imp: 0.010000000
default_image_compression_ratio: 10
default_infrastructure_power_by_broadcasting_type_per_household_watt:
cable: TODO
iptv: TODO
ota: TODO
satellite: TODO
default_infrastructure_power_per_viewing_hour_by_broadcasting_type_watt:
cable: 31.900000000
iptv: 152
ota: 7.390000000
satellite: 13
default_network_embodied_emissions_gco2e_per_kb:
scope3:
fixed: 0.000004430
Expand All @@ -117,6 +140,63 @@ defaults:
fixed: 0.000004430
mobile: 0.000007970
default_non_primary_video_bitrate_kbps: 1200
default_number_of_channels_by_broadcasting_type:
cable: 150
iptv: 150
ota: 49
satellite: 270
default_number_of_channels_by_broadcasting_type_by_country:
DE:
cable: 40
iptv: 300
ota: 30
satellite: 300
FR:
cable: 0
iptv: 150
ota: 27
satellite: 150
GB:
cable: 250
iptv: 40
ota: 100
satellite: 300
US:
cable: 153
iptv: 100
ota: 50
satellite: 340
default_percent_broadcasting_type:
cable: 0.285000000
iptv: 0.252000000
ota: 0.262000000
satellite: 0.200000000
default_percent_broadcasting_type_by_country:
AU:
cable: 0.120000000
iptv: 0.530000000
ota: 0.590000000
satellite: 0.060000000
DE:
cable: 0.416000000
iptv: 0.096000000
ota: 0.034000000
satellite: 0.455000000
FR:
cable: 0
iptv: 0.460000000
ota: 0.460000000
satellite: 0.080000000
GB:
cable: 0.089000000
iptv: 0.275000000
ota: 0.406000000
satellite: 0.230000000
US:
cable: 0.433000000
iptv: 0.207000000
ota: 0.192000000
satellite: 0.167000000
default_percent_mobile:
scope3: 23.600000000
sri: 10.000000000
Expand Down Expand Up @@ -244,6 +324,7 @@ defaults:
audio: 30s Audio
ctv-bvod: 15s Video
dooh: Landscape - 1920x1080 Image
linear-tv: 15s Video
social: Sponsored Post - 1080x1920 Image
streaming-video: 15s Video
web: Leaderboard - 728x90 Banner
Expand All @@ -252,6 +333,7 @@ defaults:
audio: 30s-audio-digital-audio-phone
ctv-bvod: 15s-video-ctv-bvod-tv
dooh: landscape-dooh
linear-tv: 15s-video-ctv-bvod-tv
social: 1080-1920-sponsored-post-social-phone
streaming-video: 15s-video-streaming-video-pc
web: leaderboard-web-pc
Expand All @@ -260,13 +342,15 @@ defaults:
audio: 100
ctv-bvod: 100
dooh: 100
linear-tv: 100
social: 100
streaming-video: 100
web: 100
default_property_average_imps_per_session_by_channel:
app: 14
audio: 4.800000000
ctv-bvod: 8.256000000
linear-tv: 8.256000000
social: 24
streaming-video: 1
web: 32
Expand All @@ -275,6 +359,7 @@ defaults:
audio: 0.049000000
ctv-bvod: 0.280000000
dooh: 0.049000000
linear-tv: 0.280000000
social: 0.150000000
streaming-video: 0.049000000
web: 0.049000000
Expand Down
5 changes: 5 additions & 0 deletions docs/calculations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import TimeInViewDefaults from "/snippets/defaults_time_in_view.mdx";
import AdPlatformDefaults from "/snippets/defaults_ad_platform.mdx";
import NetworkTrafficDefaults from "/snippets/defaults_network_traffic.mdx";
import ChannelMappingDefaults from "/snippets/defaults_channel_mapping.mdx";
import BroadcastingDefaults from "/snippets/defaults_broadcasting.mdx";

# Detailed walkthrough of calculations

Expand Down Expand Up @@ -222,6 +223,10 @@ Observations from various channels

<ChannelMappingDefaults />

### Broadcasting defaults

<BroadcastingDefaults />

## Lookups from external sources

### Carbon intensity by country, region, and UTC Date/Time
Expand Down
76 changes: 76 additions & 0 deletions docs/snippets/defaults_broadcasting.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
```
default_percent_broadcasting_type:
cable: 0.285
iptv: 0.252
ota: 0.262
satellite: 0.20
default_percent_broadcasting_type_by_country:
AU:
cable: 0.12
iptv: 0.53
ota: 0.59
satellite: 0.06
DE:
cable: 0.416
iptv: 0.096
ota: 0.034
satellite: 0.455
FR:
cable: 0
iptv: 0.46
ota: 0.46
satellite: 0.08
GB:
cable: 0.089
iptv: 0.275
ota: 0.406
satellite: 0.23
US:
cable: 0.433
iptv: 0.207
ota: 0.192
satellite: 0.167
default_infrastructure_power_by_broadcasting_type_per_household_watt:
cable: TODO
iptv: TODO
ota: TODO
satellite: TODO
default_infrastructure_power_per_viewing_hour_by_broadcasting_type_watt:
cable: 31.9
iptv: 152
ota: 7.39
satellite: 13
default_number_of_channels_by_broadcasting_type:
cable: 150
iptv: 150
ota: 49
satellite: 270
default_number_of_channels_by_broadcasting_type_by_country:
DE:
cable: 40
iptv: 300
ota: 30
satellite: 300
FR:
cable: 0
iptv: 150
ota: 27
satellite: 150
GB:
cable: 250
iptv: 40
ota: 100
satellite: 300
US:
cable: 153
iptv: 100
ota: 50
satellite: 340
default_device_per_impression:
app: 1
audio: 1
ctv-bvod: 1
linear-tv: 0.625
streaming-video: 1
web: 1
```
11 changes: 11 additions & 0 deletions docs/snippets/defaults_channel_mapping.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,24 @@ default_channel_by_device:
- app
- web
- streaming-video
- linear-tv
tablet:
- social
- ctv-bvod
- audio
- app
- web
- streaming-video
- linear-tv
pc:
- ctv-bvod
- social
- audio
- web
- streaming-video
- linear-tv
tv:
- linear-tv
- ctv-bvod
- social
- audio
Expand All @@ -36,6 +40,7 @@ default_device_by_channel:
app: phone
web: pc
dooh: tv
linear-tv: tv
default_platform_ad_format_identifier_by_channel:
dooh: landscape-dooh
social: 1080-1920-sponsored-post-social-phone
Expand All @@ -44,6 +49,7 @@ default_platform_ad_format_identifier_by_channel:
audio: 30s-audio-digital-audio-phone
app: interstitial-app-phone
web: leaderboard-web-pc
linear-tv: 15s-video-ctv-bvod-tv
default_platform_ad_format_by_channel:
dooh: Landscape - 1920x1080 Image
social: Sponsored Post - 1080x1920 Image
Expand All @@ -52,13 +58,15 @@ default_platform_ad_format_by_channel:
audio: 30s Audio
app: Interstitial - 1080x1920 Banner
web: Leaderboard - 728x90 Banner
linear-tv: 15s Video
default_property_average_imps_per_session_by_channel:
social: 24
ctv-bvod: 8.256
streaming-video: 1
audio: 4.8
app: 14
web: 32
linear-tv: 8.256
default_property_ad_funded_percentage_by_channel:
dooh: 100
social: 100
Expand All @@ -67,13 +75,15 @@ default_property_ad_funded_percentage_by_channel:
audio: 100
app: 100
web: 100
linear-tv: 100
default_average_seconds_per_session_excluding_ads_by_channel:
social: 240
ctv-bvod: 2580
streaming-video: 300
audio: 1500
app: 140
web: 320
linear-tv: 2580
default_average_data_kb_per_session_seconds_excluding_ads_by_channel:
social: 38
app: 29.5
Expand All @@ -86,4 +96,5 @@ default_property_g_per_imp_by_channel:
audio: 0.049
app: 0.049
web: 0.049
linear-tv: 0.280
```
3 changes: 2 additions & 1 deletion scope3_methodology/test/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
TEST_NETWORKING_DEFAULTS_FILE = "defaults/networking-defaults.yaml"
TEST_TRANSMISSION_RATE_DEFAULTS_FILE = "defaults/transmission_rate-defaults.yaml"
TEST_DOCS_DEFAULTS_FILE = "defaults/docs-defaults.yaml"
TEST_BROADCASTING_DEFAULTS_FILE = "defaults/broadcasting-defaults.yaml"

TEST_TRANSMISSION_RATE_HIGH = TransmissionRate.load_default_yaml(
StreamingResolution.HIGH.value,
Expand Down Expand Up @@ -239,7 +240,7 @@ def test_startup(self):
)

docs_defs = docs_defaults
self.assertEqual(len(docs_defs), 34)
self.assertEqual(len(docs_defs), 41)

def test_get_all_con_networking_connection_device_fixed_defaults(self):
"""Test get_all_networking_connection_device_defaults returns expected output"""
Expand Down