Skip to content

Commit

Permalink
Use quivr's drop_duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
moeyensj committed Oct 10, 2024
1 parent 9c66fd0 commit 9958350
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 59 deletions.
1 change: 0 additions & 1 deletion src/thor/clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ def hash_obs_ids(obs_ids: List[str]) -> str:
def drop_duplicate_clusters(
clusters: "Clusters",
cluster_members: "ClusterMembers",
num_cpus: int = 1,
) -> Tuple["Clusters", "ClusterMembers"]:
"""
Drop clusters that have identical sets of observation IDs.
Expand Down
4 changes: 1 addition & 3 deletions src/thor/orbit_determination/fitted_orbits.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
from adam_core.coordinates.residuals import Residuals
from adam_core.orbits import Orbits

from ..utils.quivr import drop_duplicates

__all__ = [
"FittedOrbits",
"FittedOrbitMembers",
Expand Down Expand Up @@ -124,7 +122,7 @@ def drop_duplicate_orbits(
"coordinates.vz",
]

filtered = drop_duplicates(orbits, subset=subset, keep=keep)
filtered = orbits.drop_duplicates(subset=subset, keep=keep)
filtered_orbit_members = orbit_members.apply_mask(pc.is_in(orbit_members.orbit_id, filtered.orbit_id))
return filtered, filtered_orbit_members

Expand Down
1 change: 0 additions & 1 deletion src/thor/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
from .ades import *
from .linkages import *
from .logging import *
from .quivr import *
54 changes: 0 additions & 54 deletions src/thor/utils/quivr.py

This file was deleted.

0 comments on commit 9958350

Please sign in to comment.