Change default graph resolution and depth

This commit is contained in:
DarkPhoenix
2019-08-03 17:33:56 +03:00
parent d213e94860
commit 1b2bff8a77
3 changed files with 12 additions and 6 deletions

View File

@@ -38,10 +38,8 @@ class PointGetter(metaclass=ABCMeta):
class SmoothPointGetter(PointGetter, metaclass=ABCMeta):
def __init__(self, graph, baseResolution=50, extraDepth=2):
super().__init__(graph)
self._baseResolution = baseResolution
self._extraDepth = extraDepth
_baseResolution = 200
_extraDepth = 0
def getRange(self, xRange, miscParams, fit, tgt):
xs = []

View File

@@ -125,6 +125,9 @@ class YInflictedDamageMixin:
# X mixins
class XDistanceMixin(SmoothPointGetter):
_baseResolution = 50
_extraDepth = 2
def _getCommonData(self, miscParams, fit, tgt):
# Process params into more convenient form
miscParamMap = dict(miscParams)
@@ -279,6 +282,9 @@ class XTimeMixin(PointGetter):
class XTgtSpeedMixin(SmoothPointGetter):
_baseResolution = 50
_extraDepth = 2
def _getCommonData(self, miscParams, fit, tgt):
# Process params into more convenient form
miscParamMap = dict(miscParams)
@@ -329,6 +335,9 @@ class XTgtSpeedMixin(SmoothPointGetter):
class XTgtSigRadiusMixin(SmoothPointGetter):
_baseResolution = 50
_extraDepth = 2
def _getCommonData(self, miscParams, fit, tgt):
# Process params into more convenient form
miscParamMap = dict(miscParams)

View File

@@ -28,8 +28,7 @@ AU_METERS = 149597870700
class Distance2TimeGetter(SmoothPointGetter):
def __init__(self, graph):
super().__init__(graph, baseResolution=500, extraDepth=0)
_baseResolution = 500
def _getCommonData(self, miscParams, fit, tgt):
return {