Skip to content

Commit

Permalink
Add imports and test functions for algorithms, fix sys.path
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-jakob committed Jan 21, 2024
1 parent ca01409 commit abfb484
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions germany_beer_map/tests/test_algoritms.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import numpy as np
import pytest
import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')))

from germany_beer_map.src.algorithms.scaling import scale_contour, calculate_centroid, translate_contour, calculate_mse
from germany_beer_map.src.algorithms.spatial_dist_min import haversine
from germany_beer_map.src.algorithms.geocode import convert_address_to_coords

def test_scale_contour():
contour = np.array([[1, 1], [2, 2]])
Expand Down

0 comments on commit abfb484

Please sign in to comment.