Commits

Ralph Bean committed 7d89751

PEP8 in samples.py.

  • Participants
  • Parent commits 0644ef0

Comments (0)

Files changed (1)

tw2/polymaps/samples.py

 
 import random
 
+
 class DemoPolyMap(PolyMap):
     data_url = '/polymap_demo/'
 
     # Both specify the css_class AND include your own custom css file that
     # specifies what it looks like.
     css_class = 'sample-tw2-polymaps-container-1'
+
     def prepare(self):
         super(DemoPolyMap, self).prepare()
         self.resources.append(custom_css_1)
 
         n = 40
         lat, lon = 37.775, -122.4183333
-        mod = lambda x : x + random.random() * 0.05 - 0.025
+        mod = lambda x: x + random.random() * 0.05 - 0.025
 
         json = geojson.FeatureCollection(
             features=[
 mw = twc.core.request_local()['middleware']
 mw.controllers.register(DemoPolyMap, 'polymap_demo')
 
+
 class DemoPollingPolyMap(PollingPolyMap):
     data_url = '/polymap_polling_demo/'
     interval = 1000
     # Both specify the css_class AND include your own custom css file that
     # specifies what it looks like.
     css_class = 'sample-tw2-polymaps-container-2'
+
     def prepare(self):
         super(DemoPollingPolyMap, self).prepare()
         self.resources.append(custom_css_2)
 
         n = 40
         lat, lon = 37.775, -122.4183333
-        mod = lambda x : x + random.random() * 0.05 - 0.025
+        mod = lambda x: x + random.random() * 0.05 - 0.025
 
         json = geojson.FeatureCollection(
             features=[