-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import os | ||
import sys | ||
|
||
# Setup the path to known locations of GLFW's DLL on Windows | ||
if sys.platform == 'win32': | ||
import platform | ||
bits = platform.architecture()[0][:2] | ||
os.environ['PATH'] += os.pathsep + r'C:\ProgramData\chocolatey\msvc120-{}\bin'.format(bits) | ||
|
||
# Inject support for local font loading into VisPy. | ||
def _get_vispy_font_filename(face, bold, italic): | ||
return os.path.join(os.path.dirname(__file__), 'data/questrial.ttf') | ||
|
||
# Fonts on Mac OSX. | ||
if sys.platform == 'darwin': | ||
from vispy.util.fonts import _quartz | ||
_quartz._vispy_fonts = ('Questrial',) | ||
_quartz._get_vispy_font_filename = _get_vispy_font_filename | ||
del _quartz | ||
|
||
# Fonts on Windows and Linux. | ||
if sys.platform in ['win32', 'linux']: | ||
from vispy.util.fonts import _freetype | ||
_freetype._vispy_fonts = ('Questrial',) | ||
_freetype._get_vispy_font_filename = _get_vispy_font_filename | ||
del _freetype |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
class Params: | ||
SEGMENT_SIZE = 10 | ||
TOP_PATHS_NUMBER = 5 | ||
SAMPLE_SIZE = 150 | ||
SCALE_FACTOR = 200 | ||
TELEPORT_THRESHOLD = 40 # it defines a disatnce where we elimiate a segment - we skip all teleports | ||
|
||
def __init__(self): | ||
self.VECTOR_POINT = int(self.SEGMENT_SIZE / 2) | ||
self.MOVE_ALONG_STEP_SIZE = int(self.SEGMENT_SIZE / 2) |