Skip to content

Commit

Permalink
chore: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Calychas committed Apr 19, 2024
1 parent 2bfa5cc commit 9160c38
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -254,4 +254,5 @@ ignore_packages = [
'nvidia-cusparse-cu12', # uses NVIDIA license
'nvidia-nccl-cu12', # uses NVIDIA license
'nvidia-nvtx-cu12', # uses NVIDIA license
'nvidia-nvjitlink-cu12', # uses NVIDIA license
]
3 changes: 2 additions & 1 deletion srai/datasets/foursquare_checkins/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
This module contains Foursquare Checkins Dataset.
"""

import itertools
from typing import Optional

import geopandas as gpd
Expand Down Expand Up @@ -42,7 +43,7 @@ def _preprocessing(
data=df.drop(columns=["latitude", "longitude"]),
geometry=df.apply(
lambda row: LineString(
[Point(lon, lat) for lon, lat in zip(row["longitude"], row["latitude"])]
list(itertools.starmap(Point, zip(row["longitude"], row["latitude"])))
),
axis=1,
),
Expand Down
2 changes: 1 addition & 1 deletion srai/loaders/hf_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def load(self, dataset_name: str, name: Optional[str] = None) -> gpd.GeoDataFram
from datasets import load_dataset

dataset = load_dataset(
f"{dataset_name}", name=name, token=self.hf_token, trust_remote_code=True
dataset_name, name=name, token=self.hf_token, trust_remote_code=True
) # download dataset from HF

df = dataset["train"].to_pandas()
Expand Down

0 comments on commit 9160c38

Please sign in to comment.