Skip to content

Commit

Permalink
Merge 80237d5 into 3041d6d
Browse files Browse the repository at this point in the history
  • Loading branch information
delucchi-cmu authored Nov 1, 2024
2 parents 3041d6d + 80237d5 commit ce38e95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lsdb/io/to_hats.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def to_hats(
catalog.hc_structure,
base_catalog_path,
catalog_name if catalog_name else catalog.hc_structure.catalog_name,
total_rows=np.sum(counts),
total_rows=int(np.sum(counts)),
)
new_hc_structure.catalog_info.to_properties_file(base_catalog_path)
# Save the point distribution map
Expand Down
2 changes: 1 addition & 1 deletion src/lsdb/loaders/dataframe/dataframe_catalog_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def __init__(
self.drop_empty_siblings = drop_empty_siblings
self.threshold = self._calculate_threshold(partition_size, threshold)
self.catalog_info = self._create_catalog_info(
ra_column=ra_column, dec_column=dec_column, total_rows=len(self.dataframe), **kwargs
ra_column=ra_column, dec_column=dec_column, total_rows=int(len(self.dataframe)), **kwargs
)
self.should_generate_moc = should_generate_moc
self.moc_max_order = moc_max_order
Expand Down

0 comments on commit ce38e95

Please sign in to comment.