Permalink
Browse files

Added RegionUnitedStatesTvOnly which is descendant of RegionUnitedStates

which has only TV stations as its protected entities.
  • Loading branch information...
kate-harrison committed Jan 14, 2016
1 parent 085b96e commit 4ff65f47cc88bbad088adfbf58562a9454c9dbda
Showing with 20 additions and 0 deletions.
  1. +20 −0 west/region_united_states.py
@@ -3,6 +3,7 @@
import protected_entities_tv_stations
import protected_entities_plmrs
import protected_entities_radio_astronomy_sites
from protected_entities import ProtectedEntitiesDummy

class RegionUnitedStates(Region):
"""United States region"""
@@ -62,3 +63,22 @@ def get_channel_list(self):
def get_channel_width(self):
return 6e6


class RegionUnitedStatesTvOnly(RegionUnitedStates):
"""A descendant of :class:`RegionUnitedStates` which has only TV stations as
its protected entities."""

def _load_protected_entities(self):
self.protected_entities[
protected_entities_tv_stations.ProtectedEntitiesTVStations] = \
protected_entities_tv_stations \
.ProtectedEntitiesTVStationsUnitedStatesTVQuery2014June17(self)

self.protected_entities[
protected_entities_plmrs.ProtectedEntitiesPLMRS] = \
ProtectedEntitiesDummy(self)

self.protected_entities[
protected_entities_radio_astronomy_sites
.ProtectedEntitiesRadioAstronomySites] = \
ProtectedEntitiesDummy(self)

0 comments on commit 4ff65f4

Please sign in to comment.