Change default graph resolution and depth
This commit is contained in:
@@ -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 = []
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user