-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.py
executable file
·37 lines (28 loc) · 1.04 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Project: silkworm.
Description:
Silkworm is a poll-based US Presidential Election forecaster.
Author: Mike Woodward
Created on: 2020-07-26
"""
# %%---------------------------------------------------------------------------
# Module metadata
# -----------------------------------------------------------------------------
__author__ = "Mike Woodward"
__license__ = "MIT"
# %%---------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------
from controller.controller import Controller
# %%---------------------------------------------------------------------------
# main
# -----------------------------------------------------------------------------
# This code is called by the Bokeh server.
# No if __name__ here because of the way that Bokeh works.
controller = Controller()
controller.setup()
# display must be called after setup or else callbacks don't work
controller.display()
controller.update()