Skip to content

Commit

Permalink
fixed semantic graph test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandrro committed Sep 19, 2024
1 parent 55a2823 commit 3e738e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sloyka"
version = "0.1.8"
version = "0.2"
description = "Library for city identity analysis from social media posts and comments"
authors = ["sandrro, georgekontsevik"]
readme = "README.md"
Expand Down
6 changes: 5 additions & 1 deletion tests/test_semantic_graph.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import sys
import os
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../sloyka/sample_data")))
import geopandas as gpd
import pytest
from sloyka import Semgraph

@pytest.fixture
def sample_data():
gdf = gpd.read_parquet("sloyka\sample_data\sample_data_geocoded_emotioned.parquet")
sample_data_path = os.path.join(os.path.dirname(__file__), "../sloyka/sample_data/sample_data_geocoded_emotioned.parquet")
gdf = gpd.read_parquet(sample_data_path)
gdf['type'] = 'post'
return gdf

Expand Down

0 comments on commit 3e738e5

Please sign in to comment.