diff --git a/flaskr/laws/travel_emission_lerp_fit.py b/flaskr/laws/travel_emission_lerp_fit.py index bcb7b21..fcae080 100644 --- a/flaskr/laws/travel_emission_lerp_fit.py +++ b/flaskr/laws/travel_emission_lerp_fit.py @@ -1,6 +1,5 @@ import numpy as np from .travel_emission_linear_fit import EmissionModel as BaseEmissionModel -from flaskr.content import Struct class EmissionModel(BaseEmissionModel): @@ -14,6 +13,8 @@ class EmissionModel(BaseEmissionModel): sample_points = sorted(config.points, key=lambda p: float(p[0])) + # Numpy! + previous_point = [0, 0] for i, sample_point in enumerate(sample_points): if distance <= sample_point[0]: -- libgit2 0.21.2