Skip to content

Commit

Permalink
Merge pull request #438 from lincc-frameworks/fix_lsdb_compat
Browse files Browse the repository at this point in the history
add from_legacy_dataframe calls
  • Loading branch information
dougbrn authored Apr 26, 2024
2 parents 6c8f1b4 + 3e05011 commit 40236a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/tutorials/working_with_hipscat_and_lsdb.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
"object_cat_cone = object_cat.cone_search(\n",
" ra=315.0,\n",
" dec=-69.5,\n",
" radius_arcsec=10.0,\n",
" radius_arcsec=100000.0,\n",
")\n",
"\n",
"print(f\"Original Number of Objects: {len(object_cat._ddf)}\")\n",
Expand Down
7 changes: 4 additions & 3 deletions src/tape/ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import requests
import lsdb
import dask
from dask_expr import from_legacy_dataframe

import dask.dataframe as dd
import numpy as np
Expand Down Expand Up @@ -1721,7 +1722,7 @@ def from_lsdb(
sort = True

self.from_dask_dataframe(
source_catalog._ddf,
from_legacy_dataframe(source_catalog._ddf),
None,
column_mapper=column_mapper,
sync_tables=sync_tables,
Expand All @@ -1744,8 +1745,8 @@ def from_lsdb(
sort = True

self.from_dask_dataframe(
source_catalog._ddf,
object_catalog._ddf,
from_legacy_dataframe(source_catalog._ddf),
from_legacy_dataframe(object_catalog._ddf),
column_mapper=column_mapper,
sync_tables=sync_tables,
sorted=sorted,
Expand Down

0 comments on commit 40236a3

Please sign in to comment.