Skip to content

Commit

Permalink
Fix curve loading
Browse files Browse the repository at this point in the history
  • Loading branch information
dufkan committed Aug 2, 2023
1 parent 6e76adc commit 214d3ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dissect/analysis/data_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import pandas as pd
from sklearn.neighbors import LocalOutlierFactor
from sklearn.preprocessing import MinMaxScaler
from sklearn.cluster import KMeans

import dissect.utils.database_handler as database
Expand Down Expand Up @@ -45,7 +44,7 @@ def project(record: Dict[str, Any]):
with urllib.request.urlopen(req) as f:
curves = json.loads(f.read())["data"]

return pd.DataFrame(map(project, curves)).convert_dtypes()
return pd.DataFrame(map(project, curves))


def get_trait(source: str, trait_name: str, query: Dict[str, Any] = {}, skip_failed=True):
Expand Down

0 comments on commit 214d3ce

Please sign in to comment.