Skip to content

Commit

Permalink
Merge pull request #86 from astronomy-commons/sandro/fix-set-hipscat-…
Browse files Browse the repository at this point in the history
…index

Fix access to "ra" and "dec" values in `from_dataframe`
  • Loading branch information
camposandro authored Dec 11, 2023
2 parents cdd20b2 + 5a0d25e commit 9c41c08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lsdb/loaders/dataframe/dataframe_catalog_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ def _set_hipscat_index(self):
"""Generates the hipscat indices for each data point and assigns
the hipscat index column as the Dataframe index."""
self.dataframe[HIPSCAT_ID_COLUMN] = compute_hipscat_id(
ra_values=self.dataframe[self.catalog_info.ra_column],
dec_values=self.dataframe[self.catalog_info.dec_column],
ra_values=self.dataframe[self.catalog_info.ra_column].values,
dec_values=self.dataframe[self.catalog_info.dec_column].values,
)
self.dataframe.set_index(HIPSCAT_ID_COLUMN, inplace=True)

Expand Down

0 comments on commit 9c41c08

Please sign in to comment.