-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
38 lines (34 loc) · 1.22 KB
/
config.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
38
# -*- coding: utf-8 -*-
"""
.. module:: config
:platform: Linux, Windows
:synopsis: config variables
.. moduleauthor: Zoltan Siki <siki@agt.bme.hu>
Variables set:
:fontname: monospace font used in calculation results widgets
:fontsize: font size used in calculation results widgets
:homedir: start dir used for loading fieldbooks
:template_dir: path to template files for batch plotting
:log_path: path to log file
:line_tolerance: snapping tolerance to line tool
:area_tolerance: area tolerance for area division
:max_iteration: maximal number of iterations for area division
:gama_path: full path to gama-local, default plug-in dir
"""
from PyQt4.QtCore import QDir, QFileInfo
# dialogs
fontname = 'DejaVu Sans Mono'
fontsize = 9
#
homedir = QDir().cleanPath( QFileInfo(__file__).absolutePath() )
# plot template
template_dir = QDir(homedir).absoluteFilePath("template")
# logging
log_path = '/tmp/log.log'
# line tool
line_tolerance = 1 # tolerance in layer units
# area division
area_tolerance = 0.5 # tolerance in layer unirs
max_iteration = 100 # maximum number of iteration in area division
# GNU Gama - full path to gama-local
gama_path = '/home/siki/Downloads/gama-1.15/bin/gama-local'